Re: [Asterisk-java-users] queue call
Brought to you by:
srt
From: Daniel G. <da...@gr...> - 2007-09-26 21:23:55
|
Thank you Stefan. Actually I started to add the code to support the queue events, and if you would like i will contribute that code, if Patrick is not doing it now. There is something I would like to know, because I am not sure of this code : void handleQueueMemberEvent(QueueMemberEvent event) { final AsteriskQueueImpl queue = queues.get(event.getQueue()); if (queue == null) { logger.error("Ignored QueueMemberEvent for unknown queue " + event.getQueue()); return; } AsteriskQueueMemberImpl member = queue.getMember(event.getLocation()); if (member == null) { member = new AsteriskQueueMemberImpl(server, queue, event .getLocation(), *QueueMemberState.DEVICE_NOT_INUSE*); } queue.addMember(member); } are we sure that the device is not in use? shouldn't that line be ... QueueMemberState.valueOf(event.getStatus()) even if it returns UNKOWN ? Stefan Reuter wrote: > Hi Daniel, > > Patrick is currently working on the Queue/Member/... stuff. If you like > to have a look at his last posts to the devel list regarding this. > Sorry, Patrick, I didn't yet take the time to have a more in depth look > on that stuff. Will do so as soon as time permits :( > > =Stefab > > Daniel Gradecak wrote: > >> Hello all, >> >> I wonder how to track the lifecycle of a call queue. It is simple to >> handle a normal call ... you just wait for >> AbstractAsteriskServerListener.onNewAsteriskChannel but there is a >> prblem on a queue call, because >> a queue call generate 6 new channels ... I am redisigning my application >> (http://sourceforge.net/projects/svarog/) and do not want to handle all >> the events anymore, would rather use the >> java.beans.PropertyChangeListener facility. >> >> So how to really know that the call is coming from a queue and which >> channels to listen to in order to have the right channels for the call? >> >> Regards, >> Daniel >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> 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 >> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > 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 > |