<html><body bgcolor="#FFFFFF"><div>Instead of host=dynamic, use host=1.1.1.1, or host=1.1.1.0/255.255.255.0. </div><div><br></div><div><br></div><div><br></div><div><br><br><div><br></div><br><div>Thanks,</div><div>--Warren Selby</div></div><div><br>On Jan 12, 2010, at 11:16 AM, Aggio Alberto <<a href="mailto:alberto.aggio@loquendo.com">alberto.aggio@loquendo.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Hi guys,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">I recently faced an issue regarding SIP registration: I
have a 2-NIC Linux PC, with eth0 set to address 192.168.1.1 (NATted over public
network, with address 89.X.Y.Z) and eth1 set to address 1.1.1.1. In [sip.conf] I
set general option<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">bindaddr=0.0.0.0
; IP address to bind to (0.0.0.0 binds to all)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Then I have configured an account as following:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">[999]<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">type=friend<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">username=999<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">host=dynamic<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">port=5080<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">context=sipfrom<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">nat=no<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">canreinvite=no<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">call-limit=8<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">videosupport=no<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">disallow=all<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">allow=alaw<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New"">qualify=15000<o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font size="1" face="Courier New"><span style="font-size:9.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">So far, so good.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Now, I have an internal process (onto Linux PC) which is a
SIP endpoint and should register to Asterisk as 1.1.1.1:5080, but an external
entity (i.e. a SIP endpoint over public Internet) is trying to register to
Asterisk as <a href="mailto:999@89.X.Y.Z">999@89.X.Y.Z</a>:5060 and the
registration SUCCEEDS! When I launch the CLI command sip show peers, I see a
row like this:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:11.0pt;
font-family:"Courier New"">999/999
1.1.1.1
5060 OK (3 ms)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Can someone explain me this kind of behaviour? Is it
normal? Can I restrict registration of 999 peer only to SIP UA from network
1.1.1.X?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Thanks for your help! Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Verdana"><span style="font-size:11.0pt;
font-family:Verdana">Alberto Aggio<o:p></o:p></span></font></p>
</div>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>_____________________________________________________________________</span><br><span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --</span><br><span></span><br><span>asterisk-users mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users"><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></a></span></div></blockquote></body></html>