Cisco Cisco Computer Telephony Integration Option 8.5 Guía Del Desarrollador

Descargar
Página de 668
 
Chapter 4      Building Your Application
Connecting to the CTI OS Server
4-34
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1) 
Stopping the Failover Procedure
To stop the failover procedure, call the Disconnect(args) method, with the 
Arguments instance containing the CTIOS_FORCEDDISCONNECT keyword as 
a parameter.
How to Set the Connection Mode
After the session is created, you must specify the connection mode for the session. 
You must use one of two modes:
  •
Agent mode
  •
Monitor mode
Setting the Connection Mode in the OnConnection() Event Handler
To ensure that you only try to set the connection mode on valid connections, you 
should place the code to set the connection mode within the OnConnection() event 
handler. The OnConnection() event is generated by a successful Connect() 
method.
Caution
The application should contain logic within the OnConnection() event handler 
to ensure it attempts to set the connection mode only during the initial 
connection, and not in an OnConnection() event due to failover.
When to Use Agent Mode
You use Agent mode for connections when the client application must log in and 
control a specific agent. When in Agent mode, the connection also receives call 
events for calls on that agent’s instrument, as well as system events.
How to Select Agent Mode
To select Agent mode for the connection, in the OnConnection() event:
Step 1
Set properties for the agent.