diff options
author | Jonathan Rose <jrose@digium.com> | 2013-07-19 19:35:21 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-07-19 19:35:21 +0000 |
commit | 17c546173fe1f24749af4643f19b40be180803de (patch) | |
tree | 46d8cf430d12142587196703c732d5e9ce9bba8e /include/asterisk/stasis_app.h | |
parent | 5a8f32703c445f7d09b5e029e85d76692626a67f (diff) |
ARI: Bridge Playback, Bridge Record
Adds a new channel driver for creating channels for specific purposes
in bridges, primarily to act as either recorders or announcers. Adds
ARI commands for playing announcements to ever participant in a bridge
as well as for recording a bridge. This patch also includes some
documentation/reponse fixes to related ARI models such as playback
controls.
(closes issue ASTERISK-21592)
Reported by: Matt Jordan
(closes issue ASTERISK-21593)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2670/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/stasis_app.h')
-rw-r--r-- | include/asterisk/stasis_app.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 731133674..244d9d1e5 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -127,6 +127,29 @@ struct stasis_app_control *stasis_app_control_find_by_channel_id( const char *channel_id); /*! + * \brief Creates a control handler for a channel that isn't in a stasis app. + * \since 12.0.0 + * + * \param chan Channel to create controller handle for + * + * \return NULL on failure to create the handle + * \return Pointer to \c res_stasis handler. + */ +struct stasis_app_control *stasis_app_control_create( + struct ast_channel *chan); + +/*! + * \brief Act on a stasis app control queue until it is empty + * \since 12.0.0 + * + * \param chan Channel to handle + * \param control Control object to execute + */ +void stasis_app_control_execute_until_exhausted( + struct ast_channel *chan, + struct stasis_app_control *control); + +/*! * \brief Returns the uniqueid of the channel associated with this control * * \param control Control object. |