Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide
6-79
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
Chapter 6 Event Interfaces and Events
IAgentEvents Interface
OnAgentStateChange
The OnAgentStateChange event is generated when the agent state at the ACD
changes. This may be as a response to a Login, Logout or SetAgentState request.
changes. This may be as a response to a Login, Logout or SetAgentState request.
Syntax
C++:
void OnAgentStateChange(Arguments& args)
COM:
void OnAgentStateChange (IArguments * args)
VB:
session_OnAgentStateChange (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.
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.
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).