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_playback.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_playback.h')
-rw-r--r-- | include/asterisk/stasis_app_playback.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/asterisk/stasis_app_playback.h b/include/asterisk/stasis_app_playback.h index 59c2aab49..3587871a9 100644 --- a/include/asterisk/stasis_app_playback.h +++ b/include/asterisk/stasis_app_playback.h @@ -69,6 +69,13 @@ enum stasis_app_playback_media_operation { STASIS_PLAYBACK_MEDIA_OP_MAX, }; +enum stasis_app_playback_target_type { + /*! The target is a channel */ + STASIS_PLAYBACK_TARGET_CHANNEL = 0, + /*! The target is a bridge */ + STASIS_PLAYBACK_TARGET_BRIDGE, +}; + /*! * \brief Play a file to the control's channel. * @@ -79,6 +86,8 @@ enum stasis_app_playback_media_operation { * \param control Control for \c res_stasis. * \param file Base filename for the file to play. * \param language Selects the file based on language. + * \param target_id ID of the target bridge or channel. + * \param target_type What the target type is * \param skipms Number of milliseconds to skip for forward/reverse operations. * \param offsetms Number of milliseconds to skip before playing. * \return Playback control object. @@ -86,7 +95,9 @@ enum stasis_app_playback_media_operation { */ struct stasis_app_playback *stasis_app_control_play_uri( struct stasis_app_control *control, const char *file, - const char *language, int skipms, long offsetms); + const char *language, const char *target_id, + enum stasis_app_playback_target_type target_type, + int skipms, long offsetms); /*! * \brief Gets the current state of a playback operation. |