summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2016-03-30 17:18:39 -0500
committerJoshua Colp <jcolp@digium.com>2016-04-05 18:14:17 -0500
commitabbb2edd4c897fc3ac8a3589c5b799ff53ed10d2 (patch)
tree331914612f6d23a58a720f008065256b90c96a99 /rest-api
parentdd48d60c5ba239f76b054b1bb6c1e17c68537497 (diff)
ARI: Add method to Dial a created channel.
This adds a new ARI method that allows for you to dial a channel that you previously created in ARI. By combining this with the create method for channels, it allows for a workflow where a channel can be created, manipulated, and then dialed. The channel is under control of the ARI application during all stages of the Dial and can even be manipulated based on channel state changes observed within an ARI application. The overarching goal for this is to eventually be able to add a dialed channel to a Stasis bridge earlier than the "Up" state. However, at the moment more work is needed in the Dial and Bridge APIs in order to facilitate that. ASTERISK-25889 #close Change-Id: Ic6c399c791e66c4aa52454222fe4f8b02483a205
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/channels.json53
1 files changed, 53 insertions, 0 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json
index a4489fb7d..2389f7cb9 100644
--- a/rest-api/api-docs/channels.json
+++ b/rest-api/api-docs/channels.json
@@ -1502,6 +1502,59 @@
]
}
]
+ },
+ {
+ "path": "/channels/{channelId}/dial",
+ "description": "Dial a channel",
+ "operations": [
+ {
+ "httpMethod": "POST",
+ "summary": "Dial a created channel.",
+ "nickname": "dial",
+ "responseClass": "void",
+ "parameters": [
+ {
+ "name": "channelId",
+ "description": "Channel's id",
+ "paramType": "path",
+ "required": true,
+ "allowMultiple": false,
+ "dataType": "string"
+ },
+ {
+ "name": "caller",
+ "description": "Channel ID of caller",
+ "paramType": "query",
+ "required": false,
+ "allowMultiple": false,
+ "dataType": "string"
+ },
+ {
+ "name": "timeout",
+ "description": "Dial timeout",
+ "paramType": "query",
+ "required": false,
+ "allowMultiple": false,
+ "dataType": "int",
+ "defaultValue": 0,
+ "allowableValues": {
+ "valueType": "RANGE",
+ "min": 0
+ }
+ }
+ ],
+ "errorResponses": [
+ {
+ "code": 404,
+ "reason": "Channel cannot be found."
+ },
+ {
+ "code": 409,
+ "reason": "Channel cannot be dialed."
+ }
+ ]
+ }
+ ]
}
],
"models": {