Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 640
 
Chapter 4      Building Your Application
Logging In and Logging Out an Agent
4-46
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Step 2
Right click in the registry window and select New->DWord Value. The new value 
appears in the window.
Step 3
Change the value name to custom_WarnIfAgentLoggedIn.
Step 4
Double-click the value to open the Edit DWORD Value dialog box.
Step 5
Enter 1 in the Value data field to set the value to true, or 0 to set it to false.
Step 6
Repeat steps 2 through 5 for the value custom_RejectIfAgentLoggedIn.
How to Get Registry Configuration Values to Your Desktop Application
To get CTI OS registry configuration values to your desktop application, in order 
to handle duplicate log in attempts correctly, you must request global 
configuration settings, then extract the custom settings from the event. You would 
typically do this task before attempting to log in an agent, in the OnConnection() 
event.
Step 1
Create an instance of the Arguments class.
Step 2
In the Arguments instance, set the value for the CTIOS_DESKTOPTYPE key to 
either:
  •
CtiOs_Enums.DesktopType.eAgentDesktop
  •
CtiOs_Enums.DesktopType.eSupervisorDesktop
Note
Although the Arguments object must have one of these fields as a 
value for the CTIOS_DESKTOPTYPE key, this version of CTI OS 
does not utilize the desktop type parameter when sending global 
configuration data to a desktop application. Regardless of which field 
you use in defining the Arguments object, CTI OS returns all global 
configuration data with the OnGlobalSettingsDownloadConf() event. 
The desktop type indicators, through currently required, are reserved 
for future use.
Step 3
Request desktop settings for the session using the RequestDesktopSettings() 
method. This results in a OnGlobalSettingsDownloadConf() event.