[asterisk-users] IAX2 NAT issues

Tim H. Panton thp at westhawk.co.uk
Wed Sep 12 03:48:00 CDT 2007


I guess that you just need to add a rule to your simple router's config
that permits udp 4569 from asterisk outbound to any IP address.


Tim

----- Original Message -----
From: "Perssy Llamosas" <pllamosas at telecall.com.pe>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Tuesday, September 11, 2007 11:06:09 PM (GMT) Europe/London
Subject: [asterisk-users]  IAX2 NAT issues

Hello,

I am playing around with IAX2 and I have encountered a problem trying to 
setup an asterisk box through NAT using IAX2.

This is the problem:

Asterisk box => Advanced Firewall => Internet => User's router => User

The user can register, the server can answer, calls can be made.

Asterisk box => Very simple router => Internet => User's router => User

User's packet reach the server, the server cannot reply because the udp 
connection is lost, several RX retry TX retry, user is unable to call.

In both cases the firewall and the router are forwarding the port 4569 
to Asterisk, user's router is not forwarding anything, the user has 
qualify=yes to maintain the connection open but the very simple router 
will drop the connection before Asterisk can reply to the packet.

So I ask the list: Is there a way to overcome this problem? Udp 
connection timeout in Asterisk? Should I get a new router?

Thanks,

PLL.





More information about the asterisk-users mailing list