mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
ARI: Music on Hold/Background Music for bridges
Adds ARI functions to be able to turn on/off music on hold in a bridge. It actually functions more as a background music without further actions on the bridge since if the rest of the channels in the bridge aren't explicitly muted, they will still be able to communicate. (closes issue ASTERISK-21974) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2688/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397505 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -133,6 +133,36 @@ struct ast_remove_channel_from_bridge_args {
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_remove_channel_from_bridge(struct ast_variable *headers, struct ast_remove_channel_from_bridge_args *args, struct ast_ari_response *response);
|
||||
/*! \brief Argument struct for ast_ari_moh_start_bridge() */
|
||||
struct ast_moh_start_bridge_args {
|
||||
/*! \brief Bridge's id */
|
||||
const char *bridge_id;
|
||||
/*! \brief Channel's id */
|
||||
const char *moh_class;
|
||||
};
|
||||
/*!
|
||||
* \brief Play music on hold to a bridge or change the MOH class that is playing.
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_moh_start_bridge(struct ast_variable *headers, struct ast_moh_start_bridge_args *args, struct ast_ari_response *response);
|
||||
/*! \brief Argument struct for ast_ari_moh_stop_bridge() */
|
||||
struct ast_moh_stop_bridge_args {
|
||||
/*! \brief Bridge's id */
|
||||
const char *bridge_id;
|
||||
};
|
||||
/*!
|
||||
* \brief Stop playing music on hold to a bridge.
|
||||
*
|
||||
* This will only stop music on hold being played via bridges/{bridgeId}/mohStart.
|
||||
*
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_moh_stop_bridge(struct ast_variable *headers, struct ast_moh_stop_bridge_args *args, struct ast_ari_response *response);
|
||||
/*! \brief Argument struct for ast_ari_play_on_bridge() */
|
||||
struct ast_play_on_bridge_args {
|
||||
/*! \brief Bridge's id */
|
||||
|
Reference in New Issue
Block a user