Cisco Cisco Computer Telephony Integration Option 9.0 Guia Do Programador
6-66
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
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.
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.
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.
SkillGroupNumber
INT
The number of the agent SkillGroup
affected by the state change, as known to
the peripheral. May contain the special
value NULL_SKILL_GROUP when not
applicable or not available.
affected by the state change, as known to
the peripheral. May contain the special
value NULL_SKILL_GROUP when not
applicable or not available.
SkillGroupID
INT
The ICM SkillGroupID of the agent
SkillGroup affected by the state change.
May contain the special value
NULL_SKILL_GROUP when not
applicable or not available.
SkillGroup affected by the state change.
May contain the special value
NULL_SKILL_GROUP when not
applicable or not available.
StateDuration
INT
The number of seconds since the agent
entered this state (typically 0).
entered this state (typically 0).
SkillGroupPriority
SHORT
The priority of the skill group, or 0 when
skill group priority is not applicable or not
available.
skill group priority is not applicable or not
available.
EventReasonCode
SHORT
A peripheral-specific code indicating the
reason for the state change.
reason for the state change.