When my network goes down, freepbx (latest v14 distro) gets confused on the DNS entry and never recovers.
[2018-12-08 12:08:21] NOTICE[2323] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #2)
[2018-12-08 12:08:42] NOTICE[2323] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #3)
[2018-12-08 12:09:22] ERROR[2323] netsock2.c: getaddrinfo("inbound1.vitelity.net", "(null)", ...): Name or service not known
[2018-12-08 12:09:22] WARNING[2323] acl.c: Unable to lookup 'inbound1.vitelity.net'
[2018-12-08 12:09:22] NOTICE[2323] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #4)
[2018-12-08 12:10:02] ERROR[2323] netsock2.c: getaddrinfo("inbound1.vitelity.net", "(null)", ...): Name or service not known
[2018-12-08 12:10:02] WARNING[2323] acl.c: Unable to lookup 'inbound1.vitelity.net'
[2018-12-08 12:10:02] NOTICE[2323] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #5)
[2018-12-08 12:10:22] ERROR[2323] netsock2.c: getaddrinfo("inbound1.vitelity.net", "(null)", ...): Name or service not known
[2018-12-08 12:10:22] WARNING[2323] acl.c: Unable to lookup 'inbound1.vitelity.net'
[2018-12-08 12:10:22] NOTICE[2323] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #6)
Machine name is still recognized by ping -
[[email protected] asterisk]# ping inbound1.vitelity.net
PING inbound1.vitelity.net (64.2.142.26) 56(84) bytes of data.
64 bytes from 64.2.142.26 (64.2.142.26): icmp_seq=1 ttl=49 time=42.0 ms
64 bytes from 64.2.142.26 (64.2.142.26): icmp_seq=2 ttl=49 time=42.8 ms
“core restart gracefully” does not resolve the problem.
“fwconsole restart” does not resolve the problem
I have to restart the computer to fix it.
Any other way to avoid the problem? or fix without a reboot?