19#ifndef ARI_INTERNAL_H_
20#define ARI_INTERNAL_H_
143 const char *
app_name,
unsigned int ws_type);
Internal API's for websockets.
Support for Private Asterisk HTTP Servers.
ast_websocket_type
WebSocket connection/configuration types.
struct ari_conf_outbound_websocket * ari_conf_get_owc_for_app(const char *app_name, unsigned int ws_type)
Get the outbound websocket configuration for a Stasis app.
int ari_sorcery_observer_remove(const char *object_type, const struct ast_sorcery_observer *callbacks)
enum ari_conf_owc_fields ari_conf_owc_get_invalid_fields(const char *id)
struct ao2_container * ari_conf_get_owcs(void)
struct ao2_container * ari_conf_get_users(void)
enum ari_conf_owc_fields ari_conf_owc_detect_changes(struct ari_conf_outbound_websocket *old_owc, struct ari_conf_outbound_websocket *new_owc)
Detect changes between two outbound websocket configurations.
int ari_conf_load(enum ari_conf_load_flags flags)
(Re)load the ARI configuration
ari_user_password_format
Password format.
@ ARI_PASSWORD_FORMAT_CRYPT
@ ARI_PASSWORD_FORMAT_PLAIN
Plaintext password.
@ ARI_OWC_FIELD_WEBSOCKET_CONNECTION_ID
@ ARI_OWC_NEEDS_REREGISTER
@ ARI_OWC_FIELD_LOCAL_ARI_PASSWORD
@ ARI_OWC_FIELD_LOCAL_ARI_USER
@ ARI_OWC_FIELD_SUBSCRIBE_ALL
@ ARI_OWC_NEEDS_RECONNECT
const char * ari_websocket_type_to_str(enum ast_websocket_type type)
int ari_sorcery_observer_add(const char *object_type, const struct ast_sorcery_observer *callbacks)
struct ari_conf_general * ari_conf_get_general(void)
void ari_cli_unregister(void)
Unregister CLI commands for ARI.
struct ari_conf_outbound_websocket * ari_conf_get_owc(const char *id)
struct ari_conf_user * ari_conf_get_user(const char *username)
int ari_cli_register(void)
Register CLI commands for ARI.
struct ari_conf_user * ari_conf_validate_user(const char *username, const char *password)
Validated a user's credentials.
void ari_conf_destroy(void)
Destroy the ARI configuration.
Asterisk JSON abstraction layer.
ast_json_encoding_format
Encoding format type.
const char * app_name(struct ast_app *app)
Sorcery Data Access Layer API.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_STRING_FIELD(name)
Declare a string field.
Registered applications container.
Global configuration options for ARI.
const ast_string_field channelvars
const ast_string_field allowed_origins
enum ast_json_encoding_format format
const ast_string_field auth_realm
const ast_string_field local_ari_password
struct ast_websocket_client * websocket_client
const ast_string_field local_ari_user
const ast_string_field websocket_client_id
Per-user configuration options.
enum ari_user_password_format password_format
const ast_string_field password
Interface for a sorcery object type observer.
@ AST_WS_CLIENT_NEEDS_RECONNECT
#define AST_WS_CLIENT_FIELD_USER_START