Re: [Asterisk-java-devel] How to receive "No route to Host / Network Disconnection / ..." events?
Brought to you by:
srt
From: Jose B. <pe...@gm...> - 2014-07-29 09:13:39
|
Oh, sorry for asnwering so late. I was looking into my logs to copypaste those errors... Asterisk-java is running on 1 machine and Asterisk-AMI is running on other machine (IP 2). If network fails, or Asterisk fails or IP-2 machine freezes, asterisk-java throws these errors because it cannot connect to Asterisk: INFO: Connecting to 172.xxxxxxxx:5038 Jul 24, 2014 4:29:25 PM org.asteriskjava.manager.internal.ManagerConnectionImpl reconnect WARNING: Exception while trying to reconnect: *Connection timed out* WARNING: Exception while trying to reconnect: *Connection timed out* WARNING: Exception while trying to reconnect: *Connection timed out* ... ... Jul 24, 2014 4:30:48 PM org.asteriskjava.manager.internal.ManagerConnectionImpl reconnect WARNING: Exception while trying to reconnect: *No route to host* WARNING: Exception while trying to reconnect: *No route to host* WARNING: Exception while trying to reconnect: *No route to host* ... ... INFO: Connecting to 172.xxxxxxxx:5038 Jul 24, 2014 4:32:05 PM org.asteriskjava.manager.internal.ManagerConnectionImpl connect INFO: Connecting to 172.xxxxxxxx:5038 Jul 24, 2014 4:32:05 PM org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier INFO: Connected via Asterisk Call Manager/1.3 Jul 24, 2014 4:32:05 PM org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin INFO: *Successfully logged in* How could I retrieve those warnings in my Java code? I would like to run a few checks on Asterisk. If Asterisk failed it means audio calls have all finished and I must cleared a few variables in Java. On 25 July 2014 15:30, Yves A. <yv...@gm...> wrote: > Could you please go a bit more into detail? > which "network errors events" are you talking about? > > yves > > Am 25.07.2014 um 13:22 schrieb Jose Baez: > > Hello! > > How can I get network errors events sent by asterisk-java library? > > I would like to check a few variables after one of those errors occur, > to know if Asterisk failed or it was just a network hiccup. > > > Thank you. > > > > > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now.http://p.sf.net/sfu/bds > > > > _______________________________________________ > Asterisk-java-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > |