19#ifndef ARI_INTERNAL_H_
20#define ARI_INTERNAL_H_
62#define ARI_AUTH_REALM_LEN 256
93#define ARI_PASSWORD_LEN 256
Support for Private Asterisk HTTP Servers.
ast_http_method
HTTP Request methods known by Asterisk.
struct ast_ari_conf * ast_ari_config_get(void)
Get the current ARI configuration.
int ast_ari_config_reload(void)
Reload the ARI configuration.
void ari_handle_websocket(struct ast_websocket_server *ws_server, struct ast_tcptls_session_instance *ser, const char *uri, enum ast_http_method method, struct ast_variable *get_params, struct ast_variable *headers)
Wrapper for invoking the websocket code for an incoming connection.
#define ARI_PASSWORD_LEN
User's password mx length.
int ast_ari_cli_register(void)
Register CLI commands for ARI.
int ast_ari_config_init(void)
Initialize the ARI configuration.
void ast_ari_cli_unregister(void)
Unregister CLI commands for ARI.
#define ARI_AUTH_REALM_LEN
struct ast_ari_conf_user * ast_ari_config_validate_user(const char *username, const char *password)
Validated a user's credentials.
void ast_ari_config_destroy(void)
Destroy the ARI configuration.
ast_ari_password_format
Password format.
@ ARI_PASSWORD_FORMAT_CRYPT
@ ARI_PASSWORD_FORMAT_PLAIN
Plaintext password.
Asterisk JSON abstraction layer.
ast_json_encoding_format
Encoding format type.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_STRING_FIELD(name)
Declare a string field.
Global configuration options for ARI.
char auth_realm[ARI_AUTH_REALM_LEN]
const ast_string_field allowed_origins
enum ast_json_encoding_format format
Per-user configuration options.
char password[ARI_PASSWORD_LEN]
enum ast_ari_password_format password_format
All configuration options for ARI.
struct ao2_container * users
struct ast_ari_conf_general * general
describes a server instance
Structure for variables, used for configurations and for channel variables.
Structure for a WebSocket server.