[b]StatAgentsAvailable [/b]would tell you if they are ready, if you want to verify first that they are logged in, you can use [b]StatAgentsTotal[/b], e.g. [tt]SData['virtual_agents@statserverur.GA','StatAgentsTotal'] > 0.000000[/tt].
However, the [b]StatAgentsAvailable [/b][i]will [/i]check that they [i]are [/i]logged in, since no agent can be available if they are not logged in. In other words, you were on the right track.
You can also use the same logic to check the state of individual agents, e.g. [tt]SData['bsmith@statserverur.A','StatAgentsAvailable'] > 0.000000[/tt].
The [tt].A [/tt]denotes that this is an agent statistic, as opposed to the group of agents, [tt].GA[/tt].
Additionally, instead of using the specific group or agent name, you can create a variable that represents the agent or agent group name and use that instead. You must ensure the format is correct: [i][tt]ObjectName@StatServerName.ObjectType[/tt][/i]. For example, we use [tt]varusername [/tt]to represent the agent, [tt]varusername = 'bsmith@statserverur.A'[/tt], so it would be [tt]SData[varusername,'StatAgentsAvailable']>0.000000[/tt]
[hr]
[u]We use agent targeting and voicemail a bit differently:[/u]
We first check if the [b]StatAgentTotal [/b]is greater than [tt]0[/tt], indicating they [i]are[/i] logged in after which we target their username for 18 seconds. If the agent does not become available within those 18 seconds, they are routed to voicemail by connecting the red port of the agent target step to a [tt]TRoute [/tt]function that sends the call to the voicemail extension. We give only ringback treatment, consequently, the caller experience is similar to ringing at a phone 3 times and then forwarding to voicemail.
If the agent is not logged in, the value is [tt]0[/tt], we immediately route the call to voicemail. I expect savvy callers would learn that calls going immediately to voicemail indicates that the agent is not logged in.
[quote author=kishore link=topic=4000.msg17537#msg17537 date=1237585929]
Hi all,
I am trying to form a logic to send the call to voice mail if no agents are available (i mean not logged in and not ready state)
i could form logic to check agents logged in.
SData['virtual_agents@statserverur.GA','StatAgentsAvailable'] > 0.000000
pls help me how to check if agents are not ready?
Thanks in advance
[/quote]