Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Generated file - declares stubs to be implemented in res/ari/resource_recordings.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_recordings_cancel_args |
struct | ast_ari_recordings_copy_stored_args |
struct | ast_ari_recordings_delete_stored_args |
struct | ast_ari_recordings_get_live_args |
struct | ast_ari_recordings_get_stored_args |
struct | ast_ari_recordings_get_stored_file_args |
struct | ast_ari_recordings_list_stored_args |
struct | ast_ari_recordings_mute_args |
struct | ast_ari_recordings_pause_args |
struct | ast_ari_recordings_stop_args |
struct | ast_ari_recordings_unmute_args |
struct | ast_ari_recordings_unpause_args |
Generated file - declares stubs to be implemented in res/ari/resource_recordings.c.
Recording resources
Definition in file resource_recordings.h.
void ast_ari_recordings_cancel | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_cancel_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Stop a live recording and discard it.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 313 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_CANCEL.
Referenced by ast_ari_recordings_cancel_cb().
void ast_ari_recordings_copy_stored | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_copy_stored_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Copy a stored recording.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 145 of file resource_recordings.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_log, errno, LOG_WARNING, NULL, RAII_VAR, stasis_app_stored_recording_copy(), stasis_app_stored_recording_find_by_name(), and stasis_app_stored_recording_to_json().
Referenced by ast_ari_recordings_copy_stored_cb().
int ast_ari_recordings_copy_stored_parse_body | ( | struct ast_json * | body, |
struct ast_ari_recordings_copy_stored_args * | args | ||
) |
Body parsing function for /recordings/stored/{recordingName}/copy.
body | The JSON body from which to parse parameters. | |
[out] | args | The args structure to parse into. |
zero | on success |
non-zero | on failure |
Definition at line 287 of file res_ari_recordings.c.
References args, ast_json_object_get(), and ast_json_string_get().
Referenced by ast_ari_recordings_copy_stored_cb().
void ast_ari_recordings_delete_stored | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_delete_stored_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Delete a stored recording.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 218 of file resource_recordings.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_no_content(), ast_log, errno, LOG_WARNING, NULL, RAII_VAR, stasis_app_stored_recording_delete(), and stasis_app_stored_recording_find_by_name().
Referenced by ast_ari_recordings_delete_stored_cb().
void ast_ari_recordings_get_live | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_get_live_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List live recordings.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 259 of file resource_recordings.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), NULL, RAII_VAR, stasis_app_recording_find_by_name(), and stasis_app_recording_to_json().
Referenced by ast_ari_recordings_get_live_cb().
void ast_ari_recordings_get_stored | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_get_stored_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Get a stored recording's details.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 75 of file resource_recordings.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), NULL, RAII_VAR, stasis_app_stored_recording_find_by_name(), and stasis_app_stored_recording_to_json().
Referenced by ast_ari_recordings_get_stored_cb().
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 | ||
) |
Get the file associated with the stored recording.
ser | TCP/TLS session instance | |
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 101 of file resource_recordings.c.
References ao2_cleanup, args, ast_ari_response_error(), ast_ari_response_ok(), ast_format_get_type(), ast_get_format_for_file_ext(), ast_json_null(), AST_MEDIA_TYPE_AUDIO, AST_MEDIA_TYPE_IMAGE, AST_MEDIA_TYPE_TEXT, AST_MEDIA_TYPE_UNKNOWN, AST_MEDIA_TYPE_VIDEO, ast_str_append(), ast_ari_response::fd, ast_ari_response::headers, ast_ari_response::message, RAII_VAR, stasis_app_stored_recording_find_by_name(), stasis_app_stored_recording_get_extension(), and stasis_app_stored_recording_get_filename().
Referenced by ast_ari_recordings_get_stored_file_cb().
void ast_ari_recordings_list_stored | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_list_stored_args * | args, | ||
struct ast_ari_response * | response | ||
) |
List recordings that are complete.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 35 of file resource_recordings.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ast_ari_response_alloc_failed(), ast_ari_response_ok(), ast_json_array_append(), ast_json_array_create(), ast_json_ref(), ast_json_unref(), NULL, RAII_VAR, recordings, stasis_app_stored_recording_find_all(), and stasis_app_stored_recording_to_json().
Referenced by ast_ari_recordings_list_stored_cb().
void ast_ari_recordings_mute | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_mute_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Mute a live recording.
Muting a recording suspends silence detection, which will be restarted when the recording is unmuted.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 345 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_MUTE.
Referenced by ast_ari_recordings_mute_cb().
void ast_ari_recordings_pause | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_pause_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Pause a live recording.
Pausing a recording suspends silence detection, which will be restarted when the recording is unpaused. Paused time is not included in the accounting for maxDurationSeconds.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 329 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_PAUSE.
Referenced by ast_ari_recordings_pause_cb().
void ast_ari_recordings_stop | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_stop_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Stop a live recording and store it.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 321 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_STOP.
Referenced by ast_ari_recordings_stop_cb().
void ast_ari_recordings_unmute | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_unmute_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Unmute a live recording.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 353 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_UNMUTE.
Referenced by ast_ari_recordings_unmute_cb().
void ast_ari_recordings_unpause | ( | struct ast_variable * | headers, |
struct ast_ari_recordings_unpause_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Unpause a live recording.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 337 of file resource_recordings.c.
References args, control_recording(), and STASIS_APP_RECORDING_UNPAUSE.
Referenced by ast_ari_recordings_unpause_cb().