Course12:Advanced - TAPI
Book about the Innovaphone TAPI
Concept
Overview

What is a Tapi Line?


The following scenarios are possible with TAPI and innovaphone PBX
1st Party Configuration
In a 1st party scenario the TSP will only work on a single PBX object. This will typically be a user's phone and thus the user itself will be used as the TAPI user. In such a configuration the TSP is typically installed on the users PC and the CTI software is accessing TAPI directly (such as e.g. Microsoft Outlook does). The TSP configuration dialogue will check the number of lines. If it is only one, then there will appear a
warning message . This is because 3rd party configurations are much more common and this situation often indicates a configuration problem. In a first party configuration, you can safely ignore this message. Important! If you use the User Account (e.g. UserA) in the Tapi configuration, then you have to pay attention on it when the user password is changed in myPBX.
3rd Party Configuration
In a

_tapi_
. You would create a dedicated group to control the list of PBX objects the TSP creates a line device for. This group is often called tapigroup
. Remote TAPI
The TSP is not tested with Microsofts Remote Tapi Server. While some installation have reported this to work fine, others have encountered problems. This scenario is not supported by innovaphone. If you using Microsoft's TAPI Server and remote TSP. See Microsoft Telephony service providers overview and Manage Telephony Servers documents. More informations about Microsoft`s TAPI Server and remote TSP do you find on this web pages: Telephony service providers overview and
Manage Telephony Servers
Multi Site Configuration
In a system with . multiple PBXs , the TSP needs to connect to each of the individual PBXs
- the PBX/Node objects must be visible to the TSP.
- the PBX object used as TAPI User must exist in each PBX with same properties (including the password)
In a replicated scenario, you would create a TAPI user as recommended above and leave the PBX and Node properties empty. You can disable slave detection by checking
Do not monitor Slave PBXs property in the TSP configuration dialogue. In this case, you have an replicated Master/Slave szenario and when you press the verify button you see this
pop up window .
Tapi and Dyn-PBXs
Having a master PBX and one ore more dynamical PBXs (dyn-PBXs) at one innovaphone gateway installed, the TAPI will work for the master and dynPBX.
To have TAPI talk to a dynamic PBX, you would specify the IP address of the Master PBX, and not the internal IP: 127.0.0.1!
The TAPI driver will then talk to the dynamic PBX on that IP address.
Tapi Line Names
Tapi Line Names
%C (%x)
.

Modifier Flags

Map PBX Devices to Lines

Use pure Node Extensions

Show full E164 Numbers
when set, the TSP will announce the full calling number from the root when indicated by the PBX in the TAPI calling party name attribute. The number will be appended to the calling name with an @ .
Do not monitor Slave PBXs
You can disable slave detection by checking Do not monitor Slave PBXs property in the TSP configuration dialogue. Sometimes is this feature useful for troubleshooting.
Map Presence Status to TAPI Lines


Installation and Configuration
Installation
- Install the Windows TAPI Driver from the
Recommended Tools and Firmware for this Course download page on your PC
- select and download the
setup32-release.msi
install packages on 32bit platforms or thesetup64-release.msi
install package on 64bit platforms. - double-click the install package to launch the
installer
accept the license agreement
- select the
target folder note: all generated log files are also trasmitted to the installation folder, be sure that you have enough storage for saving log files.
- confirm the
Installation
When the installer has copied all files to the target machine, you need to add the TSP to the machine's TAPI system
- open the Telephone and Modem control panel
- Switch to the rightmost tab (Erweitert/extended)
- Click on the
Add button (Hinzufügen)
- Select the
innovaphone TAPI provider driver and press the Add button (Hinzufügen)
- Fill out the configuration dialogue -> the configuratin will be discussed in the configuration tab

- Install the provider by clicking Verify and OK

Configuration
For the Tapi applikation to work, you need to setup a tapi user with an password, group and rights in the PBX. The Tapi User is an active group member, and all other user Objects are passive in this group. The PBX object you use as TAPI User needs to have at least Viewing only PBX User Rights. Its Long Name property is used as TAPI User Username, its Name property as PBX Account and the password as PBX Password. This is why the PBX object used as TAPI User must have a password configured.
The TSP and Tapi User configuration dialogue looks like this:
Master: set the Master PBX IP Address
Standby: if you use an Standby PBX set the Standby PBX IP Address
Account: here you configure the PBX User Object (Name).
The Verify button will verify the configuration. Note that the Username drop down list will only be populated after a successful
verify .
when this configuration is correctly, than you can chose your TAPI User
when you press the VERIFY button again than yo see that the configuration to your PBX is ok
but if you see this window than is the Trunk Line Object not in the tapi group. Many CTI applications support distinct call forwards for internal and/or external calls. The TSP will translate such requests to a call forward on the PBX which has the Only or Only not property set to the number of the trunk line. For this to work, it needs to know this number. To know the number, the trunk line PBX object must be seen by the TSP (see above). If this is not the case, the TSP configuration dialogue will issue a
warning
In a first party scenario, this is obviously not the case. If you don't care, you can safely ignore this issue. Attempts to set such call forward will be rejected then as operation unavailable.
The OK button will save the configuration.
The CANCEL button will quit the configuration without saving any changes. If it is the initial configuration while you add the TSP via the telephone and modem control panel, the TSP will not be added
TAPI talks to the PBX using SOAP which in turn uses HTTP for communication. Both secure (https) and non-secure (http) communication is supported. In any case, HTTP basic authentication is used. To be able to connect to the PBX, the TSP needs to know proper credentials to use during HTTP authentication. These are referred to as PBX User and User Password. Also, a suitable TAPI User must be selected.
if you configured the tapi and PBX config correctly you see in the PBX/SOAP tap the SOAP connection.
Standby Configuration
In a system with standby PBX for the master PBX, you need to specify thePBX Standby IP address . This will be connected if the master is unavailable. No special configuration is needed to configure slave-standby PBXs.
Upgrading to a newer Version
If you want to upgrade the Tapi to a newer version, please read the refer wiki article Upgrading to a newer Version
Uninstalling the TSP
If you want to uninstall the TSP, please read the refer wiki article Uninstalling the TSP
Outgoing Dialling Devices


