From eba573947059f42f8778f09e2e8640050fb8b444 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Fri, 28 Jun 2013 16:23:24 +0000 Subject: Change ARI originate to also allow dialing an exten/context/priority. The old way didn't make much sense, so some of the fields were repurposed. (closes issue ASTERISK-21658) Review: https://reviewboard.asterisk.org/r/2626/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393144 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- rest-api/api-docs/channels.json | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'rest-api/api-docs') diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json index d097267e7..15e76e4f8 100644 --- a/rest-api/api-docs/channels.json +++ b/rest-api/api-docs/channels.json @@ -25,15 +25,15 @@ "parameters": [ { "name": "endpoint", - "description": "Endpoint to call. If not specified, originate is routed via dialplan", + "description": "Endpoint to call.", "paramType": "query", - "required": false, + "required": true, "allowMultiple": false, "dataType": "string" }, { "name": "extension", - "description": "When routing via dialplan, the extension to dial", + "description": "The extension to dial after the endpoint answers", "paramType": "query", "required": false, "allowMultiple": false, @@ -41,44 +41,52 @@ }, { "name": "context", - "description": "When routing via dialplan, the context to use. If omitted, uses 'default'", + "description": "The context to dial after the endpoint answers. If omitted, uses 'default'", "paramType": "query", "required": false, "allowMultiple": false, "dataType": "string" }, { - "name": "callerId", - "description": "CallerID to use when dialing the endpoint or extension.", + "name": "priority", + "description": "The priority to dial after the endpoint answers. If omitted, uses 1", "paramType": "query", "required": false, "allowMultiple": false, - "dataType": "string" + "dataType": "long" }, { - "name": "timeout", - "description": "Timeout (in seconds) before giving up dialing, or -1 for no timeout.", + "name": "app", + "description": "The application name to pass to the Stasis application.", "paramType": "query", "required": false, "allowMultiple": false, - "dataType": "int", - "defaultValue": 30 + "dataType": "string" }, { - "name": "app", - "description": "Application name to pass to the Stasis application.", + "name": "appArgs", + "description": "The application arguments to pass to the Stasis application.", "paramType": "query", - "required": true, + "required": false, "allowMultiple": false, "dataType": "string" }, { - "name": "appArgs", - "description": "Application arguments to pass to the Stasis application.", + "name": "callerId", + "description": "CallerID to use when dialing the endpoint or extension.", "paramType": "query", "required": false, "allowMultiple": false, "dataType": "string" + }, + { + "name": "timeout", + "description": "Timeout (in seconds) before giving up dialing, or -1 for no timeout.", + "paramType": "query", + "required": false, + "allowMultiple": false, + "dataType": "int", + "defaultValue": 30 } ] } -- cgit v1.2.3