mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 20:56:39 +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:
@@ -334,6 +334,28 @@ struct ast_bridge *stasis_app_bridge_create(const char *type);
|
||||
struct ast_bridge *stasis_app_bridge_find_by_id(
|
||||
const char *bridge_id);
|
||||
|
||||
/*!
|
||||
* \brief Finds or creates an announcer channel in a bridge that can play music on hold.
|
||||
*
|
||||
* \param bridge Bridge we want an MOH channel for
|
||||
*
|
||||
* \return NULL if the music on hold channel fails to be created or join the bridge for any reason.
|
||||
* \return Pointer to the ;1 end of the announcer channel chain.
|
||||
*/
|
||||
struct ast_channel *stasis_app_bridge_moh_channel(
|
||||
struct ast_bridge *bridge);
|
||||
|
||||
/*!
|
||||
* \brief Breaks down MOH channels playing on the bridge created by stasis_app_bridge_moh_channel
|
||||
*
|
||||
* \param bridge Bridge we want to stop the MOH on
|
||||
*
|
||||
* \return -1 if no moh channel could be found and stopped
|
||||
* \return 0 on success
|
||||
*/
|
||||
int stasis_app_bridge_moh_stop(
|
||||
struct ast_bridge *bridge);
|
||||
|
||||
/*!
|
||||
* \brief Add a channel to the bridge.
|
||||
*
|
||||
|
Reference in New Issue
Block a user