Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
6-2
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 6      Event Interfaces and Events
ISessionEvents Interface
LogEventsAdapter (Java only). This class provides the default implementation for the message 
handlers in ILogEvents.
IGenericEvents. This interface sends generic events to subscribers of the IGenericEvents interface.
The remainder of this chapter provides the detailed description of each event interface available from the 
CIL. 
Note
The data type listed for each keyword is the standardized data type discussed in the section 
 See 
 for the appropriate language 
specific types for these keywords.
ISessionEvents Interface
The Session object fires events on the ISessionEvents interface. The following events are published to 
subscribers of the ISessionEvents interface.
OnConnection
The OnConnection event is generated after the Connect method succeeds. It returns the name of the 
connected server and the connection time of day. The client application need not take any special action 
but can use it to display connection status.
Syntax
C++:
void OnConnection(Arguments& args)
COM:
void OnConnection (IArguments * args)
VB:  
session_OnConnection (ByVal args As CtiosCLIENTLib.IArguments)
Parameters
args
Arguments array containing the following fields.
Table 6-1
ISession Event Parameters
OnConnectionClosed
The OnConnectionClosed message is generated when a connection is terminated by the client. This 
message has no fields. This event indicates successful completion of an action that the client (CIL or 
application using the CIL) initiated. By contrast, the OnConnectionFailure event is generated when the 
connection terminated for reasons other than that the client closed the connection.
Keyword
Type
Description
EventTime
INT
Integer value with time of day expressed in milliseconds.
CurrentServer 
STRING
Name or TCP/IP address of the current connected CTI OS server.