Re: [Asterisk-java-users] Asterisk-java-users Digest, Vol 9, Issue 1
Brought to you by:
srt
From: Yelson V. <yv...@gm...> - 2007-01-02 21:44:27
|
Hi Short answer yes long howto: ManagerConnectionState mcs; ManagerConnection mc; ManagerConnectionFactory mcf; mcf = new ManagerConnectionFactory(ippbx, "user", "password"); mc = mcf.createManagerConnection(); mc.login(); mcs = mc.getState(); System.err.println("Procesar - '" + mcs.toString() + "'"); if((mcs.toString().equals("INITIAL")) || (mcs.toString().equals ("CONNECTED"))){ ........ I hope this help Br Yelson =] On Jan 2, 2007, at 4:22 PM, asterisk-java-users- re...@li... wrote: > Send Asterisk-java-users mailing list submissions to > ast...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > or, via email, send a message with subject or body 'help' to > ast...@li... > > You can reach the person managing the list at > ast...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-java-users digest..." > > > Today's Topics: > > 1. Manager API connection status. (Karien Du Preez) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 2 Jan 2007 15:28:51 +0200 > From: "Karien Du Preez" <kar...@gm...> > Subject: [Asterisk-java-users] Manager API connection status. > To: ast...@li... > Message-ID: > <4cc...@ma...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi all. > > I would like to have a warning light system in my application, that > signifies the connection status to the asterisk server. > Something like a light at the bottom that turns red when the asterisk > manager connection is lost. The light must turn green again when > the manager > connection is regained. How can I achieve this with Asterisk-Java? > > Thanks alot. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://sourceforge.net/mailarchive/forum.php?forum=asterisk- > java-users/attachments/20070102/90e84ba5/attachment.html > > ------------------------------ > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > > ------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > End of Asterisk-java-users Digest, Vol 9, Issue 1 > ************************************************* |