summaryrefslogtreecommitdiff
path: root/rest-api
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-11-23 12:52:54 +0000
committerJoshua Colp <jcolp@digium.com>2013-11-23 12:52:54 +0000
commit14a74529344ef5229f100c81bc969f34e27112b3 (patch)
tree42d11fb48fe467f013a14a0b8ae05c77cc21de8d /rest-api
parenteda712686268daaaf02754fbb0903cf4f973da87 (diff)
ari: Add events for playback and recording.
While there were events defined for playback and recording these were not actually sent. This change implements the to_json handlers which produces them. (closes issue ASTERISK-22710) Reported by: Jonathan Rose Review: https://reviewboard.asterisk.org/r/3026/ ........ Merged revisions 403119 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api')
-rw-r--r--rest-api/api-docs/events.json5
-rw-r--r--rest-api/api-docs/recordings.json5
2 files changed, 5 insertions, 5 deletions
diff --git a/rest-api/api-docs/events.json b/rest-api/api-docs/events.json
index 9f82d19f5..e30a193c1 100644
--- a/rest-api/api-docs/events.json
+++ b/rest-api/api-docs/events.json
@@ -153,11 +153,6 @@
"type": "LiveRecording",
"description": "Recording control object",
"required": true
- },
- "cause": {
- "type": "string",
- "description": "Cause for the recording failure",
- "required": true
}
}
},
diff --git a/rest-api/api-docs/recordings.json b/rest-api/api-docs/recordings.json
index 590a1b84d..8e25da582 100644
--- a/rest-api/api-docs/recordings.json
+++ b/rest-api/api-docs/recordings.json
@@ -307,6 +307,11 @@
]
}
},
+ "cause": {
+ "required": false,
+ "type": "string",
+ "description": "Cause for recording failure if failed"
+ },
"state": {
"required": true,
"type": "string"