Continuing eherr here, behind the OPTIONS messages(infact all SIP comm) you definitely to look into SIP timers which tell how many time to resend a packet if no response is received and for how long to wait before thinking that the SIP packet got lost(network disconnected or end-point lost)<div>
<br></div><div>so, qualify=yes a peer means to send-keep alives and have the NAT mechanism stay active, as soon as the SIP keep-alive packets reach a no-reply (max time)x(max retries) Asterisk marks the peer as UNREACHABLE.</div>
<div><br></div><div>qualify=no wouldn&#39;t do all of the above.</div><div><br></div><div>Another interesting thing to know is that SIP end-points have registrations time-out and refresh Registration timers as well. So if everything is going well, SIP end-points refresh their registration after some defined time.</div>
<div><br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 3:35 AM, eherr <span dir="ltr">&lt;<a href="mailto:email.eherr9633@gmail.com">email.eherr9633@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I think the wrap up answer is the interval of registration compacted, if used, with the SIP OPTION packet.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I like the SIP OPTION packet because we have scripts to monitor the status and lets us know when a phone is up or down.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">--E<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Carlos Alvarez<br>
<b>Sent:</b> Monday, November 14, 2011 5:30 PM</span></p><div><div class="h5"><br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] How do extensions &quot;stay registered&quot;<u></u><u></u></div>
</div><p></p></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I think the registration part was answered.  The de-registration part is different.  If the phone is gracefully taken off line it specifically de-registers.  If it just can&#39;t be reached because it powers off or the router closes NAT, or whatever, then Asterisk won&#39;t know this until it times out.<u></u><u></u></p>
<div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Mon, Nov 14, 2011 at 3:19 PM, eherr &lt;<a href="mailto:email.eherr9633@gmail.com" target="_blank">email.eherr9633@gmail.com</a>&gt; wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="color:#1F497D">I think the question is more along the lines of how does asterisk know immediately when a sip phone becomes on line and when you unplug the phone from the network, how does asterisk essentially know immediately that it status is “UNKNOWN”</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1F497D">If I am not mistaken.</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1F497D"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1F497D">--E</span><u></u><u></u></p><p class="MsoNormal"><span style="color:#1F497D"> </span><u></u><u></u></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Danny Nicholas<br>
<b>Sent:</b> Monday, November 14, 2011 5:01 PM<br><b>To:</b> &#39;Asterisk Users Mailing List - Non-Commercial Discussion&#39;<br><b>Subject:</b> Re: [asterisk-users] How do extensions &quot;stay registered&quot;</span><u></u><u></u></p>
</div></div><div><div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="color:#1F497D">“Extensions” do not register – peers do.  A peer can register itself or be registered by Asterisk.  In most cases the “extension” is equivalent to the “peer” (301 = 301) but it can be quite different (301 = sipuser1) or (301 = <a href="mailto:doug@impalanetworks.com" target="_blank">doug@impalanetworks.com</a>).</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><u></u><u></u></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Douglas Mortensen<br>
<b>Sent:</b> Monday, November 14, 2011 3:52 PM<br><b>To:</b> &#39;<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>&#39;<br><b>Subject:</b> [asterisk-users] How do extensions &quot;stay registered&quot;</span><u></u><u></u></p>
</div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I know this is probably a very basic question for many on this list. But in troubleshooting an issue, I wanted to take a step back &amp; ask the question. In Asterisk (or maybe all SIP), how do extensions stay registered with the SIP server?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Do the extensions simply register repeatedly as a means of telling asterisk “I’m still here”, or are there actual keepalive packets that are transmitted to actually keep a TCP session alive? My guess is the former.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">But am I oversimplifying it? Is there more to the process?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">-<u></u><u></u></p><p class="MsoNormal"><span style="font-size:14.0pt">Doug Mortensen</span><u></u><u></u></p><p class="MsoNormal">Network Consultant<u></u><u></u></p><p class="MsoNormal"><b>Impala Networks Inc</b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt">CCNA, MCSA, Security+, A+</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt">Linux+, Network+, Server+</span><u></u><u></u></p><p class="MsoNormal">
.<u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt"><a href="http://www.impalanetworks.com" target="_blank">www.impalanetworks.com</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10.0pt">P: <a href="tel:%28505%29%20327-7300" target="_blank">(505) 327-7300</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt">F: <a href="tel:%28505%29%20327-7545" target="_blank">(505) 327-7545</a></span><u></u><u></u></p><p class="MsoNormal">.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
</div></div></div></div><p class="MsoNormal"><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Carlos Alvarez<u></u><u></u></p></div><div><p class="MsoNormal">TelEvolve<u></u><u></u></p></div><div>
<p class="MsoNormal">602-889-3003<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>