Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
8-12
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 8      Session Object
Methods
Remarks
C++ code example:
Arguments & argsStatBroadcast = Arguments::CreateInstance();
argsStatBroadcast.AddItem(CTIOS_SKILLGROUPNUMBER, intSG);
argsStatBroadcast.AddItem(CTIOS_PERIPHERALID, m_periphID);
m_pSkGrStatSession->EnableSkillGroupStatistics ( argsStatBroadcast );
argsStatBroadcast.Release();
GetAllAgents
The GetAllAgents method returns an array of object IDs. Each object ID is associated with an Agent 
object stored in the CIL.
The number of object IDs returned from this method depends on the number of agents that the CIL 
discovered through agent events. For example, a CIL used in an agent desktop application returns one 
ID, which is the ID of the agent currently logged into the desktop. A supervisor desktop returns the 
supervisor’s ID as well as IDs for all agents on the supervisor’s team. A monitor mode application 
filtering all agent events returns IDs for each agent known by the CTI OS Server. 
Syntax
C++: 
Arguments & GetAllAgents()
COM:
HRESULT GetAllAgents(/*[out, retval]*/ VARIANT *args)
VB:
GetAllAgents (args As VARIANT)
Java: 
Arguments GetAllAgents()
.NET:
Arguments GetAllAgents()
Parameters
args 
COM/VB: 
A pointer to a VARIANT containing a SAFEARRAY of pointers to IAgents.
Return Values
COM/VB: Default CTI OS return values. See 
Java/.NET: Returns NULL if the value requested is not found or if there is an error. If the method 
succeeds, it returns a pointer or a reference to an Arguments array where each member has a string key 
that is the UniqueObjectID of an agent and a value that is a reference to a CilRefArg that is a pointer to 
the agent object.
C++: An empty Arguments array if the value requested is not found or if there is an error. If the method 
succeeds, it returns a pointer or a reference to an Arguments array where each member has a string key 
that is the UniqueObjectID of an agent and a value that is a reference to a CilRefArg that is a pointer to 
the agent object.