43 if (
args->variables) {
50 "Missing parameter application");
66 "Application not found");
71 "Event source was not found");
76 "Invalid event source URI scheme");
81 "Invalid userevent data");
87 "Error processing request");
void ast_ari_response_error(struct ast_ari_response *response, int response_code, const char *response_text, const char *message_fmt,...)
Fill in an error ast_ari_response.
void ast_ari_response_no_content(struct ast_ari_response *response)
Fill in a No Content (204) ast_ari_response.
Asterisk main include file. File version handling, generic pbx functions.
Internal API's for res_ari.
struct ast_json * ast_json_object_get(struct ast_json *object, const char *key)
Get a field from a JSON object.
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.
Generated file - declares stubs to be implemented in res/ari/resource_events.c.
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}.
Stasis Application API. See Stasis Application API for detailed documentation.
stasis_app_user_event_res
Return code for stasis_app_user_event.
@ STASIS_APP_USER_APP_NOT_FOUND
@ STASIS_APP_USER_EVENT_SOURCE_NOT_FOUND
@ STASIS_APP_USER_EVENT_SOURCE_BAD_SCHEME
@ STASIS_APP_USER_USEREVENT_INVALID
@ STASIS_APP_USER_INTERNAL_ERROR
enum stasis_app_user_event_res stasis_app_user_event(const char *app_name, const char *event_name, const char **source_uris, int sources_count, struct ast_json *json_variables)
Generate a Userevent for stasis app (echo to AMI)
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Abstract JSON element (object, array, string, int, ...).
Structure for variables, used for configurations and for channel variables.