Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 668
 
Chapter 8      Session Object
Methods
8-26
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1) 
C++: An empty Arguments array if the value requested is not found or if there is 
an error. If the method succeeds, it returns a pointer or a reference to an 
Arguments array where each member has a string key that is the UniqueObjectID 
of a skill group and a value that is a reference to a CilRefArg that is a pointer to 
the skill group object.
GetCurrentAgent
The GetCurrentAgent method returns the Agent specified when the Agent Mode 
connection was established. Use this method rather than 
GetValue(“CurrentAgent”).
Syntax
C++:
 Agent* 
GetCurrentAgent()
COM:
 HRESULT GetCurrentAgent(/*[out, retval]*/ IAgent *agent)
VB:
 
GetCurrentAgent () As CTIOSCLIENTLib.IAgent
Java,.NET:
 Agent 
GetCurrentAgent()
Parameters
agent
An output parameter (return value in VB, C++, Java, and .NET) containing a 
pointer to a pointer to an IAgent that is the currently selected agent.
Return Values
COM: Default CTI OS return values. See 
Others: A pointer or reference to an Agent that is the current agent. This method 
returns NULL if the value requested is not found or if there is an error.
The C++, Java, and .NET versions of this method return NULL if the value 
requested is not found or if there is an error.