AST --> FW NAT --> CARRIER sip.conf
externip=<PUBLIC IP GW OF ASTERISK> nat=route localnet=<IP AND LOCAL MASK>(ex .192.168.0.0/255.255.0.0) ;Carrier example [Carrier] type=friend host=CARRIER IP fromdomain= CARRIER IP context=incoming disallow=all allow=g729 canreinvite=no insecure=very Good Luck -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Alex Balashov Enviado el: Wednesday, November 12, 2008 7:14 PM Para: Asterisk Users Mailing List - Non-Commercial Discussion Asunto: Re: [asterisk-users] SIP provider and NAT Investigate the externip= option for your SIP peers to the provider. Jim Dickenson wrote: > I have an Asterisk server, running 1.6.0, on my home network. It has an > IP address of 192.168.0.201. The server is behind my Linksys router that > does NAT for my home devices. I have a softphone on my Mac that is on > the same NATed network as the Asterisk server. It has an IP address of > 192.168.0.1. I have tried this with a Grandstream phone with the same > results. > > The Asterisk server registers with a SIP provider and seems to maintain > a registration. > > When I try to dial out from the soft phone or the Grandstream via the > SIP provider I get a "Bad Request" response from the provider. I am > guessing that many of the packets have my internal address and need my > public address. > > Is there some way to resolve this? > > Here is the relevant entry in extensions.conf: > > exten => _88X.,1,Dial(SIP/${EXTEN:[EMAIL PROTECTED],20,r) > exten => _88X.,n,Hangup() > > > Here are my entries in sip.conf: > > [proxy01.sipphone.com] > type=peer > context=mine > disallow=all > allow=ulaw > dtmfmode=rfc2833 > host=proxy01.sipphone.com > fromdomain=proxy01.sipphone.com > insecure=port,invite > qualify=yes > fromuser=myid > authuser=myid > defaultuser=myid > secret=mypwd > canreinvite=no > > [GXP280] > type=friend > context=mine > nat=no > canreinvite=no > host=dynamic > secret=mypwd > callerid=GXP280 <109> > [EMAIL PROTECTED] > busylevel=2 > > [dickenson] > type=friend > context=empl > nat=no > canreinvite=no > host=dynamic > secret=mypwd > callerid=Jim Dickenson <108> > [EMAIL PROTECTED] > > Looking at the SIP debug transaction I do not see my public IP address > at all. There must be some setting about the server having at NATed address. > > -- > Jim Dickenson > mailto:[EMAIL PROTECTED] > > CfMC > http://www.cfmc.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (706) 338-8599 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
