Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
8-26
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 8      Session Object
Methods
SetCurrentCall
The SetCurrentCall method assigns a call as the session’s current call.
Syntax
C++:
int SetCurrentCall(CCall& call)
COM:
 
HRESULT SetCurrentCall (/*{in]*/ICall *call, /*[out, retval]*/ errorcode
VB:
SetCurrentCall (call As CTIOSCLIENTLib.ICall)
Java:
int SetCurrentCall(Call callObject)
.NET:
CilError SetCurrentCall(Call rCall)
Parameters
call
Call to assign as current call.
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
.
Return Values
Default CTI OS return values. See 
Remarks
A successful request results in an OnCurrentCallChanged event.
In Java and .NET, if the call object specified in the call parameter is already the current call, the 
OnCurrentCallChanged event is not fired to the client application and a 
E_CTIOS_CALL_ALREADY_CURRENT_IN_SESSION code is returned.
SetCurrentSilentMonitor
The SetCurrentSilentMonitor method sets the SilentMonitorManager object instance specified as the 
current manager in the CTI OS session object.
Syntax
C++:
 
int SetCurrentSilentMonitor(CSilentMonitorManager * pSilentMonitor);
COM:
 
HRESULT SetCurrentSilentMonitor (/*[in]*/ ISilentMonitorManager * pSilentMonitor, 
/*[out,retval]*/ int * errorcode);
VB:
SetCurrentSilentMonitor (ByVal pSilentMonitor As CTIOSCLIENTLIB. 
ISilentMonitorManager) As Long
Java:
Not available
.NET:
Not available