Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 500
   
9-19
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 9      Agent Object
Methods
Syntax
C++:
bool IsAgent()
COM:
HRESULT IsAgent (VARIANT_BOOL *bIsAgent)
VB:
IsAgent () As Boolean
Java:
boolean IsAgent()
.NET:
bool IsAgent()
Parameters
IsAgent
Output parameter (return parameter in VB) that returns true if the current AgentMode connection is 
for an agent and false if it is for a supervisor.
Return Value
Returns true if the current AgentMode connection is for an agent and false if the connection is for a 
supervisor.
IsSupervisor
The IsSupervisor method determines whether the AgentMode connection is for a supervisor.
Syntax
C++:
bool IsSupervisor()
COM:
HRESULT IsSupervisor (VARIANT_BOOL * bIsSupervisor)
VB:
IsSupervisor () As Boolean
Java:
boolean IsSupervisorMode()
.NET:
bool IsSupervisor()
Parameters
bIsSupervisor
Output parameter (return parameter in VB) that returns true if the current AgentMode connection is 
for a supervisor and false if it is for an agent.
Return Values
If the current session is for a supervisor, this method returns true. Otherwise the method returns false.
Login
The Login method performs a login to the ACD (if supported). Generally, the minimum parameters 
required to log into an ACD are AgentID and AgentInstrument. Often, based on customer configuration, 
the minimum requirements include an ACD password (AgentPassword). Some switches require 
PositionID in place of (or in addition to) AgentInstrument. Optional arguments include Extension or 
AgentWorkMode.