Cisco Cisco Computer Telephony Integration Option 10.5 Developer's Guide

Page of 500
   
4-19
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 4      Building Your Application
Using the .NET CIL Libraries
The Java CIL ships with a GUI TestPhone application which provides most of the functionality found 
on the CTIOS Agent and Supervisor Desktops. The distribution also includes samples that are Java 
versions of some of the C++/COM/VB sample applications. See the section entitled 
for more information.
Next Steps
  •
Refer to Chapter 6 and Appendix A for differences between the C++ and Java event publishing.
  •
Refer to Chapters 7 through 12 for differences in method calls and syntax for those classes between 
C++ and Java.
  •
Refer to Appendix B for differences between C++ and Java tracing.
Using the .NET CIL Libraries
The .NET CIL provides  native .NET class libraries for developing native .NET Framework applications. 
It is built using the same architecture as the Java CIL and the interface is also similar to C++ with some 
differences. As a result, a developer porting a C++ CIL application to .NET CIL between a .NET and 
Win32 should find it fairly easy to switch between the two.
The .NET CIL consists of two class libraries: NetCil.dll and NetUtil.dll that need to be added as 
references on the build project. See the CTIOS Toolkit Combo Desktop sample. 
For deploying the client application, it is recommended that the NetCil.dll and NetUtil.dll class libraries 
to be installed on the host's Global Assembly Cache (GAC) using  the "gacutil"  (provided by in 
Microsoft Visual Studio .NET 2003)  or the "Microsoft .NET Framework 1.1" configuration manager. 
Together with .NET CIL are provided sample programs that teaches the use of the API under a .NET 
programming environment. See the section entitled
 for more 
information.
Next Steps
  •
Refer to Chapter 6 and Appendix B for differences between the C++, and .NET and Java event 
publishing.
  •
Refer to Chapters 7 through 12 for differences in method calls and syntax for those classes between 
C++ and Java.
Connecting to the CTI OS Server
To connect a desktop application to the CTI OS server, you must:
1.
Create a session instance, described below.
2.
Set the event listener and subscribe to events, described below.
3.
Set connection parameters, described below.
4.
Call the Connect() method, described on page 4-21.
5.
Set the connection mode, described on page 4-23.