Re: [Asterisk-java-devel] AsteriskAgent - State
Brought to you by:
srt
From: Thomas K. <tho...@ac...> - 2008-01-25 09:02:35
|
Hi Patrick, The engaged agent answered the call directly from another agent. I tested calling over a queue: the state was set to AGENT_ONCALL. Should the state only be set to AGENT_ONCALL if the call comes from a queue? When is the state AGENT_RINGING set? Which event is triggered? Thanks a lot, Thomas (I'm using code revision 944 and Asterisk 1.4.10) On Thursday 24 January 2008 16:06:55 Breucking Patrick wrote: > Hi Thomas, > > I checked your snippet against trunk version and it worked as > expected. Has the engaged agent answered a call from the queue? > > For more help I need some more information: > > - asterisk version > - code revision > - short descriptions of agents/queue scenario > > Regards, > Patrick > > > 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 > > Am 24.01.2008 um 15:22 schrieb Thomas Kenner: > > Hello! > > > > I've got the following problem: > > > > I'd like to get the number of agents which are in the "calling" > > state. I wrote > > the following code: > > > > for (AsteriskAgent agent : asteriskServer.getAgents()) { > > if(agent.getStatus() == AgentState.AGENT_ONCALL){ > > active_calls++; > > } > > } > > > > But the state of all agents is always IDLE, even if the > > corresponding agent is > > currently engaged in a call. > > > > Did I forget to set something in the config files of asterisk? I > > already set > > the following variables: > > in queues.conf: eventwhencalled = yes > > in sip.conf: callevents = yes > > > > Thanks a lot, > > Thomas > > > > -- > > Thomas Kenner > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel -- DI Thomas Kenner eMail: tho...@ac... www: http://www.acoveo.com |