Re: [Asterisk-java-devel] AsteriskAgent - State
Brought to you by:
srt
From: Breucking P. <bre...@go...> - 2008-01-25 11:50:06
|
Am 25.01.2008 um 10:02 schrieb Thomas Kenner: > 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? This event is generated by the asterisk and so it should. This is maybe a fault in the asterisk agent model. Stefan what do you think about it. Should we "correct" these "faults"? > > > When is the state AGENT_RINGING set? Which event is triggered? This event is not implemented and will be removed. > > > 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 > > ------------------------------------------------------------------------- > 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 > |