diff options
author | David M. Lee <dlee@digium.com> | 2013-11-21 15:56:34 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-11-21 15:56:34 +0000 |
commit | d1ad4a95f8967cc407d828af258c772aa69ab6e3 (patch) | |
tree | 9dfcb189d4df7d2de758537463a09224722a5519 /include | |
parent | 71612fb0077b3d22895342fdd12beae4862b53ca (diff) |
ari: Add silence generator controls
This patch adds the ability to start a silence generator on a channel
via ARI. This generator will play silence on the channel (avoiding audio
timeouts on the peer) until it is stopped, or some other media operation
is started (like playing media, starting music on hold, etc.).
(closes issue ASTERISK-22514)
Review: https://reviewboard.asterisk.org/r/3019/
........
Merged revisions 402926 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/stasis_app.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 0f4ca27a9..801b7adb2 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -386,6 +386,18 @@ void stasis_app_control_moh_start(struct stasis_app_control *control, const char void stasis_app_control_moh_stop(struct stasis_app_control *control); /*! + * \brief Start playing silence to a channel. + * \param control Control for \c res_stasis. + */ +void stasis_app_control_silence_start(struct stasis_app_control *control); + +/*! + * \brief Stop playing silence to a channel. + * \param control Control for \c res_stasis. + */ +void stasis_app_control_silence_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. |