I saw 127.0.0.2, never seen that before.  Loopback that I have seen is 127.0.0.1.<br><br>I always just bind to 0.0.0.0 since I have never really seen a point to binding to a specific IP.  I guess if you are dual homed and don&#39;t want remote phones to work, but then you could just block that stuff in IPTables or whatever firewall.<br>
<br>Thanks,<br>Steve T<br><br>BTW, what GUI?  That was part of what I was asking when I said &quot;what flavor of Asterisk?&quot;<br><br><div class="gmail_quote">On Fri, Jul 10, 2009 at 11:51 AM, Danny Nicholas <span dir="ltr">&lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">You are running asterisk as a local
service (127.0.0.1 is localhost).  You need to use the address from ifconfig
(192.168.X.X) in sip.conf (bindaddr).  This will make asterisk where your
phones can “talk” to it and register.</span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<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><span style="font-weight: bold;">On Behalf Of </span></b>Ott Rose<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, July 10, 2009 10:33
AM<div><div></div><div class="h5"><br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users]
setting up phones</div></div></span></font></p>

</div><div><div></div><div class="h5">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p style="margin-bottom: 12pt;"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"><br>
so i filled in the info and now i get this when i run  sip show peers<br>
Name/username             
Host            Dyn Nat
ACL Port     Status<br>
500/500                   
127.0.0.1       
D          5060    
OK (1 ms)<br>
501/501                   
127.0.0.1       
D         
5060     OK (1 ms)<br>
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]<br>
<br>
<br>
I still cannot call the extensions and the phones say no service on there
screen</span></font></p>

<div style="text-align: center;" align="center"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p style="margin-bottom: 12pt;"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">From: <a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a><br>
To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Date: Fri, 10 Jul 2009 08:40:49 -0500<br>
Subject: Re: [asterisk-users] setting up phones</span></font></p>

<div>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Let’s draw this out and let you fill in
the blanks.  Your asterisk server has a name of <a href="http://foobar.com" target="_blank">foobar.com</a> and an ip
address of 192.168.23.1.  phone 1 has ip address of 192.168.23.2. 
phone 2 has ip address of 192.168.23.3.</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Sip.conf should look  this</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">[phone1]</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">type=peer</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">context=phones</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">host=dynamic</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">fromuser=phone1</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">secret=secret1</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">canreinvite=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">directrtpsetup=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">call-limit=3</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">nat=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">qualify=yes</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-timers=accept</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-expires=60</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-minse=120</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-refresher=uac</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register =&gt;
<a href="http://phone1:secret1@foobar.com/phone1" target="_blank">phone1:secret1@foobar.com/phone1</a></span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">defaultip=192.168.23.2</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">mailbox=1001</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">disallow=all</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">allow=alaw</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">[phone2]</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">type=peer</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">context=phones</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">host=dynamic</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">fromuser=phone2</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">secret=secret2</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">canreinvite=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">directrtpsetup=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">call-limit=3</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">nat=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">qualify=yes</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register=no</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-timers=accept</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-expires=60</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-minse=120</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-refresher=uac</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register =&gt;
<a href="http://phone2:secret2@foobar.com/phone2" target="_blank">phone2:secret2@foobar.com/phone2</a></span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">defaultip=192.168.23.3</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">mailbox=1002</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">disallow=all</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">allow=alaw</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>


<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">assuming your phones are set up to contact
192.168.23.1 with username phone1/phone2 and proper secret, all should register
and you should be good to go.</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<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><span style="font-weight: bold;">On Behalf Of </span></b>Ott Rose<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, July 10, 2009 8:33
AM<br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users]
setting up phones</span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font></p>

<p style="margin-bottom: 12pt;"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">Here is my physical network.<br>
<br>
We have a Adtran router that is plugged into the Asterisk server and into the
circuit provided by my tel co. <br>
<br>
the other nic in the Asterisk box is plugged into your lan switch<br>
<br>
the phones are plugged into the lan switch<br>
<br>
<br>
I can ping the phones from the Asterisk server. </span></font></p>

<div style="text-align: center;" align="center"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p style="margin-bottom: 12pt;"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">Date: Thu, 9 Jul 2009 17:42:43
-0400<br>
From: <a href="mailto:stotaro@asteriskhelpdesk.com" target="_blank">stotaro@asteriskhelpdesk.com</a><br>
To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] setting up phones<br>
<br>
</span></font></p>

<div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">On Thu, Jul 9, 2009 at 5:12 PM, Ott Rose &lt;<a href="mailto:sixfourimpala@hotmail.com" target="_blank">sixfourimpala@hotmail.com</a>&gt;
wrote:</span></font></p>

<div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">I followed it the best I could. the phones say no service.
I haven&#39;t got to setting up the SIP trunk yet I was told I could get the
extensions to work so I could test between the two phones i have. I have to
nics in my server. one is connect to the phone router the other to a network
switch. which ip should it point to? I am guess the one connected to the
switch. That is the one i can access the GUI from. Below are my users.conf
setting. Notice all the spaces. I didn&#39;t put them in there they are like that
in the conf</span></font></p>

</div>

<div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"><br>
Either you did not explain your network topology very well or that is your
problem.<br>
<br>
Unless you are trying to segregate your VoIP traffic, plug everything into the
switch.<br>
<br>
If using DHCP, get the IP and try pinging the phones from the Asterisk box.<br>
<br>
I bet it is just a network issue. </span></font></p>

</div>

</div>

<p style="margin-bottom: 12pt;"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"><br>
-- <br>
Thanks,<br>
Steve Totaro <br>
+18887771888 (Toll Free)<br>
+12409381212 (Cell)<br>
+12024369784 (Skype)</span></font></p>

<div style="text-align: center;" align="center"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">Windows Live™: Keep your life in sync. <a href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009" target="_blank">Check
it out.</a></span></font></p>

</div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"> </span></font></p>

<div style="text-align: center;" align="center"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">Hotmail® has ever-growing storage! Don’t worry about
storage limits. <a href="http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009" target="_blank">Check it out.</a></span></font></p>

</div></div></div>

</div>


<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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"><br>-- <br>Thanks,<br>Steve Totaro <br>
+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br>