Split Hold event into Hold/Unhold, and move it into core.

(closes issue ASTERISK-21487)
Review: https://reviewboard.asterisk.org/r/2565/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2013-05-24 21:21:25 +00:00
parent 1223199b3d
commit 154fbf8cae
18 changed files with 332 additions and 203 deletions

View File

@@ -1202,6 +1202,31 @@ int ast_queue_hangup(struct ast_channel *chan);
*/
int ast_queue_hangup_with_cause(struct ast_channel *chan, int cause);
/*!
* \brief Queue a hold frame
*
* \param chan channel to queue frame onto
* \param musicclass The suggested musicclass for the other end to use
*
* \note The channel does not need to be locked before calling this function.
*
* \retval zero on success
* \retval non-zero on failure
*/
int ast_queue_hold(struct ast_channel *chan, const char *musicclass);
/*!
* \brief Queue an unhold frame
*
* \param chan channel to queue frame onto
*
* \note The channel does not need to be locked before calling this function.
*
* \retval zero on success
* \retval non-zero on failure
*/
int ast_queue_unhold(struct ast_channel *chan);
/*!
* \brief Queue a control frame without payload
*