CONTROL STREAM FILE
Sends audio file on channel and allows the listener to control the stream.
Send the given file, allowing playback to be controlled by the given digits, if any. Use double quotes for the digits if you wish none to be permitted. If offsetms is provided then the audio will seek to offsetms before play starts. 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. Returns the position where playback was terminated as endpos.
It sets the following channel variables upon completion:
CPLAYBACKSTATUS- Contains the status of the attempt as a text string
CPLAYBACKOFFSET- Contains the offset in ms into the file where playback was at when it stopped.
-1is end of file.
CPLAYBACKSTOPKEY- If the playback is stopped by the user this variable contains the key that was pressed.
filename- The file extension must not be included in the filename.
ffchar- Defaults to
rewchr- Defaults to
offsetms- Offset, in milliseconds, to start the audio playback
- Asterisk 15 AGICommand_get option
- Asterisk 15 AGICommand_control stream file
- Asterisk 15 Application_AGI
This documentation was imported from Asterisk Version GIT-15-b172474