summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-04-05 18:12:37 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-04-05 18:12:37 -0500
commit4d06a4f366f571014f99a516c2a2d731563650c3 (patch)
treeb3d6bacf46050c74de70716f053ed9ab3ae8da99 /include
parentc49ee63db188bbe1bc52833123ea05c1bc30fb64 (diff)
parentef4d3f132892a0ce12649bea2f325803e9ad7076 (diff)
Merge "Dial: Add function to append already-created channel."
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/dial.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/dial.h b/include/asterisk/dial.h
index c59257ce5..168c5091a 100644
--- a/include/asterisk/dial.h
+++ b/include/asterisk/dial.h
@@ -76,6 +76,18 @@ struct ast_dial *ast_dial_create(void);
*/
int ast_dial_append(struct ast_dial *dial, const char *tech, const char *device, const struct ast_assigned_ids *assignedids);
+/*!
+ * \brief Append a channel using an actual channel object
+ *
+ * \param dial The ast_dial to add the channel to
+ * \param chan The channel to add to the dial
+ * \retval -1 Failure
+ * \retval non-zero The position of the channel in the list of dialed channels
+ *
+ * \note The chan ref is stolen with a successful return.
+ */
+int ast_dial_append_channel(struct ast_dial *dial, struct ast_channel *chan);
+
/*! \brief Request all appended channels, but do not dial
* \param dial Dialing structure
* \param chan Optional dialing channel