Page 481 - Asterisk™: The Future of Telephony
P. 481

NoOp
               NoOp [text]

               Performs no operation. As a side effect, this command prints text to the Asterisk con-
               sole. Usually used for debugging purposes.
               Return value:
               0
                   No channel, or variable not set


               RECEIVE CHAR
               RECEIVE CHAR timeout

               Receives a character of text on a channel. Specify a timeout in milliseconds as the max-
               imum amount of time to wait for input, or set to 0 to wait infinitely. Note that most
               channels do not support the reception of text.
               Return values:
               -1 (hangup)
                   Failure or hangup
               char (timeout)
                   Timeout
               value
                   ASCII value of character, in decimal


               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 BEEP ar-
               gument will play a beep to the user to signify the start of the record operation. The
               silence argument is the number of seconds of silence allowed before the function re-
               turns 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


                                                                               NoOp | 453
   476   477   478   479   480   481   482   483   484   485   486