Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: tbremard on November 08, 2011, 09:49:17 AM

Title: Get list of agent with condition on login status
Post by: tbremard on November 08, 2011, 09:49:17 AM
Good Morning,

we would like to display login status on a agent directory of our application desktop.

currently we populate our directory with

[code]
internal ICollection<CfgPerson> RetrieveAgents()
        {
            // Creates an instance of the CfgPersonQuery class.
            // An instance of the configuration service is provided, so the query will be executable.
            CfgPersonQuery query = new CfgPersonQuery(this.confService);
            ICollection<CfgPerson> ret;

         
            try
            {
                query.IsAgent = (int)CfgFlag.CFGTrue;
                ret = query.Execute();
            }
            catch
            {
                Bandeau.Log.Error("RetrievePersonByName::ExecuteSingleResult() error");
                ret = null;
            }
            return ret;
        }
[/code]

how could we make a filter on the fact that we want to retrieve only list of agents who are already logged.

alternatively we would like to have call back and know how to set call back when an event : either new logged in or a logged out of an agent occured

Thierry
Title: Re: Get list of agent with condition on login status
Post by: Dorota122 on November 30, 2011, 10:15:33 AM
thank you for a very excellent post that you gave everyone here , sucj a great idea and i was looking for it .  :)>
Title: Re: Get list of agent with condition on login status
Post by: CooperTurner on December 02, 2011, 08:04:06 AM
What is the basic requirement there?  ???