ARI: Add recording controls
authorDavid M. Lee <dlee@digium.com>
Tue, 6 Aug 2013 14:44:45 +0000 (14:44 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 6 Aug 2013 14:44:45 +0000 (14:44 +0000)
commitc79084879427750dc848834a8390bb0c8468f24b
tree2e6c4371cda2c73172642b267aa54dea469d600d
parentb97d318b7bc31b47fbd4b74421e351095f05139d
ARI: Add recording controls

This patch implements the controls from ARI recordings. The controls
are:

 * DELETE /recordings/live/{recordingName} - stop recording and
   discard it
 * POST /recordings/live/{recordingName}/stop - stop recording
 * POST /recordings/live/{recordingName}/pause - pause recording
 * POST /recordings/live/{recordingName}/unpause - resume recording
 * POST /recordings/live/{recordingName}/mute - mute recording (record
   silence to the file)
 * POST /recordings/live/{recordingName}/unmute - unmute recording.

Since this underlying functionality did not already exist, is was
added to app.c by a set of control frames, similar to how playback
control works. The pause/mute control frames are toggles, even though
the ARI controls are idempotent, to be consistent with the playback
control frames.

(closes issue ASTERISK-22181)
Review: https://reviewboard.asterisk.org/r/2697/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
13 files changed:
apps/app_minivm.c
apps/app_voicemail.c
funcs/func_frame_trace.c
include/asterisk/app.h
include/asterisk/frame.h
include/asterisk/stasis_app_recording.h
main/app.c
main/channel.c
res/ari/resource_recordings.c
res/ari/resource_recordings.h
res/res_ari_recordings.c
res/res_stasis_recording.c
rest-api/api-docs/recordings.json