AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones de teléfono
  • Format of .WAV file
  • Configuración necesaria
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Plays a sound file (.WAV) for the specified line. You can:
  • play the message of the answerphone when a call is received,
  • play a message during an outgoing call (after tapiDial for example).
Ejemplo
PROCEDURE CallDetection(nServiceID, nCallID, nStatus)

// Picks up the line to answer a call
tapiAnswerCall(nCallID)

// Trigger the answerphone
tapiPlay("answerphone.wav", tapiPlayLock, nCallID)

// If the star key was pressed
// the answerphone is stopped
IF Position(tapiKeyPressed(nCallID), "*") >0 THEN
	tapiStop(nCallID)
END
Sintaxis
<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 blocking: the code continues to run only when the sound has been 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.
Observaciones

Format of .WAV file

Please note: Not all WAV formats are compatible with telephony.. You must use the CCITT G.711 A-Law, u-Law compression codec supplied by Microsoft.
Note: To check the codec of a .WAV file, use a program such as GSpot.
WINDEVCódigo de Usuario (UMC)

Configuración necesaria

Las funciones de telefonía utilizan la tecnología TAPI 2.0 y/o TAPI 3.1. Estas tecnologías pueden utilizarse en todos los sistemas.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local