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

Alwin Chan alwin at qubeconnect.com
Mon Oct 6 21:29:08 CDT 2008


Hi caif,

You may want to look into the "Ping" action in AMI, see
http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Ping

On Tue, Oct 7, 2008 at 09:29, caif~ <caif at qq.com> wrote:
> 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:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> _______________________________________________
> --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:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Regards,
Alwin Chan
Technical Lead of Software Development
QubeConnect - "Communications Begin With Us"



More information about the asterisk-dev mailing list