On 14 Oct 2013 18:18, "Paul Belanger" <[email protected]> wrote: > > On 13-10-14 12:31 PM, virendra bhati wrote: >> >> As I said, I am running a event capture program and it looks for Events and >> work on the basis of events. But some time it stop working so I want to >> auto-connect with asterisk back as it was disconnect with asterisk AMI. >> > Well, if the socket is closed, you lost the connection. Open the connection again and profit. > > -- > Paul Belanger | PolyBeacon, Inc. > Jabber: [email protected] | IRC: pabelanger (Freenode) > Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Which lang are you writing this in? Its more than likely that there's already a lib that deals with all of this for you, which should deal with reconnects and gives you the events/responses Dan
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
