aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-29 05:50:37 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-29 05:50:37 +0000
commitb4cae26744e511e4842dcf577aa738c65f1d5823 (patch)
tree2c90cc2089b3e4642ea7a6bd3282c0df5dfbc9b0 /channels/chan_zap.c
parentff1d5886e5f1c3ce1f9e6bb754a60e1872c0e0fe (diff)
Fix a bug that made the "language" setting in zapata.conf not
functional. (issue #9626, reported and fixed by sergee) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62331 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index bd7b14adc..503a01452 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -203,7 +203,6 @@ static const char config[] = "zapata.conf";
static char defaultcic[64] = "";
static char defaultozz[64] = "";
-static char language[MAX_LANGUAGE] = "";
static char progzone[10] = "";
static int usedistinctiveringdetection = 0;
@@ -7434,7 +7433,7 @@ static struct zt_pvt *mkintf(int channel, struct zt_chan_conf conf, struct zt_pr
tmp->canpark = conf.chan.canpark;
tmp->transfer = conf.chan.transfer;
ast_copy_string(tmp->defcontext,conf.chan.context,sizeof(tmp->defcontext));
- ast_copy_string(tmp->language, language, sizeof(tmp->language));
+ ast_copy_string(tmp->language, conf.chan.language, sizeof(tmp->language));
ast_copy_string(tmp->mohinterpret, conf.chan.mohinterpret, sizeof(tmp->mohinterpret));
ast_copy_string(tmp->mohsuggest, conf.chan.mohsuggest, sizeof(tmp->mohsuggest));
ast_copy_string(tmp->context, conf.chan.context, sizeof(tmp->context));