Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 668
 
9-29
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 9      Agent Object
Methods
If the Login request is unsuccessful, the client will receive an 
OnControlFailureConf event and the request will return one of the following 
CtiOs_Enums.CilError codes:
  •
E_CTIOS_INVALID_SESSION -- either the agent is not associated with the 
session or the session is not connected.
  •
E_CTIOS_INVALID_ARGUMENT -- null or invalid arguments were 
provided.
  •
E_CTIOS_LOGIN_INCONSISTENT_ARGUMENTS -- Login request 
argument values for AgentId and/or PeripheralID do not match the values that 
were set by SetAgent() prior to the Login request.
Logout
The Logout method logs the agent out of the ACD. If the ACD configuration 
requires or supports other parameters, these can be passed in as logout parameters.  
Examples are AgentPassword (required by Alcatel for Logout) or logout reason 
codes (supported on Avaya Definity ECS, IPCC).
Syntax
C++:
int Logout (Arguments& args)
COM:
HRESULT Logout (/*[in]*/ IArguments args, /*[out,retval]*/ int 
* errorcode)
VB:
Logout (args As CTIOSCLIENTLib.IArguments) As Long
Java:
int Logout(Arguments args)
.NET:
CilError Logout(Arguments args)
Input Parameters
args
Input parameter in the form of an Arguments array that contains the Logout 
parameters listed in 
.