[Asterisk-cvs] asterisk/channels chan_zap.c,1.171.2.12,1.171.2.13

citats at lists.digium.com citats at lists.digium.com
Thu Mar 11 00:17:36 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/home/citats/cvs/asterisk-stable/channels

Modified Files:
      Tag: v1-0_stable
	chan_zap.c 
Log Message:
Make sure usedistinctivering gets set to the right value



Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.171.2.12
retrieving revision 1.171.2.13
diff -u -d -r1.171.2.12 -r1.171.2.13
--- chan_zap.c	10 Mar 2004 09:11:12 -0000	1.171.2.12
+++ chan_zap.c	11 Mar 2004 05:10:32 -0000	1.171.2.13
@@ -7360,7 +7360,8 @@
 				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")) {
@@ -7843,7 +7844,8 @@
 				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")) {




More information about the svn-commits mailing list