diff options
author | Jason Parker <jparker@digium.com> | 2013-05-24 21:21:25 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-05-24 21:21:25 +0000 |
commit | 154fbf8cae866269cb2b64a5cb26cb4d435cf4df (patch) | |
tree | bdf1e07244cfee6526570c3b9357da9378981150 /include/asterisk | |
parent | 1223199b3d18b82a931475f939170b9379e6afed (diff) |
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
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/channel.h | 25 | ||||
-rw-r--r-- | include/asterisk/stasis_channels.h | 16 |
2 files changed, 41 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index b27183e7c..efd1ac888 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1203,6 +1203,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 * * \param chan channel to queue frame onto diff --git a/include/asterisk/stasis_channels.h b/include/asterisk/stasis_channels.h index 7c214d5a7..42e50eb08 100644 --- a/include/asterisk/stasis_channels.h +++ b/include/asterisk/stasis_channels.h @@ -341,6 +341,22 @@ 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 * * \retval A stasis message type |