Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 546
 
4-37
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 4      Building Your Application
Connecting to the CTI OS Server
OnSnapshotDeviceConf() for each device
OnSnapshotCallConf
()
OnMonitorModeEstablished()
How to Deal with Failover In Monitor Mode
The CTI OS CIL does not support failover for Monitor mode. Agents in monitor 
mode cannot recover their state after a failover. Furthermore, after a failover, the 
CTI OS CIL may leak Call objects.
To deal with failover in Monitor mode:
Step 1
When the application detects a failover, for example, in a CTIOSFailure() event 
indicating a connection failure or an offline component, wait until the CIL has 
failed over and everything is back online and the CIL is connected to CTI OS. 
The Monitor mode application is responsible for determining when all required 
servers are online. You can do this by monitoring OnCtiosFailure() events and 
keeping track of system status changes as they occur.
Step 2
Use the Disconnect() method to disconnect the session from CTI OS.
Step 3
Follow the steps starting at the beginning of the section 
 to: 
a.
Create a session instance.
b.
Set the event listener.
c.
Set connection parameters.
d.
Call the Connect() method.
e.
Set the connection mode in the OnConnection() event handler.