ARI: MOH start and stop for a channel

(issue ASTERISK-21974)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2680/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2013-07-19 19:40:27 +00:00
parent 17c546173f
commit a6329a3acf
6 changed files with 309 additions and 2 deletions

View File

@@ -251,6 +251,19 @@ void stasis_app_control_hold(struct stasis_app_control *control);
*/
void stasis_app_control_unhold(struct stasis_app_control *control);
/*!
* \brief Play music on hold to a channel (does not affect hold status)
* \param control Control for \c res_stasis.
* \param moh_class class of music on hold to play (NULL allowed)
*/
void stasis_app_control_moh_start(struct stasis_app_control *control, const char *moh_class);
/*!
* \brief Stop playing music on hold to a channel (does not affect hold status)
* \param control Control for \c res_stasis.
*/
void stasis_app_control_moh_stop(struct stasis_app_control *control);
/*!
* \brief Returns the most recent snapshot for the associated channel.
*