mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-07 05:39:39 +00:00
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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user