Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 640
8-21
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
 
Chapter 8      Session Object
Methods
GetAllCalls
The GetAllCalls method returns an array of object IDs. Each object ID is 
associated with a Call object stored in the CIL.
The number of object IDs returned from this method depends on the number of 
calls that the CIL has discovered through call events. For example, a CIL used in 
an agent desktop application will return IDs for all calls in which the agent is 
involved. A supervisor desktop returns IDs for any call in which the supervisor is 
involved as well as IDs for monitored calls. A monitor mode application filtering 
all call events returns IDs for each call known by the CTI OS Server. 
Syntax
C++:
Arguments & GetAllCalls()
COM
HRESULT GetAllCalls(/*[out, retval]*/ VARIANT *args)
VB:
GetAllCalls (args As VARIANT)
Java:
Arguments GetAllCalls()
.NET:
Arguments GetAllCalls()
Parameters
args
COM /VB: A pointer to a VARIANT containing a SAFEARRAY of pointers 
to ICalls.
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 a call and 
a value that is a reference to a CilRefArg that is a pointer to the call object.