TPS check in a TAPI phone dialer

This sample demonstrates how to use the TPS web service to add quick TPS checking to a TAPI-based phone dialer.

Download the source

Using the dialer

In order to use the dialer, you will need a voice-capable modem installed in your computer.

Simply run the program to launch the dialer. If you do not have any compatible modems installed, you will receive a message saying "No telephony devices available" and all the options in the dialer will be disabled. Otherwise, you will see the following dialer screen.

Dialer screen

On this screen you can enter:

  • Telephone number. This is the telephone number to dial.
  • Audio file. This is a WAV format audio file that will be played to the receiver when the telephone call is placed.
  • Device. This is the modem to use to make the call.

A sample audio file is provided as part of the sample to demonstrate the functionality, but you should record your own to play your required message. The file must be recorded with an 8kHz sample rate in order for it to be played correctly over a telephone line.

To dial the number, click Call. This will first use the telephone validation web service to check that the number is valid, and the TPS web service to check that you are allowed to call the number. If the number is registered with the TPS, an error message is displayed. Otherwise, the number is called and the selected audio file is played.

The first time you try to call a number, you will be prompted for your Data8 username and password in order to access the TPS service. These details are then stored and you are not prompted again for later calls.

Skip Navigation Links
Request handled by server S1 for client 38.107.179.218 at 22/05/2012 23:54:02