mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +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
|
||||
*
|
||||
|
||||
@@ -339,6 +339,22 @@ struct stasis_message_type *ast_channel_dtmf_begin_type(void);
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_dtmf_end_type(void);
|
||||
|
||||
/*!
|
||||
* \since 12
|
||||
* \brief Message type for when a channel is placed on hold.
|
||||
*
|
||||
* \retval A stasis message type
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_hold_type(void);
|
||||
|
||||
/*!
|
||||
* \since 12
|
||||
* \brief Message type for when a channel is removed from hold.
|
||||
*
|
||||
* \retval A stasis message type
|
||||
*/
|
||||
struct stasis_message_type *ast_channel_unhold_type(void);
|
||||
|
||||
/*!
|
||||
* \since 12
|
||||
* \brief Message type for when a channel starts spying on another channel
|
||||
|
||||
Reference in New Issue
Block a user