mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user