From c79084879427750dc848834a8390bb0c8468f24b Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 6 Aug 2013 14:44:45 +0000 Subject: 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 --- include/asterisk/frame.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/asterisk/frame.h') diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index bedc3a25d..1cb7d591f 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -278,7 +278,11 @@ enum ast_control_frame_type { AST_CONTROL_STREAM_RESTART = 1002, /*!< Indicate to a channel in playback to restart the stream */ AST_CONTROL_STREAM_REVERSE = 1003, /*!< Indicate to a channel in playback to rewind */ AST_CONTROL_STREAM_FORWARD = 1004, /*!< Indicate to a channel in playback to fast forward */ - + /* Control frames to manipulate recording on a channel. */ + AST_CONTROL_RECORD_CANCEL = 1100, /*!< Indicated to a channel in record to stop recording and discard the file */ + AST_CONTROL_RECORD_STOP = 1101, /*!< Indicated to a channel in record to stop recording */ + AST_CONTROL_RECORD_SUSPEND = 1102, /*!< Indicated to a channel in record to suspend/unsuspend recording */ + AST_CONTROL_RECORD_MUTE = 1103, /*!< Indicated to a channel in record to mute/unmute (i.e. write silence) recording */ }; enum ast_frame_read_action { -- cgit v1.2.3