Cisco Cisco Computer Telephony Integration Option 8.5 개발자 가이드
4-41
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
Chapter 4 Building Your Application
Connecting to the CTI OS Server
made once on the server instead of changing each and every desktop. Settings
download can be considered as part of the process of setting up a connection that
the client application will use.
download can be considered as part of the process of setting up a connection that
the client application will use.
Desktop settings are stored in the registries on the machine(s) running CTI OS
Server. Centralizing the desktop settings on the server streamlines the process of
changing or updating the agent desktop. A settings download every time a client
application connects ensures that all the desktops are based on the same settings.
Server. Centralizing the desktop settings on the server streamlines the process of
changing or updating the agent desktop. A settings download every time a client
application connects ensures that all the desktops are based on the same settings.
Downloading settings from CTI OS Server can be done after connecting and
setting the mode via the RequestDesktopSettings() method on the
Session object. The OnGlobalSettingsDownloadConf event indicates
success and also returns the settings which are now available to the client
application in the form of properties on the Session object. These properties can
be accessed via the GetValue() methods. Refer to Chapter 9 for a list of all the
properties of the Session object.
setting the mode via the RequestDesktopSettings() method on the
Session object. The OnGlobalSettingsDownloadConf event indicates
success and also returns the settings which are now available to the client
application in the form of properties on the Session object. These properties can
be accessed via the GetValue() methods. Refer to Chapter 9 for a list of all the
properties of the Session object.
The request for desktop settings can be made either in the OnConnection event
or in the OnSetAgentModeEvent event (if Agent mode has been specified).
Sample code:
or in the OnSetAgentModeEvent event (if Agent mode has been specified).
Sample code:
Private Sub m_Session_OnConnection(ByVal pDispParam As Object)
'Issue a request to the server to send us all the Desktop 'Settings
m_Session.RequestDesktopSettings eAgentDesktop
End Sub
The OnGlobalSettingsDownloadConf event passes back the settings and
they can be accessed via the Session object. For example, the following snippet
checks for Sound Preferences and specifically to see if the Dial Tone is Mute or
not:
they can be accessed via the Session object. For example, the following snippet
checks for Sound Preferences and specifically to see if the Dial Tone is Mute or
not:
Private Sub m_session_OnGlobalSettingsDownloadConf(ByVal pDispParam As
Object)
Dim SoundArgs As CTIOSARGUMENTSLib.Arguments
' check if "SoundPreferences is a valid property
If m_session.IsValid("SoundPreferences ") = 1 Then
Set SoundArgs = m_session.GetValue("SoundPreferences")
Dim DialToneArgs As CTIOSARGUMENTSLib.Arguments
If Not SoundArgs Is Nothing Then
If SoundArgs.IsValid("DialTone") = 1 Then
Set DialToneArgs = SoundArgs.GetValue("DialTone")
End If
End If
Dim Mute As Integer