This bug existed in one extra place that is not also in 1.2 ... So, fix it!
authorRussell Bryant <russell@russellbryant.com>
Wed, 9 Aug 2006 04:12:10 +0000 (04:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 9 Aug 2006 04:12:10 +0000 (04:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 1c06a7c..f8a81e9 100644 (file)
@@ -6330,8 +6330,10 @@ static void *ss_thread(void *data)
 
                                                        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) {