mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user