From b4cae26744e511e4842dcf577aa738c65f1d5823 Mon Sep 17 00:00:00 2001 From: russell Date: Sun, 29 Apr 2007 05:50:37 +0000 Subject: 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 --- channels/chan_zap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'channels/chan_zap.c') 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)); -- cgit v1.2.3