[asterisk-commits] russell: trunk r39455 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Aug 8 21:12:10 MST 2006


Author: russell
Date: Tue Aug  8 23:12:10 2006
New Revision: 39455

URL: http://svn.digium.com/view/asterisk?rev=39455&view=rev
Log:
This bug existed in one extra place that is not also in 1.2 ... So, fix it!

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=39455&r1=39454&r2=39455&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Tue Aug  8 23:12:10 2006
@@ -6330,8 +6330,10 @@
 
 							if (p->ringt < p->ringt_base/2)
 								break;
-							++receivedRingT; /* Increment the ringT counter so we can match it against
-										values in zapata.conf for distinctive ring */
+							/* Increment the ringT counter so we can match it against
+							   values in zapata.conf for distinctive ring */
+							if (++receivedRingT == (sizeof(curRingData) / sizeof(curRingData[0])))
+								break;
 						} else if (i & ZT_IOMUX_READ) {
 							res = read(p->subs[index].zfd, buf, sizeof(buf));
 							if (res < 0) {



More information about the asterisk-commits mailing list