<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#993366;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#993366'>Thanks for the answer Danny. Can you give an example of when we would setup peers through Method 1 &amp; 2 as you described?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#993366'>If I am using FreePBX &amp; setup generic SIP extensions &amp; then use Polycom phones &amp; configure them to register with the SIP server (asterisk) with the extension/user &amp; password, are these extensions (or maybe more correctly &#8220;peers&#8221;) I setup via FreePBX actually &#8220;self-registration&#8221; or &#8220;required-registration&#8221; peers?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span style='color:#993366'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'>-<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'>Doug Mortensen<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'>Network Consultant<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'>Impala Networks<o:p></o:p></span></p><p class=MsoNormal><span style='color:#993366'>P: 505.327.7300<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#993366'><o:p>&nbsp;</o:p></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;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Danny Nicholas [mailto:danny@debsinc.com] <br><b>Sent:</b> Monday, November 14, 2011 3:26 PM<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;<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='color:#1F497D'>Just trying to offer a little enlightenment &#8211; There are basically two methods of sip phone (peer/extension) registration.&nbsp; Method 1 is &#8220;self-registration&#8221; where Asterisk does not know or care about the phone until it asks to register.&nbsp; Method 2 is &#8220;required-registration&#8221; where Asterisk expects the phone to be there pretty much 24/7 and will attempt to register the phone and verify that it is still there at whatever frequency is specified.&nbsp; I personally record method 1 phones in users.conf and method 2 phones in sip.conf.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></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;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>eherr<br><b>Sent:</b> Monday, November 14, 2011 4:19 PM<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;<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><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 &#8220;UNKNOWN&#8221;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>If I am not mistaken.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>--E<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></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;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> <a href="mailto:[mailto:asterisk-users-bounces@lists.digium.com]">[mailto: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 &quot;stay registered&quot;<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='color:#1F497D'>&#8220;Extensions&#8221; do not register &#8211; peers do.&nbsp; A peer can register itself or be registered by Asterisk.&nbsp; In most cases the &#8220;extension&#8221; is equivalent to the &#8220;peer&#8221; (301 = 301) but it can be quite different (301 = sipuser1) or (301 = <a href="mailto:doug@impalanetworks.com">doug@impalanetworks.com</a>).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></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;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> <a href="mailto:[mailto:asterisk-users-bounces@lists.digium.com]">[mailto: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> 'asterisk-users@lists.digium.com'<br><b>Subject:</b> [asterisk-users] How do extensions &quot;stay registered&quot;<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></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?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Do the extensions simply register repeatedly as a means of telling asterisk &#8220;I&#8217;m still here&#8221;, or are there actual keepalive packets that are transmitted to actually keep a TCP session alive? My guess is the former.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>But am I oversimplifying it? Is there more to the process?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>-<o:p></o:p></p><p class=MsoNormal><span style='font-size:14.0pt'>Doug Mortensen<o:p></o:p></span></p><p class=MsoNormal>Network Consultant<o:p></o:p></p><p class=MsoNormal><b>Impala Networks Inc<o:p></o:p></b></p><p class=MsoNormal><span style='font-size:10.0pt'>CCNA, MCSA, Security+, A+<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Linux+, Network+, Server+<o:p></o:p></span></p><p class=MsoNormal>.<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'><a href="http://www.impalanetworks.com">www.impalanetworks.com</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>P: (505) 327-7300<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>F: (505) 327-7545<o:p></o:p></span></p><p class=MsoNormal>.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>