All pastes #119841 Raw Edit

Mine

public text v1 · immutable
·published 2006-08-07 00:43 UTC
rendered paste body
Index: channels/chan_zap.c
===================================================================
--- channels/chan_zap.c (revision 39058)
+++ channels/chan_zap.c (working copy)
@@ -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 == 3)
+                                                               break;
                                                } else if (i & ZT_IOMUX_READ) {
                                                        res = read(p->subs[index].zfd, buf, sizeof(buf));
                                                        if (res < 0) {