Implement ARI POST to /channels, to originate a call.

(closes issue ASTERISK-21617)
Review: https://reviewboard.asterisk.org/r/2597/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2013-06-07 18:39:42 +00:00
parent 63c7141421
commit f19ff9579a
5 changed files with 131 additions and 22 deletions

View File

@@ -21,7 +21,7 @@
"httpMethod": "POST",
"summary": "Create a new channel (originate).",
"nickname": "originate",
"responseClass": "Originated",
"responseClass": "void",
"parameters": [
{
"name": "endpoint",
@@ -33,7 +33,7 @@
},
{
"name": "extension",
"description": "Extension to dial",
"description": "When routing via dialplan, the extension to dial",
"paramType": "query",
"required": false,
"allowMultiple": false,
@@ -41,7 +41,40 @@
},
{
"name": "context",
"description": "When routing via dialplan, the context use. If omitted, uses 'default'",
"description": "When routing via dialplan, the context to use. If omitted, uses 'default'",
"paramType": "query",
"required": false,
"allowMultiple": false,
"dataType": "string"
},
{
"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
},
{
"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,
@@ -554,10 +587,6 @@
}
],
"models": {
"Originated": {
"id": "Originated",
"properties": {}
},
"Dialed": {
"id": "Dialed",
"properties": {}