Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
4-47
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
Chapter 4 Building Your Application
Logging In and Logging Out an Agent
Step 1
Open the registry and navigate to: HKEY_LOCAL_MACHINE\Software\Cisco
Systems, Inc.\CTIOS\[CTI Instance
Name]\CTIOS1\EnterpriseDesktopSettings\AllDesktops\Login\ConnectionProfil
es\Name\[Profile Name].
Systems, Inc.\CTIOS\[CTI Instance
Name]\CTIOS1\EnterpriseDesktopSettings\AllDesktops\Login\ConnectionProfil
es\Name\[Profile Name].
Step 2
Right click in the registry window and select New->DWord Value. The new value
appears in the window.
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.
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:
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.
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.