Cisco Cisco Computer Telephony Integration Option 8.5 Guia Do Programador

Página de 500
   
9-33
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 9      Agent Object
Methods
Remarks
The recipient receives the message via the OnChatMessage 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.
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.
Table 9-14
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 
.
AgentID (required)
STRING
*
The agent’s login ID.
AgentInstrument
STRING
*
The agent’s instrument number. 
Optional if Agent 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 Avaya 
DEFINITY 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. 
EventReasonCode 
(optional)
INT
Reason for logging out. Required for 
IPCC, optional for all other switches.