Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 546
 
Chapter 6      Event Interfaces and Events
ISessionEvents Interface
6-6
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
OnConnectionFailure
The OnConnectionFailure event is generated when an established connection 
fails. It returns the name of the failed connected server and the failure time of day. 
Retry is automatic and can be followed by an OnConnection event when 
connection is successfully reestablished. The client application need not take any 
special action but may use this event to display connection status.
Syntax
C++:
void OnConnectionFailure(Arguments& args)
COM:
void OnConnectionFailure (IArguments * args)
VB:
session_OnConnectionFailure (ByVal args As 
CtiosCLIENTLib.IArguments)
Parameters
args
Arguments array containing the following fields.
OnConnectionRejected
The OnConnectionRejected event indicates that the client has tried to make a 
connection using incompatible versions of the CTI OS Server and CTI OS CIL.
Syntax
C++:
void OnConnectionRejected (Arguments& args)
Keyword
Type
Description
EventTime
INT
Integer value with time of day expressed in 
milliseconds.
FailedServer 
STRING
Name or tcp/ip address of the server that has 
failed to respond. See ReasonCode.
ReasonCode SHORT
SERVER_CONNECTIONBROKEN, 
SERVER_MISSINGHEARTBEATS