summaryrefslogtreecommitdiff
path: root/res/ari/resource_channels.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-10-19 14:45:14 +0000
committerJoshua Colp <jcolp@digium.com>2013-10-19 14:45:14 +0000
commitd183c6e1346692bfd522bb8e2ab0f8599981189b (patch)
tree5b0546bd1d0e62fd412448c3ba1b20eed86a6b1d /res/ari/resource_channels.h
parenta80a6a763166b5dbb69dedf042984ff5fda11673 (diff)
Return a channel snapshot when originating using ARI, and subscribe the Stasis application to it.
This change allows a user of ARI to know what channel it has originated and also follow any progress. If a Stasis application is provided it will be automatically subscribed to the originated channel immediately. (closes issue ASTERISK-22485) Reported by: David Lee Review: https://reviewboard.asterisk.org/r/2910/ ........ Merged revisions 401281 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari/resource_channels.h')
-rw-r--r--res/ari/resource_channels.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/ari/resource_channels.h b/res/ari/resource_channels.h
index b7f1ef282..a65bb981b 100644
--- a/res/ari/resource_channels.h
+++ b/res/ari/resource_channels.h
@@ -60,7 +60,7 @@ struct ast_originate_args {
const char *context;
/*! \brief The priority to dial after the endpoint answers. If omitted, uses 1 */
long priority;
- /*! \brief The application name to pass to the Stasis application. */
+ /*! \brief The application that is subscribed to the originated channel, and passed to the Stasis application. */
const char *app;
/*! \brief The application arguments to pass to the Stasis application. */
const char *app_args;
@@ -72,7 +72,7 @@ struct ast_originate_args {
/*!
* \brief Create a new channel (originate).
*
- * The new channel is not created until the dialed party picks up. Not wanting to block this request indefinitely, this request returns immediately with a 204 No Content. When the channel is created, a StasisStart event is sent with the provided app and appArgs. In the event of a failure (timeout, busy, etc.), an OriginationFailed event is sent.
+ * The new channel is created immediately and a snapshot of it returned. If a Stasis application is provided it will be automatically subscribed to the originated channel for further events and updates.
*
* \param headers HTTP headers
* \param args Swagger parameters