summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-05-23 18:04:07 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-23 18:04:07 -0500
commitcab97fd9056e1dd99f4d6e0883c128131467df44 (patch)
tree82045e0bc958deb5662d14679c89d02845b5c89b /include
parentc20e560516239dc32c93bd3484abad4fa42045f5 (diff)
parente773e3a9bbaf378d53647e4bac3ffcd61afb4ae6 (diff)
Merge "ARI: Add the ability to download the media associated with a stored recording"
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/ari.h2
-rw-r--r--include/asterisk/stasis_app_recording.h24
2 files changed, 26 insertions, 0 deletions
diff --git a/include/asterisk/ari.h b/include/asterisk/ari.h
index c9f47a6e5..79b9516eb 100644
--- a/include/asterisk/ari.h
+++ b/include/asterisk/ari.h
@@ -95,6 +95,8 @@ struct ast_ari_response {
/*! HTTP response code.
* See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html */
int response_code;
+ /*! File descriptor for whatever file we want to respond with */
+ int fd;
/*! Corresponding text for the response code */
const char *response_text; /* Shouldn't http.c handle this? */
/*! Flag to indicate that no further response is needed */
diff --git a/include/asterisk/stasis_app_recording.h b/include/asterisk/stasis_app_recording.h
index 543207a47..bded30629 100644
--- a/include/asterisk/stasis_app_recording.h
+++ b/include/asterisk/stasis_app_recording.h
@@ -49,6 +49,30 @@ const char *stasis_app_stored_recording_get_file(
struct stasis_app_stored_recording *recording);
/*!
+ * \brief Returns the full filename, with extension, for this recording.
+ * \since 14.0.0
+ *
+ * \param recording Recording to query.
+ *
+ * \return Absolute path to the recording file, with the extension.
+ * \return \c NULL on error
+ */
+const char *stasis_app_stored_recording_get_filename(
+ struct stasis_app_stored_recording *recording);
+
+/*!
+ * \brief Returns the extension for this recording.
+ * \since 14.0.0
+ *
+ * \param recording Recording to query.
+ *
+ * \return The extension associated with this recording.
+ * \return \c NULL on error
+ */
+const char *stasis_app_stored_recording_get_extension(
+ struct stasis_app_stored_recording *recording);
+
+/*!
* \brief Convert stored recording info to JSON.
*
* \param recording Recording to convert.