Well my main problem is that sip channels get stuck, "sip show channels" shows stucck channels in initial invite state while "core show channels" show nothing related to those channels. Do you see the same? i guess if the channel is cleared then the call limit will also be updated automatically.
<br><br>Turning the linksys off may not be the best idea for NAT simulation. Try unplugging you lan cable from it unplug your telephone cable out from your main modem just after registering and then try it.<br><br>In my case qualify seems to be working fine.
<br><br><div><span class="gmail_quote">On 9/13/07, <b class="gmail_sendername">Atis</b> &lt;<a href="mailto:atis@best.eu.org">atis@best.eu.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/13/07, Rizwan Hisham &lt;<a href="mailto:rizwanhasham@gmail.com">rizwanhasham@gmail.com</a>&gt; wrote:<br>&gt; I have sip users with the following configuration:<br>&gt; [abc]<br>&gt; username=abc<br>&gt; type=friend
<br>&gt; secret=123<br>&gt; qualify=no<br>&gt; nat=yes<br>&gt; insecure=port,invite<br>&gt; call-limit=2<br>&gt; host=dynamic<br>&gt; dtmfmode=rfc2833<br>&gt; context=uscan<br>&gt; canreinvite=yes<br>&gt;<br>&gt; User registers with asterisk without any problem, but whenever there is a
<br>&gt; NAT problem with a user and a call comes for that user, asterisk throws an<br>&gt; initial invite towards that user but gets no response from him even after 5<br>&gt; retries. Caller hears nothing.<br>&gt;<br>&gt; During this process the call limit is updated and increased for the callee
<br>&gt; and a channel is also created. But after the caller hangsup the call, call<br>&gt; limit is not updated back to zero for callee and &#39;sip show channels&#39; shows<br>&gt; the callee&#39;s channel stuck in an initial invite state. &#39;core show channels&#39;
<br>&gt; does not show any active calls or channels.<br>&gt;<br>&gt; This is a serious problem for me as i have call-limit=2 for every user, so<br>&gt; if there is NAT problem for any user then after trying to reach him for 2
<br>&gt; times, his call-limit is reached and rest of incoming calls for him go to<br>&gt; voicemail.And evrytime some tries to call him leaves a stuck channel in<br>&gt; initial invite state. Im sure this is a bug as i can repeat it as many times
<br>&gt; as i want. Maybe its fixed in new releases of asterisk but havent tried any<br>&gt; new release. I am using asterisk 1.4.2.<br>&gt;<br>&gt; Can somebody help me fix this problem?<br>&gt;<br>&gt; There is a temporary cure for this problem. if i set qualify=yes, then
<br>&gt; asterisk keeps checking whether all the users are reachable or not. If any<br>&gt; user is unreachable then asterisk saves its status UNREACHABLE and whenever<br>&gt; a calls come in for that user asterisk does not bother to send any sip
<br>&gt; packets to that user. Ultimately no channel is created for that call so no<br>&gt; need to increment or decrement cal l limit.<br><br>Hi,<br><br>I&#39;m not sure is this related or not, but i have few Linksys PAP2
<br>devices behind NAT, that regularly get disconnected from asterisk.<br>Symptoms are the same - after few calls (not necessarily 2, however my<br>call-limit is also 2) i hear silence after Dial().<br><br>I just tried testing, but doesn&#39;t seem that qualify=yes helps in any
<br>way. Maybe i&#39;m not simulating NAT problem correctly? Or is it bug in<br>qualify setting? I&#39;m just powering off linksys, and i&#39;m hearing<br>silence. Shouldn&#39;t qualify=yes almost immediately mark device as
<br>UNREACHABLE?<br><br>Regards,<br>Atis<br><br>--<br>Atis Lezdins,<br>IT Responsible of BEST Riga,<br><a href="mailto:atis@BEST.eu.org">atis@BEST.eu.org</a><br>ICQ: 142239285<br>Skype: atis.lezdins<br>Cell Phone: +371 28806004 [Tele2, Latvia]
<br>Work phone: +1 800 7502835 [Toll free, USA]<br>?BEST? -&gt; <a href="http://www.BEST.eu.org">www.BEST.eu.org</a><br><br>_______________________________________________<br><br>Sign up now for AstriCon 2007!&nbsp;&nbsp;September 25-28th.&nbsp;&nbsp;
<a href="http://www.astricon.net/">http://www.astricon.net/</a><br><br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><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>