IAX Trunk slow to connect call

richardoc
Posts: 17
Member Since:
2007-01-25

I have two Trixbox servers in different countries, communicating with each other over an IPSec VPN.

I have an IAX trunk set up between the two locations for a number of years, and it worked fine for a long time. Earlier this year, I updated our firewalls to Pfsense, and since then I have had issues with the IAX trunk.

The IAX trunk works, but it is slow for the calls to connect - from pressing dial, it can take 15-30 seconds sometimes, before the caller hears the ringing sound. During this time period, the call is silent. Once the callers phone starts ringing, the person being called can answer immediately and the call is fine.

Sometime the calls will go through immediately without a delay, but this is rare.

I can ping the other side of the VPN without a problem, and as I have mentioned, once the call connects, the call is fine.

I have set IAX debugging on both Trixbox servers, and I can see that on a slow-connecting-call, the remote PBX sees the incoming call immediately, but then the communications between the two boxes appears to be slow or inconsistant.

Here is the IAX Trunk set up:

---------------------------------------------
PBX A (Trixbox 2.6.2.3):

Peer Details:
host=10.0.10.2
qualify=yes
type=peer
username=pbxa
secret=password

User Context:
pbxias-in

User Details:
type=user
context=from-internal
host=10.0.10.2
secret=password

---------------------------------------------
PBX B (Trixbox 2.2.4):

Peer Details:
host=10.0.0.2
qualify=yes
secret=password
type=peer
username=pbxb

User Context:
pbxiax-in

User Details:
context=from-internal
host=10.0.0.2
secret=password
type=user

---------------------------------------------

Thank you in advance for any help on this.