Here is the whole /etc/iax.conf of my otherwise default Asterisk installation on Debian Squeeze :
[general]
disallow=all
allow=alaw
allow=ilbc
allow=gsm
jitterbuffer=yes
autokill=yes
register => liotier:FirstSecret@register.voipgate.com
register => 833249685:SecondSecret@iax.voiptalk.org
register => asterisk:supersecret@216.207.245.47
[voipgate]
type=peer
host=register.voipgate.com
username=liotier
secret=FirstSecret
qualify=yes
trunk=yes
[voiptalk]
type=peer
host=iax.voiptalk.org
username=833249685
secret=SecondSecret
qualify=yes
trunk=yes
[demo]
type=peer
username=asterisk
secret=supersecret
host=216.207.245.47
My firewall is correctly configured - captures show that test udp packets send using 'sendip -v -p ipv4 -is 10.128.0.2 -p udp -ud 4569 register.voipgate.com' pass from my asterisk host to the target unhampered.
Name resolution happens just fine, as a capture on my firewall attests (I use 'tshark -i eth3 "(ip and (port not 22) and (port not ntp))'). And anyway, the third host (the demo host in the original iax.conf) is defined using a numeric IP address.
But nothing else happens : there is absolutely no outbound traffic from the Asterisk host to show that it even tries to reach the hosts I have configured in his /etc/iax.conf
Using an entirely pristine iax.conf, the demo iax peer should be shown as 'REACHABLE'... But I witness the exact same behavior of my Asterisk host not initiating any traffic and the demo host shown by 'iax2 show peers' as 'UNREACHABLE' :
Name/Username Host Mask Port Status
demo/asterisk 216.207.245.47 (S) 255.255.255.255 4569 (T) UNREACHABLE
The debug logs are long repetitions of the following patterns, which I find utterly uninformative :
[Jan 4 00:38:44] DEBUG[12392] chan_iax2.c: schedule decrement of callno used for 216.207.245.47 in 60 seconds
[Jan 4 00:38:44] DEBUG[12384] chan_iax2.c: ip callno count decremented to 3 for 216.207.245.47
[Jan 4 00:38:54] DEBUG[12393] chan_iax2.c: ip callno count incremented to 4 for 216.207.245.47
I am puzzled... What have I forgotten ?