[Asterisk-java-devel] AsteriskAgent - State
Brought to you by:
srt
|
From: Thomas K. <tho...@ac...> - 2008-01-24 14:22:15
|
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
|