Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

STREAM FILE

Synopsis

Sends audio file on channel.

Description

Send the given file, allowing playback to be interrupted by the given digits, if any. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed, or -1 on error or if the channel was disconnected. If musiconhold is playing before calling stream file it will be automatically stopped and will not be restarted after completion.

Syntax

No Format
STREAM FILE FILENAME ESCAPE_DIGITS [SAMPLE_ OFFSET] 
Arguments
  • FILENAME filename - File name to play. The file extension must not be included in the filename.
  • ESCAPEescape_DIGITSdigits - Use double quotes for the digits if you wish none to be permitted.
  • SAMPLE_OFFSET sample offset - If sample offset is provided then the audio will seek to sample offset before play starts.

See Also

Import Version

This documentation was imported from Asterisk version Version SVN-branch-10-r340810.r378689