Endpoint is now Reachable then Unreachable

I am pretty new to the use of PBX, the use of SIP, etc. We have a hosted freePBX server that has been working great coming through our older router, no problems with that part of the system. The issue is we are trying out a newer Sonicwall router to swap out with the older unit.
The Sonicwall is on a separate gateway than the older router but same service provider. After adding all the NAT rules and polices the system was working fine until the No Service and endpoint issue started. The traffic from both routers flow through all the switches listed below.

I do have the phone set to use a static IP to force it to be used through the Sonicwall.

Now as far as the topology of the two network routes-

Old router
Service Provider->Switch->CiscoRouter->Switch->Switch->Switch->Aastra phones

Sonicwall
Service Provider->Switch->Sonicwall->Switch->Switch->Switch->Aastra 55i phone

I was wondering if due to this setup if it would be causing this issue but the older router is configured just the same but those phones operate fine. Below is the logs which show that the phone becomes reachable after exactly 57 seconds and unreachable after exactly 2 minutes and 3 seconds. This is continuous and repeats.

Some days the phone will sit with No Service and is not able to connect (even on rebooting), then the next morning it will connect but have the reachable/unreachable issue. The phone cannot receive calls while unreachable, but if you call out while unreachable it will work.

[2023-06-01 08:36:18] VERBOSE[27729] res_pjsip/pjsip_configuration.c: Endpoint 103 is now Unreachable
[2023-06-01 08:36:18] VERBOSE[27729] res_pjsip/pjsip_options.c: Contact 103/sip:103@...:52910;x-ast-orig-host=10.14.10.58:5060 is now Unreachable. RTT: 0.000 msec
[2023-06-01 08:37:15] VERBOSE[6237] res_pjsip/pjsip_configuration.c: Endpoint 103 is now Reachable
[2023-06-01 08:37:15] VERBOSE[6237] res_pjsip/pjsip_options.c: Contact 103/sip:103@...:52910;x-ast-orig-host=10.14.10.58:5060 is now Reachable. RTT: 45.543 msec
[2023-06-01 08:39:18] VERBOSE[6237] res_pjsip/pjsip_configuration.c: Endpoint 103 is now Unreachable
[2023-06-01 08:39:18] VERBOSE[6237] res_pjsip/pjsip_options.c: Contact 103/sip:103@...:52910;x-ast-orig-host=10.14.10.58:5060 is now Unreachable. RTT: 0.000 msec

If it’s going on and offline on a schedule its probably a UDP port timer in your router. In the extension if you turn the qualify time down and the phone stays online that’s mostly likely your issue

See increased UDP timeout in
https://wiki.ipitomy.com/wiki/Router_Info_Sonicwall

1 Like

I did end up finding those references to the UDP timeout, and it worked! I was for sure I had originally made it 300 seconds but it was set to just 30 seconds. Sonicwall makes you verify your changes and click the ok button twice, ugh Thanks for the help!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.