diff options
author | Jonathan Rose <jrose@digium.com> | 2013-08-23 00:26:19 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-08-23 00:26:19 +0000 |
commit | 21e22310c72f0c863f73dde8c31208cfdfa5aa3c (patch) | |
tree | 5945e2a28d0b42b3abe354e53d79a08c3d8b0450 /include/asterisk/stasis_app.h | |
parent | c25c093c676b27f9eaf9847cfeeda8e8cdc46d46 (diff) |
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
Diffstat (limited to 'include/asterisk/stasis_app.h')
-rw-r--r-- | include/asterisk/stasis_app.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index d0ea01080..33e5c2632 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -335,6 +335,28 @@ 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. * * \param control Control whose channel should be added to the bridge |