I've had this working for months -- there's no real problem with it, unless you misconfigured your firewall. On the asterisk-side, nat=yes is all you need to know.
> -----Original Message----- > From: Jared Watkins [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 19, 2004 1:19 PM > To: [EMAIL PROTECTED] > Subject: [Asterisk-Users] Vonage with Nat - Working > > > After much research and trial and error I've gotten a vonage > softphone > account working through a NAT firewall... I'll be updating the wiki > with this info after I see what sort of feedback I get from > the list. I > don't know that this is the only way to make it work.. but > this way does > work for me. > > I'll start with the NAT setup... it shouldn't matter.. but fyi I'm > using a linux firewall with iptables and the fwbuilder > package to create > the rules. > > The following UDP ports are allowed in.. and forwarded to > your internal > asterisk box. > > 8000 - 8020 > 5060 - 5061 > 10000 - 20000 > > > in sip.conf > > [general] > externip = <your external address> (possible dns name too?) > > > ; While not required... I found the following useragent > string from the > softphone they provide... > ; it does not seem to make a difference if you use it. > > ;useragent = "X-PRO Vonage release 1102t" > > ; example > ; register => > 17045555555:[EMAIL PROTECTED]:5061/vonage-in > > register => <your full softphone number including 1>:<case sensitive > password>@sphone.vopr.vonage.net:5061/<incoming call context> > > > ; Next.. the specific vonage entry in sip.conf > > [sphone.vopr.vonage.net] > secret = <your password> > username = <full softphone number> > insecure = very > disallow = all > allow = ulaw > port = 5061 > host = sphone.vopr.vonage.net > nat = yes > type = peer > canreinvite = no > dtmfmode = rfc2833 > fromuser = <your softphone number> > context = vonage-in > > > Then... in extensions.conf I have the following example for incoming > calls.... > > [vonage-in] > exten => 1NXXNXXXXXXX,1,------ some acton > > > > For outgoing calls I use something like this... > > Dial(SIP/[EMAIL PROTECTED]) > > > I use macros in my extensions file... but that's the basic idea... > With these settings I'm able to make and receive calls using a vonage > softphone account from behind a NAT firewall. I hope that is of some > use to others out there... > > Jared > > > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/aster> isk-users > To > UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
