1 Trunk always drops and is unavailable

Hi,

I have 3 trunks configured, SipGate UK, MyDivert and VoipRaider. All trunks bar the MyDivert trunk work fine and re-register quickly and are available .

The MyDivert trunk during the re-registration process (Every 60 seconds) becomes unavailable and I am unable to dial in via that number. I did a wireshark trace and what it looks like is that it registers twice but the first time it fails and then it eventually comes back online.

My other two trunks work fine and I have incoming and outgoing calls all the time.

I tried getting help from MyDivert but all I got from them was that every was fine on their end.

This is what happens during the registration process:

[2013-11-20 05:02:04] NOTICE[2103]: chan_sip.c:23475 handle_response_peerpoke: Peer ‘My Divert IN’ is now Lagged. (5032ms / 2000ms)
[2013-11-20 05:02:04] NOTICE[2103]: chan_sip.c:29376 sip_poke_noanswer: Peer ‘Sipgate IN’ is now UNREACHABLE! Last qualify: 38
[2013-11-20 05:02:04] NOTICE[2103]: chan_sip.c:29376 sip_poke_noanswer: Peer ‘Sipgate’ is now UNREACHABLE! Last qualify: 38
[2013-11-20 05:02:04] NOTICE[2103]: chan_sip.c:29376 sip_poke_noanswer: Peer ‘Voipraider OUT’ is now UNREACHABLE! Last qualify: 46
[2013-11-20 05:02:14] NOTICE[2103]: chan_sip.c:23475 handle_response_peerpoke: Peer ‘My Divert IN’ is now Reachable. (32ms / 2000ms)
[2013-11-20 05:02:14] NOTICE[2103]: chan_sip.c:23475 handle_response_peerpoke: Peer ‘Sipgate IN’ is now Reachable. (39ms / 2000ms)
[2013-11-20 05:02:14] NOTICE[2103]: chan_sip.c:23475 handle_response_peerpoke: Peer ‘Sipgate’ is now Reachable. (39ms / 2000ms)
[2013-11-20 05:02:14] NOTICE[2103]: chan_sip.c:23475 handle_response_peerpoke: Peer ‘Voipraider OUT’ is now Reachable. (49ms / 2000ms)
I am running behind a Sonicwall TZ205 with persistent NAT switched on and all other SIP features off as I read that this would cause issues (similar to SIP ALG).

This is my box conif:

x PIAF Installed Version = 2.0.6.4 under HARDWARE
x FreePBX Version = 2.11.0.11
x Running Asterisk Version = 11.6.0
x Asterisk Source Version = 11.6.0
x Dahdi Source Version = 2.7.0.1
x Libpri Source Version = 1.4.14
x IP Address = 192.168.5.6 on eth0
x Operating System = CentOS release 6.4 (Final)
x Kernel Version = 2.6.32-358.23.2.el6.i686 - 32 Bit

Any help would be appreciated. Thanks.

This looks like some type of NAT issue with your router/firewall.

Would I still need to NAT from the outside in even if I do not have any phones that connect from the outside in?

Basically I have tried with ports open and ports closed. I’m using a Sonicwall TZ210 for my firewall, I’m at a loss why only that one trunk seems to fall off the rest are OK.

Thanks.

Was a DNS issue and my firewall not acting as a DNS server, instead it just forwards all to the ISP DNS server. I set the Asterisk first DNS server as the router, this is where the drops were occurring.