Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
/api-docs/playbacks.{format} implementation- Playback control resources More...
Go to the source code of this file.
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... | |
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... | |
/api-docs/playbacks.{format} implementation- Playback control resources
Definition in file resource_playbacks.c.
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, args, ast_ari_response_error(), ast_ari_response_no_content(), NULL, 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().
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, args, ast_ari_response_error(), ast_ari_response_ok(), NULL, 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, args, ast_ari_response_error(), ast_ari_response_no_content(), ast_assert, NULL, 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().