Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 546
 
4-67
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 4      Building Your Application
Enabling Silent Monitor in your Application
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 
monitored mode. The remote client, upon receiving the 
OnSilentMonitorStartRequestedEvent, chooses whether or not accept the request. 
The remote client acknowledges its approval or rejection by sending a status 
report back to the monitoring client. The monitoring client will receive the 
acceptance or rejection via the OnSilentMonitorStatusReportEvent. When the 
session is accepted by the remote client it, will immediately start forwarding voice 
to the monitoring client. The silent monitoring session can only be terminated by 
the monitoring client by calling the StopSilentMonitorRequest method, CTI OS 
server will issue the OnSilentMonitorStopRequestedEvent to the remote client. 
The monitored client will stop sending audio immediately when 
OnSilentMonitorStopRequestedEvent is received by its SilentMonitorManager 
object.
Following are code samples for initiating and ending a silent monitor session: 
Monitoring Client Code Sample
Private Sub btnStartSM_OnClick()
Dim m_Args As New Arguments
‘Assemble arguments for start request
‘Agent to monitor
m_Args.AddItem "AgentID", “23840”
m_Args.AddItem "PeripheralID", “5000”
‘Request silent monitor session to start