Add nat=yes for your provider [<a href="http://proxy01.sipphone.com/" target="_blank">proxy01.sipphone.com</a>] should do the trick. Qualify=60 is good for keeping firewall ports open. <br>
<br clear="all">You could supplement that with externip= in the [general] section but it is probably not needed.<br>
<br>-- <br>Thanks,<br>Steve Totaro <br>+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 4:13 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></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;">Investigate the externip= option for your SIP peers to the provider.<br>
<div><div></div><div class="Wj3C7c"><br>
Jim Dickenson wrote:<br>
<br>
> I have an Asterisk server, running 1.6.0, on my home network. It has an<br>
> IP address of <a href="http://192.168.0.201" target="_blank">192.168.0.201</a>. The server is behind my Linksys router that<br>
> does NAT for my home devices. I have a softphone on my Mac that is on<br>
> the same NATed network as the Asterisk server. It has an IP address of<br>
> <a href="http://192.168.0.1" target="_blank">192.168.0.1</a>. I have tried this with a Grandstream phone with the same<br>
> results.<br>
><br>
> The Asterisk server registers with a SIP provider and seems to maintain<br>
> a registration.<br>
><br>
> When I try to dial out from the soft phone or the Grandstream via the<br>
> SIP provider I get a "Bad Request" response from the provider. I am<br>
> guessing that many of the packets have my internal address and need my<br>
> public address.<br>
><br>
> Is there some way to resolve this?<br>
><br>
> Here is the relevant entry in extensions.conf:<br>
><br>
> exten => _88X.,1,Dial(SIP/${<a href="mailto:EXTEN%3A2%7D@proxy01.sipphone.com">EXTEN:2}@proxy01.sipphone.com</a>,20,r)<br>
> exten => _88X.,n,Hangup()<br>
><br>
><br>
> Here are my entries in sip.conf:<br>
><br>
> [<a href="http://proxy01.sipphone.com" target="_blank">proxy01.sipphone.com</a>]<br>
> type=peer<br>
> context=mine<br>
> disallow=all<br>
> allow=ulaw<br>
> dtmfmode=rfc2833<br>
> host=<a href="http://proxy01.sipphone.com" target="_blank">proxy01.sipphone.com</a><br>
> fromdomain=<a href="http://proxy01.sipphone.com" target="_blank">proxy01.sipphone.com</a><br>
> insecure=port,invite<br>
> qualify=yes<br>
> fromuser=myid<br>
> authuser=myid<br>
> defaultuser=myid<br>
> secret=mypwd<br>
> canreinvite=no<br>
><br>
> [GXP280]<br>
> type=friend<br>
> context=mine<br>
> nat=no<br>
> canreinvite=no<br>
> host=dynamic<br>
> secret=mypwd<br>
> callerid=GXP280 <109><br>
> mailbox=109@ourvm<br>
> busylevel=2<br>
><br>
> [dickenson]<br>
> type=friend<br>
> context=empl<br>
> nat=no<br>
> canreinvite=no<br>
> host=dynamic<br>
> secret=mypwd<br>
> callerid=Jim Dickenson <108><br>
> mailbox=108@ourvm<br>
><br>
> Looking at the SIP debug transaction I do not see my public IP address<br>
> at all. There must be some setting about the server having at NATed address.<br>
><br>
> --<br>
> Jim Dickenson<br>
> mailto:<a href="mailto:dickenson@cfmc.com">dickenson@cfmc.com</a><br>
><br>
> CfMC<br>
> <a href="http://www.cfmc.com/" target="_blank">http://www.cfmc.com/</a><br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><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>
<br>
<br>
--<br>
Alex Balashov<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
Mobile : (+1) (706) 338-8599<br>
</blockquote><div><br><br></div></div><br>