Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 668
 
4-79
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 4      Building Your Application
Enabling Silent Monitor in your Application
Dim m_Args As New Arguments
 
‘Assemble arguments to set the work mode
 
m_Args.AddItem("HeartbeatInterval", 5)
 
m_Args.AddItem("HeartbeatTimeout", 15)
 
'Address or hostname of the silent monitor service
 
m_Args.AddItem("SMSAddr", "localhost")
 
'Port on which silent monitor service is listening
 
m_Args.AddItem("SMSListenPort", 42228)
 
'QoS setting when sending messages to the silent monitor service
 
m_Args.AddItem("SMSTOS", 0)
 
'Milliseconds between heartbeats
 
m_Args.AddItem("SMSHeartbeats", 5000)
 
'Number of missed heartbeats before the connection to the
 
'silent monitor service is considered disconnected
 
m_Args.AddItem("SMSRetries", 3)
 
‘Port number where audio will be listened for
 
m_Args.AddItem("MediaTerminationPort", 4000)
 
‘Set the working mode to monitoring
 
m_SMManager.StartSMMonitoringMode(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
 
m_Args.AddItem("HeartbeatInterval", 5)
 
m_Args.AddItem("HeartbeatTimeout", 15)
 
'Address or hostname of the silent monitor service
 
m_Args.AddItem("SMSAddr", "localhost")
 
'Port on which silent monitor service is listening
 
m_Args.AddItem("SMSListenPort", 42228)
 
'QoS setting when sending messages to the silent monitor service
 
m_Args.AddItem("SMSTOS", 0)
 
'Milliseconds between heartbeats
 
m_Args.AddItem("SMSHeartbeats", 5000)
 
'Number of missed heartbeats before the connection to the
 
'silent monitor service is considered disconnected
 
m_Args.AddItem("SMSRetries", 3)
 
‘Extension number of the IP Phone to monitor