System stopped routing calls until Asterisk service restart

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

System stopped routing calls until Asterisk service restart

Postby newguise » Thu Jan 07, 2016 9:47 pm

We are running Asterisk 1.8.20.0 as part of Elastix 2.4.0-1. Today Asterisk completely stopped routing calls. No calls could be made or received. An attempt to dial from a registered SIP extensions would eventually time out. We restarted the Asterisk service and the system started working again normally.
The problem coincided with an update being made to the PBX configuration via the Elastix web GUI. The operation that was being performed was adding an extension to several queues. The changes were made by repeatedly clicking the “Apply Configuration Changes Here” link after each queue was changed, instead of just once to apply the complete set of changes with one reload operation. This may have been done several times within the space of a couple of minutes. The Asterisk log did contain 2 lines showing “loader.c: The previous reload command didn't finish yet”, but these were logged a couple of minutes after the issue started. When the service was restarted, it logged “asterisk.c: Asterisk uncleanly ending (0).”
I can paste a more extensive extract from the log if required.
Any advice on identifying what might have caused this and correcting the root cause would be much appreciated.
Thanks in advance.
newguise
Newsterisk
 
Posts: 2
Joined: Thu Jan 07, 2016 9:46 pm

Re: System stopped routing calls until Asterisk service restart

Postby navaismo » Fri Jan 08, 2016 8:52 am

You should ask to the elastix forum since Elastix/FreePBX do more stuff and the GUI handle the configs. usually you press the "Apply Config" button once you finished all your chenges not one by one. By pressing thet button the gui send a "reload" command to asterisk and thats not the better idea but is just like it works the FPBX framework.

I guess your system get stuck with too many reloads to do. If your system its ok now try from linux shell the command: amportal stop and wiat for the confirmation then amportal start.

If issue persist check also your dns, SIP has some issues when there is no intenert connection and you can't resolve names.
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: System stopped routing calls until Asterisk service restart

Postby newguise » Wed Jan 13, 2016 5:13 pm

Thanks for your reply, Navaismo. I agree that subjecting Asterisk to too many consecutive reloads is the only obvious explanation. The system has been fine since, so I won't run the amportal command unless I encounter further issues.
newguise
Newsterisk
 
Posts: 2
Joined: Thu Jan 07, 2016 9:46 pm


Return to Asterisk Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest