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't be reached because it powers off or the router closes NAT, or whatever, then Asterisk won't know this until it times out.<div>
<br><br><div class="gmail_quote">On Mon, Nov 14, 2011 at 3:19 PM, eherr <span dir="ltr"><<a href="mailto:email.eherr9633@gmail.com">email.eherr9633@gmail.com</a>></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="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”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1F497D">If I am not mistaken.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D">--E<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></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> 'Asterisk Users Mailing List - Non-Commercial Discussion'<br><b>Subject:</b> Re: [asterisk-users] How do extensions "stay registered"<u></u><u></u></span></p>
</div></div><div><div></div><div class="h5"><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>).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><u></u> <u></u></span></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> '<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>'<br><b>Subject:</b> [asterisk-users] How do extensions "stay registered"<u></u><u></u></span></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 & 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<u></u><u></u></span></p><p class="MsoNormal">Network Consultant<u></u><u></u></p><p class="MsoNormal"><b>Impala Networks Inc<u></u><u></u></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt">CCNA, MCSA, Security+, A+<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt">Linux+, Network+, Server+<u></u><u></u></span></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><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt">P: <a href="tel:%28505%29%20327-7300" value="+15053277300" target="_blank">(505) 327-7300</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt">F: <a href="tel:%28505%29%20327-7545" value="+15053277545" target="_blank">(505) 327-7545</a><u></u><u></u></span></p><p class="MsoNormal">.<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p></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><br clear="all"><div><br></div>-- <br><div>Carlos Alvarez</div>
<div>TelEvolve</div><div>602-889-3003</div><div><br></div><br>
</div>