Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 506
   
9-29
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 9      Agent Object
Methods
RequestSupervisorAssist method. For example, agents can be trained to click the Emergency button if 
the customer has more than $1,000,000 in an account, and otherwise to click the Supervisor Assist 
button. The Supervisor will be able to differentiate the agent’s request by noting the CallType. 
The MakeEmergencyCall request is specific to the Supervisor feature and should only be used on 
switches or configurations that have the necessary support (currently, Unified CCE only). The client 
issuing the request receives an OnEmergencyCall event when the request reaches an available 
supervisor. If the request is unsuccessful the client receives an OnControlFailureConf event.
QueryAgentState
The QueryAgentState method lets a client retrieve the current state of the agent.
Syntax 
C++:
 
int QueryAgentState (Arguments & args );
COM:
  HRESULT QueryAgentState ( /*[in]*/ IArguments * args, /*[out,retval]*/ int * 
errorcode );
VB:
 
QueryAgentState (ByVal args as CTIOSCLIENTLIB.IArguments) As Long
Java:
 
int QueryAgentState (Arguments args)
.NET:
CilError QueryAgentState(Arguments args)
Input Parameters
args
Arguments array that contains the parameters listed in the following table.
Table 9-12
QueryAgentState Parameters
Return Values
Default CTI OS return values. See 
Remarks
If the request is successful, the client should receive an OnQueryAgentStateConf event. If it is unsuccessful, 
the client should receive an OnControlFailureConf event.
ReportBadCallLine
The ReportBadCallLine method informs the CTI OS server of the poor quality of the agent’s line. A note 
of this is recorded in the database.
Keyword
Type
Description
Agent ID
STRING Agent’s login ID.
AgentInstrument
STRING Agent’s instrument number.