Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
8-24
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 8      Session Object
Methods
eAgentDesktop (0)
eSupervisorDesktop (1)
Java: desktopType
0 for agent
1 for supervisor
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
Return Values
Default CTI OS return values. See 
Remarks
A successful RequestDesktopSettings request results in an OnGlobalSettingsDownloadConf event. For 
detailed information about the OnGlobalSettingsDownloadConf event, see 
.
SetAgent
The SetAgent method assigns an agent to this Session object. Set the following properties for the agent 
object used as a parameter in this method:
CTIOS_AGENTID
CTIOS_PERIPHERALID
To sign on a mobile agent, you must set the following parameters:
CTIOS_AGENTCALLMODE
CTIOS_AGENTREMOTENUMBER
Syntax
C++:
 int SetAgent(CAgent& agent)
COM:
 HRESULT SetAgent(/*[in]*/IAgent *agent, /*[out, retval]*/ int * errorcode)
VB:
 SetAgent (agent As CTIOSCLIENTLib.IAgent) As Long
Java:
 int SetAgent(Agent agentObject)
.NET:
 CilError SetAgent(Agent NewAgent)
Parameters
agent
The agent to be assigned to the Session object.