diff options
author | Jonathan Rose <jrose@digium.com> | 2013-07-19 19:40:27 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-07-19 19:40:27 +0000 |
commit | a6329a3acf0109d5b364476d212cd0aee4c20dfb (patch) | |
tree | b0bac64d5dbe5ceb2ea2d32227c5b79349b38228 /include | |
parent | 17c546173fe1f24749af4643f19b40be180803de (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/stasis_app.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 244d9d1e5..898cb1840 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -252,6 +252,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. * * The returned pointer is AO2 managed, so ao2_cleanup() when you're done. |