mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
ARI: Add the ability to download the media associated with a stored recording
This patch adds a new feature to ARI that allows a client to download the media associated with a stored recording. The new route is /recordings/stored/{name}/file, and transmits the underlying binary file using Asterisk's HTTP server's underlying file transfer facilities. Because this REST route returns non-JSON, a few small enhancements had to be made to the Python Swagger generation code, as well as the mustache templates that generate the ARI bindings. ASTERISK-26042 #close Change-Id: I49ec5c4afdec30bb665d9c977ab423b5387e0181
This commit is contained in:
@@ -76,6 +76,20 @@ struct ast_ari_recordings_delete_stored_args {
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_recordings_delete_stored(struct ast_variable *headers, struct ast_ari_recordings_delete_stored_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_recordings_get_stored_file() */
|
||||
struct ast_ari_recordings_get_stored_file_args {
|
||||
/*! The name of the recording */
|
||||
const char *recording_name;
|
||||
};
|
||||
/*!
|
||||
* \brief Get the file associated with the stored recording.
|
||||
*
|
||||
* \param ser TCP/TLS session instance
|
||||
* \param headers HTTP headers
|
||||
* \param args Swagger parameters
|
||||
* \param[out] response HTTP response
|
||||
*/
|
||||
void ast_ari_recordings_get_stored_file(struct ast_tcptls_session_instance *ser, struct ast_variable *headers, struct ast_ari_recordings_get_stored_file_args *args, struct ast_ari_response *response);
|
||||
/*! Argument struct for ast_ari_recordings_copy_stored() */
|
||||
struct ast_ari_recordings_copy_stored_args {
|
||||
/*! The name of the recording to copy */
|
||||
|
Reference in New Issue
Block a user