Skip to main content
Version: v4 (Stable)

RECORD

RECORD([nTimeS AS INTEGER [, sAbortKeys AS STRING]]) AS INTEGER

Starts a message recording from the telephone line.

As soon as the server is ready to record, it transmits a beep on the line. At the end of record (detected by a silence or a key pressed), a new beep is transmitted.

The optional parameter <nTimeS> defines the maximum record time in seconds. If this value is 0 (default value), the maximum record duration defined in Vocal Server parameters will be used. The optional parameter <sAbortKeys> defines the DTMF key which can stop the record when pressed.

Returns 1 if the record is valid, 0 if the record is invalid, -1 if line is hung-up.