summaryrefslogtreecommitdiff
path: root/rest-api/api-docs/channels.json
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-11-13 23:11:32 +0000
committerJoshua Colp <jcolp@digium.com>2013-11-13 23:11:32 +0000
commit67b650543c3ea59418bf159323d7244c343f85f6 (patch)
tree5c7e3cc32898eabb207393983cab28d72f1f6a39 /rest-api/api-docs/channels.json
parentf6593b4156b0daa0a74f1f04dc062a6b24acab6c (diff)
res_ari_channels: Add the ability to stop locally generated ringing on a channel.
Using the 'ring' operation it is possible to start locally generated ringback if the channel is answered. This change adds the ability to stop it by using DELETE. ........ Merged revisions 402804 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api/api-docs/channels.json')
-rw-r--r--rest-api/api-docs/channels.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json
index d3ed5194d..dd611ccaa 100644
--- a/rest-api/api-docs/channels.json
+++ b/rest-api/api-docs/channels.json
@@ -287,6 +287,32 @@
"reason": "Channel not in a Stasis application"
}
]
+ },
+ {
+ "httpMethod": "DELETE",
+ "summary": "Stop ringing indication on a channel if locally generated.",
+ "nickname": "ringStop",
+ "responseClass": "void",
+ "parameters": [
+ {
+ "name": "channelId",
+ "description": "Channel's id",
+ "paramType": "path",
+ "required": true,
+ "allowMultiple": false,
+ "dataType": "string"
+ }
+ ],
+ "errorResponses": [
+ {
+ "code": 404,
+ "reason": "Channel not found"
+ },
+ {
+ "code": 409,
+ "reason": "Channel not in a Stasis application"
+ }
+ ]
}
]
},