Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 640
Chapter 9      Agent Object
Methods
9-38
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
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, Cisco IPCC 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 
Table 9-12 QueryAgentState Parameters
Keyword
Type
Description
Agent ID
STRING Agent’s login ID.
AgentInstrument
STRING Agent’s instrument number.