" /> Find Agent State function in IRD... - Genesys CTI User Forum

Author Topic: Find Agent State function in IRD...  (Read 3567 times)

Offline S

  • Full Member
  • ***
  • Posts: 135
  • Karma: 1
Find Agent State function in IRD...
« on: February 12, 2009, 05:44:22 PM »
Advertisement
Can we find out an agent state using a function in IRD?
If so, please let me know.

Thanks
S

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Find Agent State function in IRD...
« Reply #1 on: February 12, 2009, 07:52:46 PM »
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.

Offline Dionysis

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: 8
Re: Find Agent State function in IRD...
« Reply #2 on: February 12, 2009, 09:03:04 PM »
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?




Offline PhoneBill

  • Newbie
  • *
  • Posts: 15
  • Karma: 1
  • It's a swingline
Re: Find Agent State function in IRD...
« Reply #3 on: February 12, 2009, 11:35:29 PM »
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.