Cisco Cisco Computer Telephony Integration OS 8.5 Guida Dello Sviluppatore
6-2
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 6 Event Interfaces and Events
ISessionEvents Interface
•
LogEventsAdapter (Java only). This class provides the default implementation for the message
handlers in ILogEvents.
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.
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.
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 may use it to display connection status.
connected server and the connection time of day. The client application need not take any special action
but may 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 was initiated by the
client (CIL or application using the CIL). By contrast, the OnConnectionFailure event is generated when
the connection terminated for reasons other than that the client closed the connection.
message has no fields. This event indicates successful completion of an action that was initiated by the
client (CIL or application using the CIL). 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.