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/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402926 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David M. Lee
2013-11-21 15:55:33 +00:00
parent 527a8b08de
commit 4fd244e273
6 changed files with 318 additions and 4 deletions

View File

@@ -385,6 +385,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.
*