Use POST / DELETE to toggle hold / moh for ARI channels

This change updates how we handle toggle events, rather then create two
different function names, we'll just use POST / DELETE from HTTP to handle it.

Review: https://reviewboard.asterisk.org/r/2906/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2013-10-15 15:26:17 +00:00
parent 0c626e009e
commit 56757b114b
2 changed files with 20 additions and 36 deletions

View File

@@ -433,11 +433,11 @@
]
},
{
"path": "/channels/{channelId}/unhold",
"path": "/channels/{channelId}/hold",
"description": "Remove a channel from hold",
"operations": [
{
"httpMethod": "POST",
"httpMethod": "DELETE",
"summary": "Remove a channel from hold.",
"nickname": "unholdChannel",
"responseClass": "void",
@@ -465,7 +465,7 @@
]
},
{
"path": "/channels/{channelId}/mohstart",
"path": "/channels/{channelId}/moh",
"description": "Play music on hold to a channel",
"operations": [
{
@@ -506,11 +506,11 @@
]
},
{
"path": "/channels/{channelId}/mohstop",
"path": "/channels/{channelId}/moh",
"description": "Stop playing music on hold to a channel",
"operations": [
{
"httpMethod": "POST",
"httpMethod": "DELETE",
"summary": "Stop playing music on hold to a channel.",
"nickname": "mohStopChannel",
"responseClass": "void",