Make sure we don't send a group reset on a group larger than 32 CICs
authorMatthew Fredrickson <creslin@digium.com>
Sat, 25 Nov 2006 21:32:33 +0000 (21:32 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Sat, 25 Nov 2006 21:32:33 +0000 (21:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48011 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 880a222..c0d1c8e 100644 (file)
@@ -8380,7 +8380,7 @@ static void ss7_reset_linkset(struct zt_ss7 *linkset)
        startcic = linkset->pvts[0]->cic;
 
        for (i = 0; i < linkset->numchans; i++) {
-               if (linkset->pvts[i+1] && (linkset->pvts[i+1]->cic - linkset->pvts[i]->cic) == 1) {
+               if (linkset->pvts[i+1] && ((linkset->pvts[i+1]->cic - linkset->pvts[i]->cic) == 1) && (endcic - startcic < 31)) {
                        continue;
                } else {
                        endcic = linkset->pvts[i]->cic;