Asterisk Project : Application_ControlPlayback This page last changed on Mar 30, 2011 by wikibot. # ControlPlayback() ### Synopsis Play a file with fast forward and rewind. ### Description This application will play back the given filename. It sets the following channel variables upon completion: `CPLAYBACKSTATUS` - Contains the status of the attempt as a text string `SUCCESS` `USERSTOPPED` `ERROR` `CPLAYBACKOFFSET` - Contains the offset in ms into the file where playback was at when it stopped. `-1` is end of file. `CPLAYBACKSTOPKEY` - If the playback is stopped by the user this variable contains the key that was pressed. ### Syntax
    ControlPlayback(filename[,skipms[,ff[,rew[,stop[,pause[,restart[,options]]]]]]])
##### Arguments `filename` `skipms` - This is number of milliseconds to skip when rewinding or fast-forwarding. `ff` - Fast-forward when this DTMF digit is received. (defaults to `#` ) `rew` - Rewind when this DTMF digit is received. (defaults to `*` ) `stop` - Stop playback when this DTMF digit is received. `pause` - Pause playback when this DTMF digit is received. `restart` - Restart playback when this DTMF digit is received. `options` `o` `time` - Start at time ms from the beginning of the file. ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-1.8-r311874.

Document generated by Confluence on Oct 04, 2011 12:42