Skip to end of metadata
Go to start of metadata

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-r418641

  • No labels