summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index fae43d423..d61494141 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1604,6 +1604,18 @@ void ast_channel_setwhentohangup_tv(struct ast_channel *chan, struct timeval off
int ast_answer(struct ast_channel *chan);
/*!
+ * \brief Answer a channel, if it's not already answered.
+ *
+ * \param chan channel to answer
+ *
+ * \details See ast_answer()
+ *
+ * \retval 0 on success
+ * \retval non-zero on failure
+ */
+int ast_auto_answer(struct ast_channel *chan);
+
+/*!
* \brief Answer a channel
*
* \param chan channel to answer