Cisco Cisco Computer Telephony Integration Option 9.0 Guide Du Développeur
9-31
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 9 Agent Object
Methods
Remarks
A successful request results in an OnAgentGreetingControlConf event. If this request is unsuccessful,
the client receives an OnControlFailureConf event.
the client receives an OnControlFailureConf event.
SetAgentState
The SetAgentState method requests a new agent state. Login and Logout are valid agent states and can
be set using the SetAgentState method as well as by using the Login and Logout methods.
be set using the SetAgentState method as well as by using the Login and Logout methods.
Syntax
C++:
int SetAgentState(Arguments& args)
COM:
HRESULT SetAgentState (/*[in]*/ IArguments *args, /*[out,retval]*/ int *
errorcode)
VB:
SetAgentState (args As CTIOSCLIENTLib.IArguments) As Long
Java:
int SetAgentState(Arguments args)
.NET:
CilError SetAgentState(Arguments args)
Input Parameters
args
Input parameter in the form of an Arguments array that contains one or more of the SetAgentState
parameters listed in the following table.
parameters listed in the following table.
Table 9-15
SetAgentState Parameters
Keyword
Type
Description
AgentState (required)
INT
The state to which to set the specified agent. The
value of this field must be one of the values in
value of this field must be one of the values in
AgentID (required)
STRING
*
The agent’s login ID.
AgentInstrument
STRING
*
The agent’s instrument number. Optional if Agent
Extension is provided.
Extension is provided.
PositionID
STRING
*
Required for Alcatel only.
AgentPassword (optional)
STRING
*
The agent’s password.
AgentWorkMode (optional)
INT
A value representing the desired work mode of the
agent. Used by ACM ECS with default value of
ManualIn.
agent. Used by ACM ECS with default value of
ManualIn.
NumSkillGroups (optional)
INT
The number of Skill Groups that the agent is
currently associated with, up to a maximum of 20.
currently associated with, up to a maximum of 20.
EventReasonCode (optional)
INT
Reason for logging out. Required for Unified CCE,
optional for all other switches.
optional for all other switches.
PeripheralID (optional)
INT
The Unified ICM Peripheral ID of the ACD the
agent is attached to.
agent is attached to.