Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: S on February 12, 2009, 05:44:22 PM
-
Can we find out an agent state using a function in IRD?
If so, please let me know.
Thanks
S
-
Hi,
I tried to solve the same question few weeks ago and I haven't found any function or object in IRD that returns current agent status. Finally, we ended with calling web service that queries TServer and returns required information.
R.
-
So you know which agent and you want to know that 1 agent's status?
Or you want to know the status of a group of agents?
-
I've used this to determine if the agent is available (it was part of an IF step):
[b]SData['AgentName@StatServerName.A','StatAgentsAvailable'] > 0.000000[/b]
You can look check if they are logged in by using different Stats such as StatAgentsTotal.
If you use variables to represent the username and stat server, you wouldn't encapsulate the name in quotes:
[b]SData[varusername,'StatAgentsTotal'] > 0.000000[/b]
The ".A" after the user name and stat server denote an Agent stat, you can also use ".GA" for a group of agents, ".AP" for a place, ".GP" for a group of places, ".Q" for a queue, or ".GQ" for a group of queues.