Make sure usedistinctivering gets set to the right value
authorJames Golovich <james@gnuinter.net>
Thu, 11 Mar 2004 05:10:23 +0000 (05:10 +0000)
committerJames Golovich <james@gnuinter.net>
Thu, 11 Mar 2004 05:10:23 +0000 (05:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 8a3fa4c..1071e22 100755 (executable)
@@ -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")) {