I’ve had an Asterisk 13 setup working perfectly for the past two or three months, but for the past couple of days my SIP trunk will start failing to register after about an hour of the server running.
Disabling/Enabling the trunk will do nothing, but rebooting will bring it back up for another hour before it goes down again.
I haven’t changed anything from the configuration settings. It might be a provider issue but their support is fairly terrible so I’d rather troubleshoot everything I can before calling them.
Thanks for any help!
Here’s the error log:
[2016-07-05 02:11:14] NOTICE[2162] chan_sip.c: – Registration for ‘115555555@11555555’ timed out, trying again (Attempt #1036)
[2016-07-05 02:11:34] WARNING[2162] chan_sip.c: Probably a DNS error for registration to 115555555@11555555, trying REGISTER again (after 20 seconds)
You have a bogus domain name. You probably had working DNS before that was promptly responding that is is bougus, but that DNS is no longer responding.
I meant rebooting the whole VM, rebooting Asterisk (core restart gracefully) didn’t help.
I ended up doing a fresh install of Asterisk and with almost exactly the same settings (manually rebuilt, I didn’t use a config backup just in case) it seems to be working perfectly again.
My hunch is that FreePBX/Asterisk’s DNS cache got messed up somehow but I didn’t know how to rebuild it without reinstalling.
11555555 is just my way of obscuring my phone number/SIP username. The registration string is 11555555:SECRET@11555555/115555555
Out of curiousity, I spun up the old VM and run the commands you mentioned (replacing 11555555 with the actual number:
So, you have a real domain name, not a bogus ‘11555555’. This sequence of digits was confusing.
Anyway, your DNS configuration is rather strange - you seem to be running a nameserver on a local machine (at least, on its loopback interface), somewhere else in the internal network (192.168.1.1) and using open Google name servers.
If the issue arises again, the whole DNS configuration (and underlying network / iptables configuration) should be reviewed - this problem is not directly related to Asterisk.