summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-07-01 18:19:15 +0000
committerJason Parker <jparker@digium.com>2013-07-01 18:19:15 +0000
commitf41faf0b7dc4c7bb683f9a81b4c09dcfeeef2119 (patch)
treec99142cbc995fe24376fc926ea094a929bbcde56 /include
parentf306dbd8412778ef31df791b658dc38e15629ae3 (diff)
ARI: Implement channel dial.
This creates a new outbound channel, and bridges it to a channel already in the Stasis application. (closes issue ASTERISK-21620) Review: https://reviewboard.asterisk.org/r/2634/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/stasis_app.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h
index 881ef72a4..f31bab8d9 100644
--- a/include/asterisk/stasis_app.h
+++ b/include/asterisk/stasis_app.h
@@ -137,6 +137,20 @@ const char *stasis_app_control_get_channel_id(
const struct stasis_app_control *control);
/*!
+ * \brief Dial an endpoint and bridge it to a channel in \c res_stasis
+ *
+ * If the channel is no longer in \c res_stasis, this function does nothing.
+ *
+ * \param control Control for \c res_stasis
+ * \param endpoint The endpoint to dial.
+ * \param timeout The amount of time to wait for answer, before giving up.
+ *
+ * \return 0 for success
+ * \return -1 for error.
+ */
+int stasis_app_control_dial(struct stasis_app_control *control, const char *endpoint, int timeout);
+
+/*!
* \brief Exit \c res_stasis and continue execution in the dialplan.
*
* If the channel is no longer in \c res_stasis, this function does nothing.