diff options
author | Jason Parker <jparker@digium.com> | 2013-07-01 18:56:21 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-07-01 18:56:21 +0000 |
commit | f820d24db14e657a4c0fc7c6d4c1c73ef4c8f86a (patch) | |
tree | ec2cdb3992f9101c02bfa56b6f4edd9555e6ab98 /include | |
parent | f41faf0b7dc4c7bb683f9a81b4c09dcfeeef2119 (diff) |
ARI: Implement channel hold/unhold.
This puts the channel on hold (rather than queueing a frame from the channel).
(closes issue ASTERISK-21619)
Review: https://reviewboard.asterisk.org/r/2647/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393332 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 f31bab8d9..93d5cf36c 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -174,6 +174,18 @@ int stasis_app_control_continue(struct stasis_app_control *control, const char * int stasis_app_control_answer(struct stasis_app_control *control); /*! + * \brief Place the channel associated with the control on hold. + * \param control Control for \c res_stasis. + */ +void stasis_app_control_hold(struct stasis_app_control *control); + +/*! + * \brief Remove the channel associated with the control from hold. + * \param control Control for \c res_stasis. + */ +void stasis_app_control_unhold(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. |