ControlPlayback
Control the operation of a media file being played back to a channel. Note that this AMI action does not initiate playback of media to channel, but rather controls the operation of a media operation that was already initiated on the channel.
Note
The pause and restart Control options will stop a playback operation if that operation was not initiated from the ControlPlayback application or the control stream file AGI command.
ActionID- ActionID for this transaction. Will be returned.Channelrequired - The name of the channel that currently has a file being played back to it.-
Controlrequiredstop- Stop the playback operation.-
forward- Move the current position in the media forward. The amount of time that the stream moves forward is determined by the skipms value passed to the application that initiated the playback.Note
The default skipms value is
3000ms. -
reverse- Move the current position in the media backward. The amount of time that the stream moves backward is determined by the skipms value passed to the application that initiated the playback.Note
The default skipms value is
3000ms. -
pause- Pause/unpause the playback operation, if supported. If not supported, stop the playback. restart- Restart the playback operation, if supported. If not supported, stop the playback.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.