Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
9-14
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 9      Agent Object
Methods
Parameters
optional_args
An optional input parameter containing a pointer or a reference to an Arguments array containing a 
member that is a nested Arguments array with the keyword SkillGroupNumbers. Within this array, 
each member has a string key of an integer starting with 1 and an integer value that is a skill group 
number to be enabled. If the parameter is NULL or missing, statistics will be enabled for all skill 
groups to which the agent belongs.
.NET:args
Refer to the description for optional_args above.
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
Return Value
Default CTI OS return values. See 
Remarks
The CTIOS server sends SkillGroup statistics in the OnSkillGroupStatisticsUpdated event of the 
SkillGroup object.
GetAgentState
The GetAgentState method returns the current state of the agent.
Syntax
C++:
enumCTIOS_AgentState GetAgentState()
COM:
HRESULT GetAgentState (/*[in]*/ long *state)
VB:
GetAgentState () As Long
Java:
int GetAgentState()
.NET:
AgentState GetAgentState()
Parameters
state
Output parameter (return parameter in VB) containing the current agent state in the form of one of 
the values in 
Return Value
For C++, VB, Java, and .NET, this method returns the current state of the agent.