Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 546
 
4-65
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 4      Building Your Application
Enabling Silent Monitor in your Application
AvgIncomingCallsHeldTimeToday = IncomingCallsHeldTimeToday /  
IncomingCallsHeldToday
AvgInternalCallsRcvdTimeToday = InternalCallsRcvdTimeToday /  
InternalCallsRcvdToday
AvgInternalCallsHeldTimeToday = InternalCallsHeldTimeToday /  
InternalCallsHeldToday
AvgCallsQTimeToday = CallsQTimeToday /  CallsQToday
Enabling Silent Monitor in your Application
The silent monitor manager object is responsible for establishing and maintaining 
the state of a silent monitor session.
The first thing a client application should do is to create a silent monitor object 
instance. The application should then set this object instance as the current 
manager in the session object. The CIL provides the interface to this functionality. 
A client application can work in one of two possible modes:
Monitoring mode. The client receives audio from a remote monitored target 
(device/agent).
Monitored mode. The client sends audio to a remote monitoring client.
Creating a Silent Monitor Object
The first step towards setting up a silent monitor session is creating a 
SilentMonitorManager using the Session object CreateSilentMonitorManager 
method. Then, set the new manager object to be the current silent monitor 
manager using the Session object SetCurrentSilentMonitor method.
The following VB code sample demonstrates how to create a 
SilentMonitorManager object and make it the current manager in the Session 
object:
Dim  errorcode   As Long
Dim m_nSMSessionKey As Integer
Dim m_SMManager  As CTIOSCLIENTLib.SilentMonitorManager
Dim m_Args As New Arguments
‘Assemble arguments to create the silent monitor manager