Hi,
I have set up a VM FreePBX 14.0.13.4, and a sip trunk to my local phone provider which is working fine. The pbx is behind a Zyxel firewal which then connects to the router. Every Sunday morning at 04:30 I suppose the phone provider is doing some DSLAM maintenance or firmware upgrades and my SIP trunk goes down and does not re-register until I come to office and stop asterisk for at least 60 minutes and restart it, or stop the pbx’s network or of course reboot the pbx, or reboot my firewall. I have a static IP, NAT Settings as follows:
NAT=yes
IP configuration=Dynamic IP (though changed today that to Static IP)
Override External IP=myhostname (though changed that today to my public IP)
I have setup pbx’s SIP Settings as follows:
Registration Timeout=65
Registration Attempts=0
Minimum Expiry=60
Maximum Expiry=300
Default Expiry=120
Here is what I get in logs:
[2019-07-14 04:31:10] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:31:10] VERBOSE[3326] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:31:10] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:31:10] VERBOSE[3332] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:31:41] ERROR[5353] netsock2.c: getaddrinfo(“myhostname”, “(null)”, …): Name or service not known
[2019-07-14 04:31:41] NOTICE[5353] chan_sip.c: Warning: Re-lookup of ‘myhostname’ failed!
[2019-07-14 04:31:45] NOTICE[5353] chan_sip.c: Peer ‘LINE1’ is now UNREACHABLE! Last qualify: 32
[2019-07-14 04:31:55] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:31:55] VERBOSE[3343] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:32:00] ERROR[5283] netsock2.c: getaddrinfo(“serviceprovider”, “(null)”, …): Name or service not known
[2019-07-14 04:32:00] WARNING[5283] acl.c: Unable to lookup ‘serviceprovider’
[2019-07-14 04:32:13] WARNING[5353] chan_sip.c: Retransmission timeout reached on transmission 4f007b4e61e3178c442bfb8d2caf604c@[::1] for seqno 5130 (Critical Request)
Packet timed out after 31999ms with no response
[2019-07-14 04:32:56] ERROR[5283] netsock2.c: getaddrinfo(“serviceprovider”, “(null)”, …): Name or service not known
[2019-07-14 04:32:56] WARNING[5283] acl.c: Unable to lookup ‘serviceprovider’
[2019-07-14 04:33:36] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:33:36] VERBOSE[3591] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:33:42] ERROR[5353] netsock2.c: getaddrinfo(“serviceprovider”, “(null)”, …): Name or service not known
[2019-07-14 04:33:42] WARNING[5353] acl.c: Unable to lookup ‘serviceprovider’
[2019-07-14 04:33:46] ERROR[5283] netsock2.c: getaddrinfo(“myinternalpbx”, “(null)”, …): Name or service not known
[2019-07-14 04:33:46] WARNING[5283] acl.c: Unable to lookup ‘myinternalpbx’
[2019-07-14 04:33:52] NOTICE[5353] chan_sip.c: – Registration for ‘myusername@serviceprovider’ timed out, trying again (Attempt #2)
[2019-07-14 04:34:24] WARNING[5353] chan_sip.c: Retransmission timeout reached on transmission 4f007b4e61e3178c442bfb8d2caf604c@[::1] for seqno 5132 (Critical Request)
Packet timed out after 31999ms with no response
[2019-07-14 04:34:29] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:34:29] VERBOSE[3733] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:34:57] NOTICE[5353] chan_sip.c: – Registration for ‘myusername@serviceprovider’ timed out, trying again (Attempt #4)
[2019-07-14 04:35:14] VERBOSE[5271] asterisk.c: Remote UNIX connection
[2019-07-14 04:35:14] VERBOSE[3892] asterisk.c: Remote UNIX connection disconnected
[2019-07-14 04:35:29] WARNING[5353] chan_sip.c: Retransmission timeout reached on transmission 4f007b4e61e3178c442bfb8d2caf604c@[::1] for seqno 5133 (Critical Request)
Packet timed out after 32000ms with no response
Might that be a configuration problem of my pbx, or something is messing with the firewall’s NAT?