Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
4-13
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
Chapter 4 Building Your Application
Using The CTI OS ActiveX Controls
Adding a Hook for Screenpops
This agent desktop application did not require any Visual Basic .NET coding at
all. A user may choose to add some custom code to add a hook for screenpops.
For example, a user may want to retrieve CallVariables, which are passed along
with certain call events.
all. A user may choose to add some custom code to add a hook for screenpops.
For example, a user may want to retrieve CallVariables, which are passed along
with certain call events.
CTIOS SessionResolver
A CTIOS Client application connects to CTIOS with a Session object (see
). Depending on the application, a client can use one
or more Session objects. For most agent desktop applications, however, it is useful
to employ only a single Session object.
to employ only a single Session object.
If one chooses to write a program not using ActiveX controls, a Session object can
be created and used directly (see CTI Toolkit AgentDesktop at the Win32 CIL
samples).
be created and used directly (see CTI Toolkit AgentDesktop at the Win32 CIL
samples).
However, in the case of an application built with the ActiveX controls, all ActiveX
controls must use the same session object. The ActiveX controls accomplish this
by retrieving a pointer to the same session object via the SessionResolver. The
program hosting the ActiveX can obtain the Same session object by using the
SessionResolver.GetSession method to retrieve a session named “”.
controls must use the same session object. The ActiveX controls accomplish this
by retrieving a pointer to the same session object via the SessionResolver. The
program hosting the ActiveX can obtain the Same session object by using the
SessionResolver.GetSession method to retrieve a session named “”.
Sample VB .NET code to Retrieve CallVariable1
The following sample VB .NET code will retrieve the common session and just
listen for a CallEstablishedEvent occurring in that session. If a
CallEstablishedEvent occurs, it will retrieve CallVariable 1 and put it in the
Windows Clipboard (from where it can be retrieved via CTRL-v or be used by
other applications).
listen for a CallEstablishedEvent occurring in that session. If a
CallEstablishedEvent occurs, it will retrieve CallVariable 1 and put it in the
Windows Clipboard (from where it can be retrieved via CTRL-v or be used by
other applications).
This code uses the COM CIL Interfaces and therefore, needs the following
references: Cisco.CTIOSCLIENTLib, Cisco.CTIOSARGUMENTSLib,
Cisco.CTIOSSESSIONRESOLVERLib. The references are shown in
references: Cisco.CTIOSCLIENTLib, Cisco.CTIOSARGUMENTSLib,
Cisco.CTIOSSESSIONRESOLVERLib. The references are shown in
(in Visual Basic .NET, select Project-> Add Reference...).