<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<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<br><br><hr id="stopSpelling">From: danny@debsinc.com<br>To: asterisk-users@lists.digium.com<br>Date: Fri, 10 Jul 2009 08:40:49 -0500<br>Subject: Re: [asterisk-users] setting up phones<br><br>
<style>
.ExternalClass .EC_shape
{;}
</style>
<style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.EC_EmailStyle18
{font-family:Arial;color:navy;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.EC_Section1
{page:Section1;}
</style>
<div class="EC_Section1">
<p class="EC_MsoNormal"><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 foobar.com 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></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Sip.conf should look this</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">[phone1]</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">type=peer</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">context=phones</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">host=dynamic</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">fromuser=phone1</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">secret=secret1</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">canreinvite=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">directrtpsetup=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">call-limit=3</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">nat=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">qualify=yes</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-timers=accept</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-expires=60</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-minse=120</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-refresher=uac</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register => phone1:secret1@foobar.com/phone1</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">defaultip=192.168.23.2</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">mailbox=1001</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">disallow=all</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">allow=alaw</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">[phone2]</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">type=peer</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">context=phones</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">host=dynamic</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">fromuser=phone2</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">secret=secret2</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">canreinvite=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">directrtpsetup=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">call-limit=3</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">nat=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">qualify=yes</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register=no</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-timers=accept</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-expires=60</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-minse=120</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">session-refresher=uac</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">register => phone2:secret2@foobar.com/phone2</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">defaultip=192.168.23.3</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">mailbox=1002</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">disallow=all</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">allow=alaw</span></font></p>
<p class="EC_MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p class="EC_MsoNormal"><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></p>
<div>
<div class="EC_MsoNormal" 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 class="EC_MsoNormal"><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;">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <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>
asterisk-users@lists.digium.com<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users]
setting up phones</span></font></p>
</div>
<p class="EC_MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<p class="EC_MsoNormal" 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 class="EC_MsoNormal" style="text-align: center;" align="center"><font size="2" face="Verdana"><span style="font-size: 10pt; font-family: Verdana;">
<hr id="EC_stopSpelling" size="2" width="100%" align="center">
</span></font></div>
<p class="EC_MsoNormal" 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: stotaro@asteriskhelpdesk.com<br>
To: asterisk-users@lists.digium.com<br>
Subject: Re: [asterisk-users] setting up phones<br>
<br>
<br>
</span></font></p>
<div>
<p class="EC_MsoNormal"><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 href="mailto:sixfourimpala@hotmail.com">sixfourimpala@hotmail.com</a>>
wrote:</span></font></p>
<div>
<p class="EC_MsoNormal"><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></p>
</div>
<div>
<p class="EC_MsoNormal"><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 class="EC_MsoNormal" 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 class="EC_MsoNormal" 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 class="EC_MsoNormal"><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">Check it out.</a></span></font></p>
</div><br /><hr />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='_new'>Check it out.</a></body>
</html>