Re: [Asterisk-java-users] How to know if the manager connection isbroken?
Brought to you by:
srt
From: E. M. <mar...@gm...> - 2008-05-16 16:51:45
|
Thank you Martin, that was I was looking for. And yes, it applies to reconnects. :) As far as I know, there is nothing like show channels for manager. I don't know if something similar is implemented in asterisk-java live stuff but I'm not using this since I wrote my program before it was implemented. On Fri, May 16, 2008 at 3:12 PM, Martin Smith <ma...@be...> wrote: > Edward, > > I haven't checked to see if this applies for reconnects, but does listening > for a "ConnectEvent" work? > > > http://asterisk-java.org/development/apidocs/org/asteriskjava/manager/event/ConnectEvent.html > > 'core show channels concise' crashing sounds like a bad thing, though, > yikes! Have you tried something like sending a StatusAction? > > I'd steer away from parsing console commands as the developers have > considered about making anything from the console less and less parsable and > intended for human eyes only. They would add more to the manager interface > to make up for it, but I think they were just trying to find a way to split > responsibilities cleanly without duplicating Manager and Console within > themselves. > > Good luck, > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > ------------------------------ > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Eduard > Martínez > *Sent:* Friday, May 16, 2008 5:40 AM > *To:* Ast...@li... > *Subject:* [Asterisk-java-users] How to know if the manager connection > isbroken? > > Hi, > > Asterisk sometimes crashes and restarts automatically, so the manager > connection is broken and reconnected again automatically. Is there a way to > know when this happens? > > My problem is that I have some call objects in a Map and since all calls > are dropped, I need to 'simulate' a hangup of these calls.. Perviously I was > using a 'core show channels concise' command every 5 seconds, but asterisk > sometimes hangs with this command. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |