Руководство Разработчика для Cisco Cisco Computer Telephony Integration Option 8.5

Скачать
Страница из 668
 
4-105
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 4      Building Your Application
Building Supervisor Applications
To make an agent ready, the desktop calls the method Agent.SetAgentState().  
When calling this method, the agent object representing the monitored agent is 
used as the target of the method.  The parameter is an Arguments object populated 
with the following key/value pairs.
To logout an agent, the desktop calls the method Agent.SetAgentState().  When 
calling this method, the agent object representing the monitored agent is used as 
the target of the method.  The parameter is an Arguments object populated with 
the following key/value pairs.
An agent involved in a call will not be logged out until the agent is disconnected 
from the call.  Both the out-of-the-box desktop and the combo desktop warn the 
supervisor of this behavior.  This can be done by checking the state of the 
Key
Value
SupervisorID
The ID of the supervisor who is making the agent 
ready.  This value is the value of the AgentID key 
associated with the current agent (the current agent 
is the agent passed into the call to 
Session.SetAgent() when first logging in the agent).
AgentState
The state to which to set the agent.  In this case, the 
state is ready (integer with value 3).
Key
Value
SupervisorID
The ID of the supervisor who is 
making the agent ready.  This value is 
the value of the AgentID key 
associated with the current agent (the 
current agent is the agent passed into 
the call to Session.SetAgent() when 
first logging in the agent).
AgentState
The state to which to set the agent.  In 
this case, the state is ready (integer 
with value 3).
EventReasonCode
The value associated with this key is 
999.  The value 999 indicates to the rest 
of IPCC that the agent was logged out 
by their supervisor.