- WQ with an announcement for friendly wake-up call.
- the Tapi application calls an hotel guest at 07:00 clock and the guest hears this friendly wake-up call.
Tapi Phone Dialer
Phone Test App
Another way to verify that the TSP is installed and configured properly is to use the TAPI Phone Dialer. TAPI Phone Dialer is an application that helps you to diagnose problems with CTI via TAPI. The Phone Dialer application enables users to place and receive calls from any computer (PC) to any phone. The Phone Dialer has a user friendly interface, easy installation, and many more exciting features.
You will find this Phone Dialer application in your installed tapi folder . You can also download the Phone Dialer from
this web side.
The program is called Ephone.exe
How to use the Phone Test App
Assume you're using a 1st party scenario, and UserA is configured as TAPI User
- Start Ephone.exe
- Select your Device as
UserA (sifi) and press
Start Session button.
- Now it's possible to start and receive calls via the phone dialer. Enter the phone number that you want to call in the Phone#: field and press
Make Call .
- When the call is established you can
Hold, Transfer, Park, Forward, Hangup the call and much more...
In an 3rd party or Multi Site Scenario it's the same termination like mentioned above. The only difference is that you can chose any device that you want to control.
Example: UserA call UserB via Phone Dialer. Both subscribers are using the TAPI Phone Dialer .
TSP Control and Troubleshooting
How to use the TSP Control
With TAPI version 8 it is possible to enable certain trace flags for TSP analyse and troubleshooting. If the TSP still doesnt work, you need to have the TSP generate trace files. With TAPI V8 you can start the TSP Control application (tsptray.exe). You will find the
Hovering over this icon will show a tool tip, indicating the TAPI TSP and Windows TAPI Service status:

Indication of a non-operational TAPI TSP is shown like below:
Indication of a non-operational Windows TAPI service looks as following:
Right-mouse click on the icon (innovaphone fish) provides various options:
- Open Config - setup of trace options - see next sub-chapter
- Start Telephony Service - pressing this button starts the Telephony Service
- Stop Telephony Service - pressing this button stops the Telephony Service
- Exit TSP Control - close the tsp control application tool. (note: but not the TSP service!)
Troubleshooting


One can set Set Recommended | Set all | Clear all | trace flags. Most often it's enough to set the recommended options but sometimes it could be helpful to set the logging options in TSP Control manually. Don't forget to press afterwards Update Settings and Exit. Now recommended trace flags are active.
The TSP will write trace messages to C:\
\innovaphone\innovaphone® PBX TSP\tsp-''xxxx-xx-xx-xx.log''
Log files on an hourly basis by creating a new file each.
The TSP will keep 24 log files (one day) by default. This value can be changed using the NumLogFiles value. Older log files will be removed. Also, when the TSP shuts down, the retail version will remove all log files which have been created so far. However, any TSP will only remove log files created by itself. This ensures that if the TSP or the system terminates prematurely, the log files will be kept even if a new instance is started and terminated later on.
- removes all log files on termination
- keep last n log files (depending on NumLogFiles) on termination
- keep all log files, no log file termination.
In TAPI TSP Control with Windows7 further special notes can be found. For more informations about
Debugging and
Troubleshooting please refer to the wiki articles.
Monitoring TAPI Lines
The TAPI application also includes an TAPI Line Monitor. Sometimes this is helpful to control the TAPI LINE_CALLSTATE . The tool can be found in the installation folder as well.
Windows Event Log
Event Viewer is an advanced tool that displays detailed information about significant events on your computer. It can be helpful when troubleshooting problems and errors with TAPI and other programs. The Event Viewer is opened by following selections: Start button > Control Panel > System and Maintenance > Administrative Tools and then double-clicking Event Viewer.? The TSP will write messages of type INFO (informational messages) or WARNING (Warnings/Errors) to the windows event log. Such events are always logged to the application log and event source is the provider name (innovaphone® PBX V8 TAPI Service Provider).
Example on how a TAPI trap may look like: Windows Event Log
The TSP will write crash dumps to the log directory in case of a trap. Please provide these files to innovaphone support if requested. A crash dump file will be called something like TSP8-build-hour#minute-day.month#seqnr.dmp (TSP8-8140-14#17-17.04#1.dmp)