• Format of .WAV file
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
tapiPlay (Function)
In french: telJoue
Plays a sound file (.WAV) for the specified line. You have the ability to:
  • play the message of the answerphone when a call is received,
  • play a message during an outgoing call (after tapiDial for example).
PROCEDURE CallDetection(nServiceID, nCallID, nStatus)
// Picks up the line to answer a call
// Trigger the answerphone
tapiPlay("answerphone.wav", tapiPlayLock, nCallID)
// If the star key was pressed
// the answerphone is stopped
IF Position(tapiKeyPressed(nCallID), "*") >0 THEN
<Result> = tapiPlay(<Name of WAV file> [, <Option> [, <Call identifier>]])
<Result>: Boolean
  • True if the file is played,
  • False otherwise. If the file is not played, check the format of the WAV file. For more details, see remarks.
<Name of WAV file>: Character string
Name and path of the .WAV file to play. The file extension must be specified.
<Option>: Optional integer
Option used to specify the options of sound file to play.
tapiPlayLockThe function is locking: the code continues to run only when the sound was played.
If this parameter is not specified, the function returns a result as soon as the sound starts to play.
tapiPlayLoopThe sound is played in loop.
If this parameter is not specified, the sound is played once only.
<Call identifier>: Optional integer
Identifier of the call to be handled. This identifier is defined in the WLanguage procedure called by tapiListen. The current call is handled if this parameter is not specified.

Format of .WAV file

Caution: Some WAV formats are not compatible with the telephony. You must use the CCITT G.711 A-Law, u-Law compression codec supplied by Microsoft.
Remark: A GSpot program allows you to check the codec of the.WAV file.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment