diff options
author | Jason Parker <jparker@digium.com> | 2013-07-18 16:03:12 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-07-18 16:03:12 +0000 |
commit | c1a7567d24a08377438837ed26b1f8a886867c10 (patch) | |
tree | 4e137b98205c9c96b590b3707ec81c69df84f96b /include/asterisk/stasis_app.h | |
parent | 3a2a12ca1ad8097482fe621e8b877db682601905 (diff) |
ARI: Add support for suppressing media streams.
Also convert res_mutestream to use the core feature behind this.
(closes issue ASTERISK-21618)
Review: https://reviewboard.asterisk.org/r/2652/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/stasis_app.h')
-rw-r--r-- | include/asterisk/stasis_app.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 33091409c..731133674 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -166,6 +166,30 @@ int stasis_app_control_dial(struct stasis_app_control *control, const char *endp int stasis_app_control_continue(struct stasis_app_control *control, const char *context, const char *extension, int priority); /*! + * \brief Mute the channel associated with this control. + * + * \param control Control for \c res_stasis. + * \param direction The direction in which the audio should be muted. + * \param frametype The type of stream that should be muted. + * + * \return 0 for success + * \return -1 for error. + */ +int stasis_app_control_mute(struct stasis_app_control *control, unsigned int direction, enum ast_frame_type frametype); + +/*! + * \brief Unmute the channel associated with this control. + * + * \param control Control for \c res_stasis. + * \param direction The direction in which the audio should be unmuted. + * \param frametype The type of stream that should be unmuted. + * + * \return 0 for success + * \return -1 for error. + */ +int stasis_app_control_unmute(struct stasis_app_control *control, unsigned int direction, enum ast_frame_type frametype); + +/*! * \brief Answer the channel associated with this control. * \param control Control for \c res_stasis. * \return 0 for success. |