[asterisk-dev] How to keep the connection with AMI interfaceactive?

caif~ caif at qq.com
Mon Oct 6 20:29:15 CDT 2008

Thank you Kevin!
I added a thread to send ping action to Asterisk every 60 seconds, but the problem goes on.
Is 60 seconds too long fot keeping active? Or just sending ping is not enough?
What could I do to keep a connection active forever except Asterisk stopped?
I do think if there is no way to do that, any program for AMI is meaningless. None will put up with a software that need to be restart every few hours.

There must be a solution but I don't know, could any one give me some help? Thank you very much!
------------------ Original ------------------
From:  "Kevin P. Fleming"<kpfleming at digium.com>;
Date:  Mon, Oct 6, 2008 09:12 PM
To:  "Asterisk Developers Mailing List"<asterisk-dev at lists.digium.com>; 

Subject:  Re: [asterisk-dev] How to keep the connection with AMI interfaceactive?

  caif~ wrote:

> Dose Asterisk AMI close the connection with my program after a few hours?
> Do I need to keep sending ping to keep the connection active?

Yes, and yes.

Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)

--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20081007/3f6b58f5/attachment.htm 

More information about the asterisk-dev mailing list