Re: [Asterisk-java-devel] AsteriskAgent - State
Brought to you by:
srt
From: Breucking P. <bre...@go...> - 2008-01-24 15:07:00
|
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 > |