<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>The September/October version of SS7 implementation worked, but today I've found out that the current trunk version is not working.</DIV><DIV>What is happening:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If I have channel=&gt;1-15 and channel=&gt;17-31 in /etc/zapata.conf the reset code will send GRS to CICs from 1 to 30 (which is wrong).</DIV><DIV>First, I thought that the break at channel 16 is ignored (which I repeat, worked). The code is looking if the next zt_pvt-&gt;cic is the following number after current and if it is not it sends a group reset on the collected group (1-15 or 17-31). So, the problem was somewhere at the -&gt;cic member, which was ALWAYS the next number in sequence.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Now, after digging more into the code, I've found that the CIC number is taken incrementally (and 16 is a valid CIC number in this case) in mkintf().</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I've patched chan_zap.c to set -&gt;cic value to channel and it works like a charm.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Here is the patch, if any committer interested to put in the trunk:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"># svn diff channels/chan_zap.c</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">Index: channels/chan_zap.c</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">===================================================================</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">--- channels/chan_zap.c (revision 55913)</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">+++ channels/chan_zap.c (working copy)</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">@@ -7538,7 +7538,8 @@</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">                                        return NULL;</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">                                }</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">-                               tmp-&gt;cic = cur_cicbeginswith++;</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">+                               tmp-&gt;cic = channel;</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">+                               cur_cicbeginswith++;</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">                                tmp-&gt;ss7 = ss7;</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier New" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">                                tmp-&gt;ss7call = NULL;</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regards,</DIV><DIV>Alex</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>