diff options
author | Mark Spencer <markster@digium.com> | 2004-03-28 02:53:04 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-28 02:53:04 +0000 |
commit | 1ccab64d86b9bc0433260cbf3580121c8e273c20 (patch) | |
tree | 602e7dec85474b5d59fc9805a74dd429d0ea50f0 /channels/chan_zap.c | |
parent | 4b234476bbbe82acd76749049c8c7099c75f7df1 (diff) |
Add support for Costa Rica to DSP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 1c4d93288..a23365702 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -137,6 +137,7 @@ static char callerid[256] = ""; static char language[MAX_LANGUAGE] = ""; static char musicclass[MAX_LANGUAGE] = ""; +static char progzone[10]= ""; static int usedistinctiveringdetection = 0; @@ -3998,6 +3999,8 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int if (i->dsp) { ast_dsp_set_features(i->dsp, features); ast_dsp_digitmode(i->dsp, DSP_DIGITMODE_DTMF | i->dtmfrelax); + if (strlen(progzone)) + ast_dsp_set_call_progress_zone(i->dsp, progzone); if (i->busydetect && CANBUSYDETECT(i)) { ast_dsp_set_busy_count(i->dsp, i->busycount); } @@ -8092,6 +8095,8 @@ static int reload_zt(void) strncpy(context, v->value, sizeof(context)-1); } else if (!strcasecmp(v->name, "language")) { strncpy(language, v->value, sizeof(language)-1); + } else if (!strcasecmp(v->name, "progzone")) { + strncpy(progzone, v->value, sizeov(progzone) - 1); } else if (!strcasecmp(v->name, "musiconhold")) { strncpy(musicclass, v->value, sizeof(musicclass)-1); } else if (!strcasecmp(v->name, "stripmsd")) { |