RECORD FILE


RECORD FILE

 RECORD FILE   filename format escape_digits timeout   [   offset_samples   ] [BEEP] [s=   silence   ] 

Records the channel audio to the specified file until the reception of a defined escape (DTMF) digit. The format argument defines the type of file to be recorded ( wav , gsm , etc.). The timeout argument is the maximum number of milliseconds the recording can last, and can be set to -1 for no timeout. The offset_samples argument is optional; if provided, it will seek to the offset without exceeding the end of the file. The silence argument is the number of seconds of silence allowed before the function returns despite the lack of DTMF digits or reaching the timeout. The silence value must be preceded by s= and is also optional.

Return values:



-1

Failure





Successful recording



Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
ISBN: B0026OR3OO
EAN: N/A
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net