[asterisk-users] AMI disconnects

Mike Diehl mdiehl at diehlnet.com
Thu May 3 15:40:32 CDT 2012


On Thursday 03 May 2012 1:47:09 pm Paul Belanger wrote:
> On 12-05-03 01:45 PM, Mike Diehl wrote:
> > Hi all.
> > 
> > I've got a perl script that connects to Asterisk's management interface
> > using Asterisk::AMI.  So far, its proven to be very useful.
> > 
> > I'm hoping to use this to detect and respond to asterisk restarts and sip
> > reloads.
> > 
> > However, my script gets disconnected quite frequently, causing false
> > alarms in my monitoring.

> > When this scrip disconnects, the asterisk console simply says that the
> > manager logged off from 127.0.0.1 and got logged back on.  No reall
> > error indication given.
> > 
> > Any suggestions on how to make this script keep it's connection?
> 
> This belongs on the asterisk-users list.  

I posted this to the asterisk-users list...  Did I miss something?

> However, something like StarPY
> (Python) has this functionality by using the Twisted.  It simply
> monitors events on the AMI, and if the connect break, can be setup to
> re-connect.

My code doesn't have any problems getting re-connected in a timely fashion.  
The issue is that it's getting disconnected for no apparent reason!

-- 

Take care and have fun,
Mike Diehl.



More information about the asterisk-users mailing list