Asterisk - The Open Source Telephony Project
18.5.0
|
Generated file - declares stubs to be implemented in res/ari/resource_playbacks.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_playbacks_control_args |
struct | ast_ari_playbacks_get_args |
struct | ast_ari_playbacks_stop_args |
Functions | |
void | ast_ari_playbacks_control (struct ast_variable *headers, struct ast_ari_playbacks_control_args *args, struct ast_ari_response *response) |
Control a playback. More... | |
int | ast_ari_playbacks_control_parse_body (struct ast_json *body, struct ast_ari_playbacks_control_args *args) |
Body parsing function for /playbacks/{playbackId}/control. More... | |
void | ast_ari_playbacks_get (struct ast_variable *headers, struct ast_ari_playbacks_get_args *args, struct ast_ari_response *response) |
Get a playback's details. More... | |
void | ast_ari_playbacks_stop (struct ast_variable *headers, struct ast_ari_playbacks_stop_args *args, struct ast_ari_response *response) |
Stop a playback. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_playbacks.c.
Playback control resources
Definition in file resource_playbacks.h.
void ast_ari_playbacks_control | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_control_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Control a playback.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 89 of file resource_playbacks.c.
References ao2_cleanup, ast_ari_response_error(), ast_ari_response_no_content(), NULL, ast_ari_playbacks_control_args::operation, ast_ari_playbacks_control_args::playback_id, RAII_VAR, stasis_app_playback_find_by_id(), stasis_app_playback_operation(), STASIS_PLAYBACK_FORWARD, STASIS_PLAYBACK_OPER_FAILED, STASIS_PLAYBACK_OPER_NOT_PLAYING, STASIS_PLAYBACK_OPER_OK, STASIS_PLAYBACK_PAUSE, STASIS_PLAYBACK_RESTART, STASIS_PLAYBACK_REVERSE, and STASIS_PLAYBACK_UNPAUSE.
Referenced by ast_ari_playbacks_control_cb().
int ast_ari_playbacks_control_parse_body | ( | struct ast_json * | body, |
struct ast_ari_playbacks_control_args * | args | ||
) |
Body parsing function for /playbacks/{playbackId}/control.
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 170 of file res_ari_playbacks.c.
References ast_json_object_get(), ast_json_string_get(), and ast_ari_playbacks_control_args::operation.
Referenced by ast_ari_playbacks_control_cb().
void ast_ari_playbacks_get | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_get_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Get a playback's details.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 35 of file resource_playbacks.c.
References ao2_cleanup, ast_ari_response_error(), ast_ari_response_ok(), NULL, ast_ari_playbacks_get_args::playback_id, RAII_VAR, stasis_app_playback_find_by_id(), and stasis_app_playback_to_json().
Referenced by ast_ari_playbacks_get_cb().
void ast_ari_playbacks_stop | ( | struct ast_variable * | headers, |
struct ast_ari_playbacks_stop_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Stop a playback.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 58 of file resource_playbacks.c.
References ao2_cleanup, ast_ari_response_error(), ast_ari_response_no_content(), ast_assert, NULL, ast_ari_playbacks_stop_args::playback_id, RAII_VAR, stasis_app_playback_find_by_id(), stasis_app_playback_operation(), STASIS_PLAYBACK_OPER_FAILED, STASIS_PLAYBACK_OPER_NOT_PLAYING, STASIS_PLAYBACK_OPER_OK, and STASIS_PLAYBACK_STOP.
Referenced by ast_ari_playbacks_stop_cb().