Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide
4-111
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
Chapter 4 Building Your Application
Sample Code in the CTI OS Toolkit
Configuring the CTI Toolkit Combo Desktop
The .NET CTI Combo desktop is configured via an XML file found in the current
working directory of the desktop.
working directory of the desktop.
The name of the file used to configure the CTI Toolkit Combo Desktop is
“CTIOSSoftphoneCSharp.exe.config”. The desktop attempts to find the file in
the current directory. If the file is not found, the desktop creates the file and
displays the following error message.
“CTIOSSoftphoneCSharp.exe.config”. The desktop attempts to find the file in
the current directory. If the file is not found, the desktop creates the file and
displays the following error message.
The user should now be able to edit the file to fill in the appropriate values.
Following is an example configuration file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="LogFilePath" value=".\CtiOsClientLog" />
<add key="CtiOsA" value="CtiOsServerA" />
<add key="CtiOsB" value="CtiOsServerB" />
<add key="PortA" value="42028" />
<add key="PortB" value="42028" />
</appSettings>
<configSections>
<section name="JoeUser"
type="System.Configuration.SingleTagSectionHandler" />
</configSections>
<JoeUser TraceMask="0xf" AgentID="1003" AgentInstrument="3009"
PeripheralID="5000" DialedNumbers="3011,3010" />
</configuration>
The configuration file is composed of the following elements. These elements are
as follows.
as follows.
configuration – This elements contains the configuration for the desktop.
appSettings – This section defines configuration settings that are shared by every
Windows user that logs into the system. A system administrator needs to
configure these values for the appropriate CTIOS Server(s) and port(s). Each of
this element’s sub-elements defines key value pairs used to configure the desktop.
Windows user that logs into the system. A system administrator needs to
configure these values for the appropriate CTIOS Server(s) and port(s). Each of
this element’s sub-elements defines key value pairs used to configure the desktop.