diff options
author | David M. Lee <dlee@digium.com> | 2013-05-23 20:21:16 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-05-23 20:21:16 +0000 |
commit | 557125664da831cd332b6bab9d3da219fd484c63 (patch) | |
tree | c414cdca4ab023c7b00a7dcaf90f7205092c60bc /include/asterisk/stasis_app.h | |
parent | 10ba6bf8a8114278ca974861ecebcb3a827d8d5b (diff) |
This patch adds support for controlling a playback operation from the
Asterisk REST interface.
This adds the /playback/{playbackId}/control resource, which may be
POSTed to to pause, unpause, reverse, forward or restart the media
playback.
Attempts to control a playback that is not currently playing will
either return a 404 Not Found (because the playback object no longer
exists) or a 409 Conflict (because the playback object is still in the
queue to be played).
This patch also adds skipms and offsetms parameters to the
/channels/{channelId}/play resource.
(closes issue ASTERISK-21587)
Review: https://reviewboard.asterisk.org/r/2559
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/stasis_app.h')
-rw-r--r-- | include/asterisk/stasis_app.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 8d3fb097c..27b3502f3 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -175,6 +175,18 @@ void stasis_app_control_publish( struct stasis_app_control *control, struct stasis_message *message); /*! + * \brief Queue a control frame without payload. + * + * \param control Control to publish to. + * \param frame_type type of control frame. + * + * \return zero on success + * \return non-zero on failure + */ +int stasis_app_control_queue_control(struct stasis_app_control *control, + enum ast_control_frame_type frame_type); + +/*! * \brief Increment the res_stasis reference count. * * This ensures graceful shutdown happens in the proper order. |