Records the current communication as a".WAV" file. This function can be used to create a voice message for an answerphone. The recording is automatically stopped after the specified duration.
// The answerphone is started
// The message of the caller is currently recorded
// The maximum duration is set to 60 seconds
tapiRecord("M_" + Today() + Now() + ".wav", 60, nCallID)
<Result> = tapiRecord(<Name of WAV file> , <Maximum duration> [, <Call identifier>])
- True if the recording is performed,
- False otherwise.
<Name of WAV file>: Character string
Name and path of the ".WAV" file to create. The file extension must be specified.
<Maximum duration>: Integer ou Duration
Maximum duration for the recording (in seconds). This parameter can correspond to:
- an integer corresponding to the number of seconds,
- a Duration variable,
- the duration in a readable format (e.g., 1 s or 10 ms).
<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.
Telephony functions use TAPI 2.0 technology and/or TAPI 3.1 technology. These technologies can be used on all systems.