Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: CallMeMaybe on July 27, 2022, 03:47:31 PM

Title: Get IDs of all logged in Agents?
Post by: CallMeMaybe on July 27, 2022, 03:47:31 PM
How do I do this via the stat server?
Title: Re: Get IDs of all logged in Agents?
Post by: hsujdik on August 01, 2022, 01:08:00 AM
I have never done that, but here comes a suggestion on how I would attempt to approach it and see if it actually works:

I would create one (or more) VAGs for your switch (or multiple switches) using the LoggedIn function for the script of the VAG (https://docs.genesys.com/Documentation/RTME/latest/User/ConfigureVAG)

Then, get the ExtendedCurrentStatus statistic for that VAG object and get the agents from the Actions property in object returned.


If, however, that does not work, another approach could be connect to Configuration Server, query for all Person objects with IsAgent = 2, and then use that result to query individual Agent objects (iterate through Configuration Server results) against Stat Server for any Statistical Type that has Category as CurrentNumber and LoggedIn as part of the Main Mask.