Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
6-89
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Chapter 6 Event Interfaces and Events
IAgentEvents Interface
Remarks
When PG failover occurs, it is possible that the client application will receive an
OnPostLogout event with an EventReasonCode of
CTIOS_IPCC_FORCED_LOGOUT_REASON_CODE. For example, this may
happen on an IPCC system after reconnecting to a different server during a failover,
because there is a race condition of the PG logging the agent out and the client
reconnecting to the other server before it happens. If this happens, the client
application should not disconnect from CTI OS Server.
OnPostLogout event with an EventReasonCode of
CTIOS_IPCC_FORCED_LOGOUT_REASON_CODE. For example, this may
happen on an IPCC system after reconnecting to a different server during a failover,
because there is a race condition of the PG logging the agent out and the client
reconnecting to the other server before it happens. If this happens, the client
application should not disconnect from CTI OS Server.
OnPreLogout
The OnPreLogout event just before the agent is logged out. It allows for any
cleanup or logic that needs to be done before logout is completed.
cleanup or logic that needs to be done before logout is completed.
Syntax
C++:
void OnPreLogout(Arguments& args)
COM:
void OnPreLogout (IArguments * args)
VB:
session_OnPreLogout (ByVal args As CtiosCLIENTLib.IArguments)
Parameters
args
Arguments array containing the following fields.
Keyword
Type
Description
PeripheralID
INT
The ICM PeripheralID of the ACD where
the agent state change occurred.
the agent state change occurred.
PeripheralType
SHORT
The type of the peripheral.
AgentState
SHORT
One of the values in
representing
the current overall state of the associated
agent.
agent.