[Asterisk-Users] Asterisk chooses invalid outgoing interface (IAX2, virtual interfaces)

Stefan Reuter asterisk at stefan.de
Thu Jan 27 02:57:48 MST 2005


Hi,

i have an asterisk box with two external ip addresses (say 1.2.3.4 on 
eth0 and 1.2.3.5 on eth0:1) and one "internal" vpn ip address (say 
10.0.0.1 on tun0)

The problem is:
when a client conntects via iax to 1.2.3.4, the asterisk server responds 
on 1.2.3.5 and the packets are not accepted by the client.
I can kinda fix this by using the bindaddr option, but then i can't 
accept calls on tun0.
IMHO the asterisk responses should always be sent from the ip the 
request was received on.

Any ideas on how to fix this?

Stefan



More information about the asterisk-users mailing list