ExceleTel Header Logo

 

menu_end_leftmenu_homemenu_aboutmenu_productsmenu_salesmenu_supportmenu_searchmenu_end_right

 

etVoiceModemCallWaiting Sample Program

TeleTools

The etVoiceModemCallWaiting sample program demonstrates how to access call waiting calls with a voice modem.

This program is designed to work with voice modems.  If you have a telephony devices that support multiple calls then you should use the etCallWaiting sample program.

Requirements
Using This Sample Program
Download this Sample Program 
How this Sample Program Works
Source Code
Release Notes

Development Environment Technical Information
Telephony Hardware Technical Information

 

Requirements

  • A voice modem

  • Call waiting service from your PBX or phone company

 

Using This Sample Program

*There is a problem with most voicemodems that will require a change in settings in order for it to be able to send a 'flash' by altering the DTMF tone duration.

  1. Start the etVoiceModemCallWaiting program.

  2. Using the list box select a telephony device that supports Call Waiting.
    You will be informed if the device you select does not support Call Waiting.

  3. Make a call into the device 

  4. Answer the call by clicking the "Answer" button.
    Notice that the button's function change as its state changes.

  5. Make a second call into the device.

  6. Answer the call by clicking the "Answer" button. 

  7. Click the Swap Hold button to place the second call on hold and retrieve the first call.

If you are using a PBX that supplies their own Telephony Service Provider (TSP) chances are that you can set up the calls prior to executing the program.  When etCallWaiting is started it will see the calls and set up the display and buttons properly.

Double click on the etLine control to display the TeleScope.

Download this Sample Program

For Use TeleTools v3.7

File

Purpose

EXE Ready to run!
Borland Delphi 5,6,7 Source code and wave files
Visual Basic 5,6 Source code and wave files
Visual Basic .NET Source code and wave files
Tell us what you need? Click here and tell us what you need!

 

How this Sample Program Works

This program uses the TeleTools CallState properties to determine if the current call is a NEW_CALL, CONNECTED, ONHOLD, etc, and then uses the LineSwapHold(CallHandles(1), CallHandles(0)) method to switch between calls.

Control

Description

ComboDevice Combobox list with all of the TAPI telephony devices installed

TextCallCount

TextBox to track the number of active calls

etLine1 TeleTools etLine TAPI telephony component

CommandCall

Button to initiate a call with the etLine.CallDial method

TextCallerIDName TextBox to display the CallerID name of the incoming caller

TextCallerIDNumber

TextBox to display the CallerID number of the incoming caller

TextState TextBox to display the state of the current call such as "Connected" or "On Hold"

 

Event Handler Routine

Description

ComboDevice_Click Selects/changes the TAPI telephony device
CommandCall_Click Button to check the call status and either dial a call, hangup, or swaphold the lines on a 3-way call or call waiting call
etLine1_OnCallBegin TeleTools event.  Call has begun, we can track the progress of the call with timers, status events, and call handles
etLine1_OnCallerID TeleTools event.  Displays callerID name and number

etLine1_OnConnected

TeleTools event.  The call is connected.

etLine1_OnDisconnected

TeleTools event.  The remote party has disconnected the call

etLine1_OnHold TeleTools event.  The current call is on hold
etLine1_OnHoldPendingConference TeleTools event.  A call is on hold and ready to be conferenced as in a 3-way call
etLine1_OnHoldPendingTransfer TeleTools event.  A call is on hold ready to be transferred
etLine1_OnIdle TeleTools event indicating a call is idle and ready for the next call

etLine1_OnOffering

TeleTools OnOffering event detects a call is incoming

Form_Load

Load the form and activate TeleTools components

Form_Unload

Unload the form and deactivate TeleTools components

 

Subroutine

Description

IsDataModem Detects and reports true if the TAPI device is a datamodem
IsVoiceModem Detects and reports true if the TAPI device is a voicemodem
Hangup Hangs up a call with the etLin.CallHangup method
GetCallIndex Gets the number index of the call so we can track more than one call by call handle and index

UpdateCallDisplay

Updates the status textboxes with call progress status information

 

Release Notes

May 8, 2003

Published

 

 
 


Copyright © 1997-2008 ExceleTel Inc. All rights reserved.
Legal Notices Sunday September 21, 2008 03:02:33 AM

Contact Us