Re: [Asterisk-java-devel] Queue refresh
Brought to you by:
srt
From: Videanu A. <vid...@ya...> - 2012-11-08 14:38:50
|
thanks for hint and quick responses Jacob, indeed i try to build an liveMonitor application that will display in an ajax based webpage all the activity inside asteriskServer. Regards, Adrian Videanu --- On Thu, 11/8/12, Jac...@L-... <Jac...@L-...> wrote: From: Jac...@L-... <Jac...@L-...> Subject: Re: [Asterisk-java-devel] Queue refresh To: ast...@li... Date: Thursday, November 8, 2012, 4:10 PM I guess that all depends on what your application is doing! I do not actually use Queues so not sure what you are doing with the queues once you have them. I would keep a local ArrayList of each Queue that contains the members of the queue. This approach would be useful for a Real-time system, if you are just getting the info and displaying it to a static web-page interface keeping an ArrayList of each queue would be a little bit of an over kill. Although you could still listen for the onNewQueueEntry and then get a static list if members for that queue and then update the simi-static page if that is what you are going for. Jacob From: Videanu Adrian [mailto:vid...@ya...] Sent: Thursday, November 08, 2012 7:59 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] Queue refresh ... fair enough, but in this case you should somehow maintain an "artificial and parallel" list of queues in your application. Am I right? Regards, Adrian Videanu --- On Thu, 11/8/12, Jac...@L-... <Jac...@L-...> wrote: From: Jac...@L-... <Jac...@L-...> Subject: Re: [Asterisk-java-devel] Queue refresh To: ast...@li... Date: Thursday, November 8, 2012, 3:46 PMWhy are you doing a second getQueues() command? If you create a class that implements AsteriskServerListner interface and creates your DefaultAsteriskServer object it will automatically notify you when a new queue is add; onNewQueue method is called. Jacob From: Videanu Adrian [mailto:vid...@ya...] Sent: Thursday, November 08, 2012 5:56 AM To: ast...@li... Subject: [Asterisk-java-devel] Queue refresh Hi all, i have this scenario : 1- I do a login in asterisk 2 -get the queues (asteriskServer.getQueues()) 3 -add a new queue in asterisk/ restart asterisk server 4- get the queues (asteriskServer.getQueues()) this is not refreshed :( How can i refresh the asteriskServer.getQueues()? Regards, Adrian Videanu -----Inline Attachment Follows----------------------------------------------------------------------------------- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov -----Inline Attachment Follows-----_______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |