Asterisk - The Open Source Telephony Project
18.5.0
|
/api-docs/recordings.{format} implementation- Recording resources More...
Go to the source code of this file.
/api-docs/recordings.{format} implementation- Recording resources
Definition in file resource_recordings.c.
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 control_recording(), ast_ari_recordings_cancel_args::recording_name, 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, ast_ari_response_error(), ast_ari_response_ok(), ast_log, ast_ari_recordings_copy_stored_args::destination_recording_name, errno, LOG_WARNING, NULL, RAII_VAR, ast_ari_recordings_copy_stored_args::recording_name, 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().
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, ast_ari_response_error(), ast_ari_response_no_content(), ast_log, errno, LOG_WARNING, NULL, RAII_VAR, ast_ari_recordings_delete_stored_args::recording_name, 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, ast_ari_response_error(), ast_ari_response_ok(), NULL, RAII_VAR, ast_ari_recordings_get_live_args::recording_name, 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, ast_ari_response_error(), ast_ari_response_ok(), NULL, RAII_VAR, ast_ari_recordings_get_stored_args::recording_name, 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, 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, format, ast_ari_response::headers, ast_ari_response::message, RAII_VAR, ast_ari_recordings_get_stored_file_args::recording_name, 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 control_recording(), ast_ari_recordings_mute_args::recording_name, 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 control_recording(), ast_ari_recordings_pause_args::recording_name, 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 control_recording(), ast_ari_recordings_stop_args::recording_name, 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 control_recording(), ast_ari_recordings_unmute_args::recording_name, 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 control_recording(), ast_ari_recordings_unpause_args::recording_name, and STASIS_APP_RECORDING_UNPAUSE.
Referenced by ast_ari_recordings_unpause_cb().
|
static |
Definition at line 283 of file resource_recordings.c.
References ao2_cleanup, ast_ari_response_error(), ast_ari_response_no_content(), NULL, RAII_VAR, stasis_app_recording_find_by_name(), STASIS_APP_RECORDING_OPER_FAILED, STASIS_APP_RECORDING_OPER_NOT_RECORDING, STASIS_APP_RECORDING_OPER_OK, and stasis_app_recording_operation().
Referenced by ast_ari_recordings_cancel(), ast_ari_recordings_mute(), ast_ari_recordings_pause(), ast_ari_recordings_stop(), ast_ari_recordings_unmute(), and ast_ari_recordings_unpause().