diff options
author | Mark Michelson <mmichelson@digium.com> | 2015-01-07 18:53:16 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2015-01-07 18:53:16 +0000 |
commit | 42b342c6e265680209d74b634bf6e71062ccb682 (patch) | |
tree | 5dcac703f7f510e5439dcee7cf00f20617e3a3bc /res/ari/resource_channels.h | |
parent | a10d2966b67a2e52811a7e4fa636b630f1fef741 (diff) |
Add the ability to continue and originate using priority labels.
With this patch, the following two ARI commands
POST /channels
POST /channels/{id}/continue
Accept a new parameter, label, that can be used to continue to or originate
to a priority label in the dialplan.
Because this is adding a new parameter to ARI commands, the API version of
ARI has been bumped from 1.6.0 to 1.7.0.
This patch comes courtesy of Nir Simionovich from Greenfield Tech. Thanks!
ASTERISK-24412 #close
Reported by Nir Simionovich
Review: https://reviewboard.asterisk.org/r/4285
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ari/resource_channels.h')
-rw-r--r-- | res/ari/resource_channels.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/res/ari/resource_channels.h b/res/ari/resource_channels.h index 627f9c97a..dddfcf3a9 100644 --- a/res/ari/resource_channels.h +++ b/res/ari/resource_channels.h @@ -60,6 +60,8 @@ struct ast_ari_channels_originate_args { const char *context; /*! The priority to dial after the endpoint answers. If omitted, uses 1 */ long priority; + /*! The label to dial after the endpoint answers. Will supersede 'priority' if provided. */ + const char *label; /*! The application that is subscribed to the originated channel, and passed to the Stasis application. */ const char *app; /*! The application arguments to pass to the Stasis application. */ @@ -123,6 +125,8 @@ struct ast_ari_channels_originate_with_id_args { const char *context; /*! The priority to dial after the endpoint answers. If omitted, uses 1 */ long priority; + /*! The label to dial after the endpoint answers. Will supersede priority, if provided */ + const char *label; /*! The application that is subscribed to the originated channel, and passed to the Stasis application. */ const char *app; /*! The application arguments to pass to the Stasis application. */ @@ -195,6 +199,8 @@ struct ast_ari_channels_continue_in_dialplan_args { const char *extension; /*! The priority to continue to. */ int priority; + /*! The label to continue to - will supersede 'priority' if both are provided. */ + const char *label; }; /*! * \brief Body parsing function for /channels/{channelId}/continue. |