|
Asterisk - The Open Source Telephony Project GIT-master-590b490
|
/api-docs/events.{format} implementation- WebSocket resource More...
#include "asterisk.h"#include "resource_events.h"#include "internal.h"#include "asterisk/stasis_app.h"#include "asterisk/stasis_app_broadcast.h"
Go to the source code of this file.
Functions | |
| void | ast_ari_events_claim_channel (struct ast_variable *headers, struct ast_ari_events_claim_channel_args *args, struct ast_ari_response *response) |
| Claim a broadcast channel for this application. | |
| 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. | |
/api-docs/events.{format} implementation- WebSocket resource
Definition in file resource_events.c.
| void ast_ari_events_claim_channel | ( | struct ast_variable * | headers, |
| struct ast_ari_events_claim_channel_args * | args, | ||
| struct ast_ari_response * | response | ||
| ) |
Claim a broadcast channel for this application.
Atomically claims a channel that is in broadcast state. Only the first claim succeeds.
| headers | HTTP headers | |
| args | Swagger parameters | |
| [out] | response | HTTP response |
Definition at line 92 of file resource_events.c.
References args, ast_ari_response_error(), ast_ari_response_no_content(), AST_OPTIONAL_API_UNAVAILABLE, ast_strlen_zero(), and stasis_app_claim_channel().
Referenced by ast_ari_events_claim_channel_cb().
| 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 37 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().