diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-07-18 21:48:46 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-07-18 21:48:46 +0000 |
commit | b299052e203807c9a2111eb2cd919246d7589cb3 (patch) | |
tree | ed02894e1620cc9d0113aa4449b168fa76f01186 /include/asterisk/stasis_app_recording.h | |
parent | eaf1225b40308f643272a7f7715c7b46aa075f83 (diff) |
ari: Add a copy operation for stored recordings
This patch adds a new operation for stored recordings, copy. It takes an
existing stored recording and makes a copy of it in the same directory
or a relative directory under the stored recording directory.
/ari/recordings/stored/{recordingName}/copy?destinationRecordingName={copy_name}
This is particularly useful for voicemail-esque applications, which may need to
copy or move recordings around a directory structure.
Review: https://reviewboard.asterisk.org/r/3768/
ASTERISK-24036 #close
Reported by: Sam Galarneau
Tested by: Sam Galarneau
........
Merged revisions 419021 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/stasis_app_recording.h')
-rw-r--r-- | include/asterisk/stasis_app_recording.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app_recording.h b/include/asterisk/stasis_app_recording.h index f67c204ef..543207a47 100644 --- a/include/asterisk/stasis_app_recording.h +++ b/include/asterisk/stasis_app_recording.h @@ -80,6 +80,19 @@ struct stasis_app_stored_recording *stasis_app_stored_recording_find_by_name( const char *name); /*! + * \brief Copy a recording. + * + * \param src_recording The recording to copy + * \param dst The destination of the recording to make + * \param dst_recording If successful, the stored recording created as a result of the copy + * + * \retval 0 on success + * \retval Non-zero on error + */ +int stasis_app_stored_recording_copy(struct stasis_app_stored_recording *src_recording, const char *dst, + struct stasis_app_stored_recording **dst_recording); + +/*! * \brief Delete a recording from disk. * * \param recording Recording to delete. |