Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
Chapter 9      Agent Object
Methods
9-46
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1) 
StartMonitoringAgent
The StartMonitoringAgent method allows the client, which must be a supervisor, 
to start monitoring the specified Agent object. This call will cause the supervisor 
to receive all of the monitored call events (See 
in 
) for this agent until the supervisor 
calls StopMonitoringAgent.
Syntax
C++:
int StartMonitoringAgent(Arguments& args)
COM:
HRESULT StartMonitoringAgent (/*[in]*/ IArguments * args, 
/*[out,retval]*/ int * errorcode)
VB:
StartMonitoringAgent (args As CTIOSCLIENTLib.IArguments) As 
Long
Java:
int StartMonitoringAgent(Arguments args)
.NET:
CilError StartMonitoringCall(Arguments args)
Parameters
args
Arguments array that contains the constant CTIOS_AGENTREFERENCE set 
to the string value of the UniqueObjectID of the agent 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 
Remarks
This request is specific to the Supervisor feature and should only be used on 
switches or configurations that have the necessary support (currently, Cisco IPCC 
only).