I must admit, for the most part I just use SIP for most things, but after returning from the OTTS training, I figured I would try working with IAX for a bit. Everything I see related to IAX talks about how this is simpler to work with vs SIP, leave it to me to find one to stump me.
I have two FreePBX Distro’s running on a LAN segment here, but are 3.x releases, running Asterisk 11, so all the modern goodies.
I have configured static trunks between the two servers, and in fact both machines can ping each other just fine. Unrelated, I also configured a SIP trunk that just worked between the two without any issues. So after configuring the trunk between the two PBX’s, and enabling qualify, one says OK with a couple ms response time, and the other PBX says UNREACHABLE. It’s reachable via normal PING, and if I use SIP it just works, but on IAX it’s unreachable.
This is all in a local LAN segment, there is no firewall, filters, or any type of ACL. I have even disabled IPtables as a test to see if that had any impact, but nope.
Config PBX-A:
Trunk Name: demokit
Peer Info:
username=mainpbx
type=friend
trunk=yes
secret=xyzzy
qualify=yes
insecure=port,invite
host=10.0.0.26
context=from-internal
auth=md5
requirecalltoken=no
callcounter=yes
Config PBX-B:
Trunk Name: mainpbx
Peer Info:
username=demokit
type=friend
trunk=yes
secret=xyzzy
qualify=yes
insecure=port,invite
host=10.0.1.67
context=from-internal
auth=md5
requirecalltoken=no
callcounter=yes
The LAN is 10.0.0.0/16 so using both 10.0.0.x and 10.0.1.x is fine for the local network, just in case someone notices the difference in IP addressing.
When on demokit, I see:
Name/Username Host Mask Port Status Description
demokit/mainpbx 10.0.0.26 (S) 255.255.255.255 4569 (T) UNREACHABLE
When on mainpbx, I see:
Name/Username Host Mask Port Status Description
mainpbx/demokit 10.0.1.67 (S) 255.255.255.255 4569 (T) OK (1 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
For the life of me, I can’t figure out why I get unreachable in one direction, does anyone here with some IAX experience have any clues on how to debunk and chase this one down?
As stated above, I can ping between both servers just fine, and I also went and setup a SIP trunk between mainpbx and demokit as a test, and the SIP trunk comes right up, and I get a good qualify on both sides. As soon as I try and use IAX, one side claims it’s unreachable.
Any ideas on how to debug this one is most appreciated, as I am still fighting this, but at a bit of a loss as to why this would only fail on a local LAN so no firewall/filters in place…