Thread: [Asterisk-java-users] queue call
Brought to you by:
srt
From: Daniel G. <da...@gr...> - 2007-09-24 20:46:32
|
reposting ... mail server problems! 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 |
From: Daniel G. <da...@gr...> - 2007-09-24 20:47:16
|
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 |
From: Stefan R. <ste...@re...> - 2007-09-25 01:58:38
Attachments:
signature.asc
|
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 :( =3DStefab Daniel Gradecak wrote: > Hello all, >=20 > I wonder how to track the lifecycle of a call queue. It is simple to=20 > handle a normal call ... you just wait for=20 > AbstractAsteriskServerListener.onNewAsteriskChannel but there is a=20 > prblem on a queue call, because > a queue call generate 6 new channels ... I am redisigning my applicatio= n=20 > (http://sourceforge.net/projects/svarog/) and do not want to handle all= =20 > the events anymore, would rather use the=20 > java.beans.PropertyChangeListener facility. >=20 > So how to really know that the call is coming from a queue and which=20 > channels to listen to in order to have the right channels for the call?= >=20 > Regards, > Daniel >=20 > -----------------------------------------------------------------------= -- > 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 --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
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 > |
From: Stefan R. <ste...@re...> - 2007-09-26 21:43:49
Attachments:
signature.asc
|
Hi Daniel, well just open an issue at jira.reucon.org and attach your patch there. > if (member =3D=3D null) > { > member =3D new AsteriskQueueMemberImpl(server, queue, event > .getLocation(), *QueueMemberState.DEVICE_NOT_INUSE*); > } > queue.addMember(member); >=20 > } >=20 > are we sure that the device is not in use? shouldn't that line be ... > QueueMemberState.valueOf(event.getStatus()) >=20 > even if it returns UNKOWN ? without having an in-depth look at the code that sounds reasonable. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Patrick B. <bre...@go...> - 2007-10-08 10:13:32
|
Hi Daniel, I am back and checked your stuff. It is right, the system should use the state from event. Guess you got problems, if an agent/member was answering a call while init the system. I cecked in your code in trunk as fix for issue AJ-93 (jira.reucon.org). Thanks for your work. Regards Patrick Am Mittwoch, 26. September 2007 23:24 schrieb Daniel Gradecak: > 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 > > ------------------------------------------------------------------------- > 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 -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 |