Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 508
   
9-35
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 8.0(1)
Chapter 9      Agent Object
Methods
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
Return Value
Default CTI OS return values. See 
Remarks
This request is specific to the Supervisor feature and should only be used on switches or configurations 
that have the necessary support (currently, Unified CCE only).
The following code snippet gets the unique object ID string for an agent, then uses uses the SetValue 
method to store the agent object id and string constant CTIOS_AGENTREFERENCE in an arguments 
array.
String StrUID = agent.GetValueString(CTIOS_UNIQUEOBJECTID Id);
arg.SetValue(CTIOS_AGENTREFERENCE, StrUID);
StartMonitoringAgentTeam
The StartMonitoringAgentTeam method allows the client, which must be a supervisor, to start 
monitoring the specified agent team. A client supervisor uses this method to receive all of the 
OnMonitorAgentStateChange events for every agent on the specified team.
Syntax
C++:
int StartMonitoringAgentTeam (Arguments& args)
COM:
HRESULT StartMonitoringAgentTeam (/*[in]*/ IArguments args, /*[out,retval]*/ int * 
errorcode)
VB:
StartMonitoringAgentTeam (args as CTIOSCLIENTLib.IArguments) As Long
Java:
int StartMonitoringAgentTeam (Arguments args)
.NET:
CilError StartMonitoringAgentTeam(Arguments args)
Parameters
args
Arguments array that contains the constant CTIOS_TEAMID set to the integer TeamID to be 
monitored.
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
Return Value
Default CTI OS return values. See