Asterisk - The Open Source Telephony Project GIT-master-8f1982c
|
Generated file - declares stubs to be implemented in res/ari/resource_events.c. More...
#include "asterisk/ari.h"
Go to the source code of this file.
Data Structures | |
struct | ast_ari_events_event_websocket_args |
struct | ast_ari_events_user_event_args |
Functions | |
void | ast_ari_events_user_event (struct ast_variable *headers, struct ast_ari_events_user_event_args *args, struct ast_ari_response *response) |
Generate a user event. More... | |
int | ast_ari_events_user_event_parse_body (struct ast_json *body, struct ast_ari_events_user_event_args *args) |
Body parsing function for /events/user/{eventName}. More... | |
Generated file - declares stubs to be implemented in res/ari/resource_events.c.
WebSocket resource
Definition in file resource_events.h.
void ast_ari_events_user_event | ( | struct ast_variable * | headers, |
struct ast_ari_events_user_event_args * | args, | ||
struct ast_ari_response * | response | ||
) |
Generate a user event.
headers | HTTP headers | |
args | Swagger parameters | |
[out] | response | HTTP response |
Definition at line 36 of file resource_events.c.
References args, ast_ari_events_user_event_parse_body(), ast_ari_response_error(), ast_ari_response_no_content(), ast_json_object_get(), ast_strlen_zero(), NULL, STASIS_APP_USER_APP_NOT_FOUND, stasis_app_user_event(), STASIS_APP_USER_EVENT_SOURCE_BAD_SCHEME, STASIS_APP_USER_EVENT_SOURCE_NOT_FOUND, STASIS_APP_USER_INTERNAL_ERROR, STASIS_APP_USER_OK, and STASIS_APP_USER_USEREVENT_INVALID.
Referenced by ast_ari_events_user_event_cb().
int ast_ari_events_user_event_parse_body | ( | struct ast_json * | body, |
struct ast_ari_events_user_event_args * | args | ||
) |
Body parsing function for /events/user/{eventName}.
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 54 of file res_ari_events.c.
References args, ast_free, AST_JSON_ARRAY, ast_json_array_get(), ast_json_array_size(), ast_json_object_get(), ast_json_string_get(), ast_json_typeof(), and ast_malloc.
Referenced by ast_ari_events_user_event().