aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-11 05:10:23 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-03-11 05:10:23 +0000
commitfeef0af2bf79700f0d40a6aff7e2b778df4e1848 (patch)
treed4a5bb7460cb2ddb3f393bf4b1dc5902775fdbc1 /channels
parentc71eea9cdd746a9c4e2bb898a4f0e585270dfd27 (diff)
Make sure usedistinctivering gets set to the right value
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2393 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_zap.c6
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")) {