diff options
author | James Golovich <james@gnuinter.net> | 2004-03-11 05:10:23 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-03-11 05:10:23 +0000 |
commit | 6741234ec9b276c4fd086d582a3938098006340e (patch) | |
tree | d4a5bb7460cb2ddb3f393bf4b1dc5902775fdbc1 /channels/chan_zap.c | |
parent | c0ef6a5d1bf40132a542d82d98323be6daa9a657 (diff) |
Make sure usedistinctivering gets set to the right value
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 8a3fa4cf1..1071e225c 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -7409,7 +7409,8 @@ static int setup_zap(void) chan = strsep(&c, ","); } } else if (!strcasecmp(v->name, "usedistinctiveringdetection")) { - usedistinctiveringdetection = ast_true(v->value); + if (ast_true(v->value)) + usedistinctiveringdetection = 1; } else if (!strcasecmp(v->name, "dring1context")) { strncpy(drings.ringContext[0].contextData,v->value,sizeof(drings.ringContext[0].contextData)-1); } else if (!strcasecmp(v->name, "dring2context")) { @@ -7972,7 +7973,8 @@ static int reload_zt(void) chan = strsep(&stringp, ","); } } else if (!strcasecmp(v->name, "usedistinctiveringdetection")) { - usedistinctiveringdetection = ast_true(v->value); + if (ast_true(v->value)) + usedistinctiveringdetection = 1; } else if (!strcasecmp(v->name, "dring1context")) { strncpy(drings.ringContext[0].contextData,v->value,sizeof(drings.ringContext[0].contextData)-1); } else if (!strcasecmp(v->name, "dring2context")) { |