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
This commit is contained in:
Jason Parker
2013-07-18 16:03:12 +00:00
parent 3a2a12ca1a
commit c1a7567d24
6 changed files with 346 additions and 167 deletions

View File

@@ -165,6 +165,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.