Re: [Asterisk-java-devel] AsteriskAgent - State
Brought to you by:
srt
From: Carlos G M. <tr...@hu...> - 2008-01-24 14:50:38
|
Thomas, if you are using Agents, they are only "ACTIVE" when receiving calls. If they make calls, then the Agent channel is still idle, as you see. Managing this and also the fact that most IP phones can actually have multiple calls is ... problematic sometimes. (I.e. your agents, if human, usually don't want to receive an ACD call when talking, and somehow if you have blended agents, you have to block that). -Carlos Thomas Kenner @ 24/1/2008 08:22 -0600 dixit: > 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 > -- Carlos G Mendioroz <tr...@hu...> LW7 EQI Argentina |