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

caif~ caif at qq.com
Tue Oct 7 01:06:58 CDT 2008


Hi, Alwin
Thanks for your advice.
I had tried keeping send Ping action like this:
Action: Ping
ActionID: xxxxxxxxx

And Asterisk responses:
Response: Pong
ActionID: xxxxxxxxx

The problem goes on.

In the link you gave to me, the Ping action does not contain ActionID.
Maybe I should remove ActionID in this action, I will try it later.
Thanks!

------------------ Original ------------------
From:  "Alwin Chan"<alwin at qubeconnect.com>;
Date:  Tue, Oct 7, 2008 10:29 AM
To:  "Asterisk Developers Mailing List"<asterisk-dev at lists.digium.com>; 

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

 
  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"

_______________________________________________
--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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20081007/710f60ad/attachment-0001.htm 


More information about the asterisk-dev mailing list