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
This commit is contained in:
Jason Parker
2013-06-28 16:23:24 +00:00
parent 6cc03db642
commit eba5739470
4 changed files with 88 additions and 65 deletions

View File

@@ -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,7 +41,31 @@
},
{
"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": "priority",
"description": "The priority to dial after the endpoint answers. If omitted, uses 1",
"paramType": "query",
"required": false,
"allowMultiple": false,
"dataType": "long"
},
{
"name": "app",
"description": "The application name to pass to the Stasis application.",
"paramType": "query",
"required": false,
"allowMultiple": false,
"dataType": "string"
},
{
"name": "appArgs",
"description": "The application arguments to pass to the Stasis application.",
"paramType": "query",
"required": false,
"allowMultiple": false,
@@ -63,22 +87,6 @@
"allowMultiple": false,
"dataType": "int",
"defaultValue": 30
},
{
"name": "app",
"description": "Application name to pass to the Stasis application.",
"paramType": "query",
"required": true,
"allowMultiple": false,
"dataType": "string"
},
{
"name": "appArgs",
"description": "Application arguments to pass to the Stasis application.",
"paramType": "query",
"required": false,
"allowMultiple": false,
"dataType": "string"
}
]
}