From a6329a3acf0109d5b364476d212cd0aee4c20dfb Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Fri, 19 Jul 2013 19:40:27 +0000 Subject: 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 --- include/asterisk/stasis_app.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') 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 @@ -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. * -- cgit v1.2.3