NAT settings question

This section is for general discussions surrounding digital phone service.
Post Reply
volenin
Active Poster
Posts: 100
Joined: 07/14/2009

NAT settings question

Post by volenin »

Hi,

I wonder if any of the NAT settings should be enabled on the ATA gateway (I have Linksys 2102) in the following configuration:

Code: Select all

[Rogers 10Mb / 512Kb internet connection] ---> [Linksys Cable Modem] ---> [Linksys WRT54G router with Tomato firmware] ---> [Linksys 2102 ATA gateway]
I've tried both enabling and disabling NAT mapping for the Line1 setting - worked in both cases. With NAT Mapping enabled, I've played around with NAT Support Parameters on the SIP tab. Again - works pretty much with any setting. The only major difference I've noticed is the log output: if NAT mapping is enabled for the line and 'Handle VIA received, Handle VIA rport, Insert VIA received, Insert VIA rport, Substitute VIA Addr' are all set to 'yes', then the ATA seem to replace local IP with 'external WAN' IP for the SIP packets.

Also, with NAT Mapping enabled, I couldn't get 'NAT Keepalive' to work properly: I'm always getting a reply 'Temporarily Unavailable':

Code: Select all

Feb 20 16:52:54 192.168.1.15 NOTIFY sip:voip.freephoneline.ca SIP/2.0  Via: SIP/2.0/UDP 99.225.xyz.xyz:5060;branch=z9hG4bK-fc9840b0;rport  From: volenin <sip:1416xxxxxxx@voip.freephoneline.ca>;tag=791156dacad33b68o0  To: <sip:voip.freephoneline.ca>  Call-ID: 7b04ae22-52628cc0@192.168.1.15  CSeq: 72 NOTIFY  Max-Forwards: 70  Contact: volenin  <sip:1416xxxxxxx@99.225.xyz.xyz:5060>  Event: keep-alive  User-Agent: Linksys/SPA2102-5.2.10  Content-Length: 0   
Feb 20 16:52:54 192.168.1.15 SIP/2.0 480 Temporarily Unavailable  Via: SIP/2.0/UDP 99.225.xyz.xyz:5060;branch=z9hG4bK-fc9840b0;rport=5060  From: volenin   <sip:1416xxxxxxx@voip.freephoneline.ca>;tag=791156dacad33b68o0  To: <sip:voip.freephoneline.ca>;tag=5f57799c6422099f69ed9fdf6014ae41.a919  Call-ID: 7b04ae22-52628cc0@192.168.1.15  CSeq: 72 NOTIFY  Server: Sip EXpress router (0.9.6 (i386/freebsd))  Content-Length: 0  
Tried various combination for SIP parameters, including using the STUN server, but to no avail...

So, if ATA is behind a router, do you need to enable any NAT settings or not?..

Thanks,

Vlad
Post Reply