<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Asterisk GUI-version : SVN-branch-2.0-r4962<br><br><hr id="stopSpelling">Date: Fri, 10 Jul 2009 11:57:38 -0400<br>From: stotaro@asteriskhelpdesk.com<br>To: asterisk-users@lists.digium.com<br>Subject: Re: [asterisk-users] setting up phones<br><br>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'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 "what flavor of Asterisk?"<br><br><div class="EC_gmail_quote">On Fri, Jul 10, 2009 at 11:51 AM, Danny Nicholas <span dir="ltr"><<a>danny@debsinc.com</a>></span> wrote:<br>
<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
<div lang="EN-US">
<div>
<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><BR>
<font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font><BR>
<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>
<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>asterisk-users-bounces@lists.digium.com</a>
[mailto:<a>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>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><BR>
</div><div><div></div><div class="h5">
<font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font><BR>
<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>danny@debsinc.com</a><br>
To: <a>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>
<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>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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register =>
<a>phone1:secret1@foobar.com/phone1</a></span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register =>
<a>phone2:secret2@foobar.com/phone2</a></span></font><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"></span></font><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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><BR>
<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>
<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>asterisk-users-bounces@lists.digium.com</a>
[mailto:<a>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>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><BR>
</div>
<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><BR>
<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>stotaro@asteriskhelpdesk.com</a><br>
To: <a>asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] setting up phones<br>
<br>
</span></font></p>
<div>
<font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">On Thu, Jul 9, 2009 at 5:12 PM, Ott Rose <<a>sixfourimpala@hotmail.com</a>>
wrote:</span></font><BR>
<div>
<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'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't put them in there they are like that
in the conf</span></font><BR>
</div>
<div>
<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><BR>
</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>
<font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">Windows Live™: Keep your life in sync. <a>Check
it out.</a></span></font><BR>
</div>
<font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;"> </span></font><BR>
<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>
<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>Check it out.</a></span></font><BR>
</div></div></div>
</div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a>http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a>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><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009' target='_new'>Check it out.</a></body>
</html>