Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 500
   
6-4
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 6      Event Interfaces and Events
ISessionEvents Interface
Syntax
C++:
void OnCTIOSFailure (Arguments& args)
COM:
void OnCTIOSFailure (IArguments * args)
VB:
Session_OnCTIOSFailure (ByVal args As CtiosCLIENTLib.IArguments)
Parameters
args
Arguments array containing the following fields.
Keyword
Type
Description
FailureCode
INT
A value according to an enumerated value, as shown immediately 
following this table.
SystemEventID
INT
Present only if FailureCode equals ServerConnectionStatus. 
Contains a value according to an enumerated value, as shown 
immediately following this table.
SystemEventArg1
INT
Present only if SystemEventID equals SysPeripheralOnline or 
SysPeripheralOffline. Contains the peripheral ID of the affected 
peripheral.
ErrorMessage
STRING
An error message.
Following are the enumerated values for Failure Code:
enum enumCTIOS_FailureCode
{
eDriverOutOfService
=
1,
eServiceNotSupported
=
eDriverOutOfService + 1,
eOperationNotSupported
=
eServiceNotSupported + 1,
eInvalidPriviledge
=
eOperationNotSupported + 1,
eUnknownRequestID
=
eInvalidPriviledge + 1,
eUnknownEventID
=
eUnknownRequestID + 1,
eUnknownObjectID
=
eUnknownEventID + 1,
eRequiredArgMissing
=
eUnknownObjectID + 1,
eInvalidObjectState
=
eRequiredArgMissing
eServerConnectionStatus
=
eInvalidObjectState + 1,
eInconsistentAgentData
=
eServerConnectionStatus + 1,
eAgentAlreadyLoggedIn
=
eInconsistentAgentData + 1,
eForcedNotReadyForConfigError
=
eAgentAlreadyLoggedIn + 1
eMonitorModeConnectionDenied
=
eForcedNotReadyForConfigError + 1
};