Hi all,<br>im stuck in a problem where the call counter is not decremented for sip-peers after the call is hungup in certain cases. I have found out where the problem lies in the code. if i comment that part of the code then the call is decremented fine. But i have no idea what side-effects will be created by commenting that code. So i need to understand the NEED for that code
<br><br>from function sip_hangup (chan_sip.c line 3378) <br><br><span style="color: rgb(0, 153, 0);">if ( p-&gt;initid != -1 ) {</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">/* channel still up - reverse dec of inUse counter
</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">only if the channel is not auto-congested */</span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">update_call_counter(p, INC_CALL_LIMIT);&nbsp;&nbsp;&nbsp; 
<span style="color: rgb(153, 51, 153);">//commenting this line resolves the problem</span></span><br style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 153, 0);">}</span><br style="color: rgb(0, 153, 0);"><br>i dont believe what the comments say in this peice of code. I need to know when and why do we use this so called reverse decrementing technique. Can anybody help?
<br><br clear="all"><br>-- <br>Best Regards<br>Rizwan Hisham<br>Software Engineer<br>Axvoice Inc.<br><a href="http://www.axvoice.com">www.axvoice.com</a>