I have one trunk, and it uses voip.ms and IAX. Originally, it was pointing to the hostname “tampa.voip.ms”. A week ago, I edited the Trunk to “tampa2.voip.ms” which is a newer server. All seems to work well, but I am still seeing references to “tampa.voip.ms” in my Full log, and I don’t know why. Worse, those logs seem like something is broken:
[2017-12-04 10:04:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:04:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
Notice that the two hostnames swapped IPs. That doesn’t seem right. It may be a coincidence, but that swap happened during a call where the user reported that they never heard hold music and nobody could hear each other.
There are (at least) two places where the host is used when setting up a trunk, the peer details as well as the registration string. Did you update both? When making host changes to existing trunks, experience tells me that Asterisk needs a restart.
Thanks for the quick answers. Yes, I changed the hostname in both the Incoming Peer Details and Outgoing Registration String. I have not done a full reboot in 2 weeks though, so I’ll try that and see if the old reference comes back.
Do you all typically reboot on a schedule, or do you leave your system running for months?
I haven’t rebooted yet, but I searched the Full log for instances of “dnsmgr” and it looks like that weird swap happens over and over, except it’s always identical. This is every instance of “dnsmgr”:
[2017-12-04 10:39:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:39:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 10:44:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:44:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 10:49:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:49:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 10:54:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:54:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 10:59:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 10:59:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 11:04:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 11:04:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
[2017-12-04 11:09:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa2.voip.ms’ changed from 162.254.144.173:4569 to 162.254.144.176:4569
[2017-12-04 11:09:55] NOTICE[1844] dnsmgr.c: dnssrv: host ‘tampa.voip.ms’ changed from 162.254.144.176:4569 to 162.254.144.173:4569
etc. Weird, huh? I’m rebooting right now…
EDIT: Rebooting seems to have fixed it. The message has not come back. Thanks!
Dave Burgess:
Log into the console as root and use the following command to check for possible corruption in your /etc/files:
grep tampa2 `find /etc -type f’
I SSH’d into it, cd to /etc, then ran: grep -r ‘tampa’
It found 2 results, and both were “tampa2” and were the IAX Trunk settings. So no luck there. Since I rebooted a few hours ago, the references to “tampa” in the log have not come back, so I think the reboot fixed it. Thank you though!