summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/channel.h25
-rw-r--r--include/asterisk/stasis_channels.h16
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