Re: [Asterisk-java-users] How to know if the manager connection isbroken?
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-05-16 13:12:28
|
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. |