Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 640
 
Chapter 4      Building Your Application
Enabling Silent Monitor in your Application
4-78
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Monitoring Mode
In this mode the client receives audio, confirmation and session status events for 
a specific silent monitor session. This mode is intended for use by client 
applications developed for Supervisor desktop functionality. The 
StartSMMonitoringMode method on the SilentMonitorManager object selects 
this mode. 
Following is a code sample for specifying the mode for the client application. 
Dim m_Args As New Arguments
‘Assemble arguments to set the work mode
‘Port number where audio will be listened for
m_Args.AddItem "MediaTerminationPort", 8000
‘Set the working mode to monitoring
m_SMManager.StartSMMonitoringMode(m_Args)
Monitored Mode
In this mode, the client sends audio and status reports on silent monitor session 
and receives requests for start and stop silent monitor session. This mode is 
intended for client applications developed for Agent desktop functionality. The 
StartSMMonitoredMode method on the SilentMonitorManager object selects this 
mode.
Following is a code sample for specifying the mode for the client application: 
Dim m_Args As New Arguments
‘Assemble arguments to set the work mode
‘Extesnsion number of the Hard IP Phone to monitor
m_Args.AddItem "MonitoredDeviceID", “1234”
‘Port  where audio will be sent
m_Args.AddItem "MonitoringIPPort", 99999
‘Set the working mode to monitored
m_SMManager.StartSMMonitoredMode(m_Args)
Initiating and Ending a Silent Monitor Session
Initiating a silent monitor session starts with the client, in monitoring mode, 
calling the StartSilentMonitorRequest method. This indicates that the CTI OS 
server should send an OnSilentMonitorStartRequestedEvent to a remote client in