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/
........

Merged revisions 400999 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Paul Belanger
2013-10-15 15:30:39 +00:00
parent 2c927b871f
commit 6072e043cf
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",