Asterisk - The Open Source Telephony Project
18.5.0
|
Command line for ARI. More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/cli.h"
#include "asterisk/stasis_app.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | app_complete |
struct | user_complete |
Functions | |
static char * | ari_mkpasswd (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_set_debug (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_show (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_show_app (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_show_apps (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_show_user (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | ari_show_users (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
int | ast_ari_cli_register (void) |
Register CLI commands for ARI. More... | |
void | ast_ari_cli_unregister (void) |
Unregister CLI commands for ARI. More... | |
static char * | complete_ari_app (struct ast_cli_args *a, int include_all) |
static int | complete_ari_app_search (void *obj, void *arg, void *data, int flags) |
static char * | complete_ari_show_user (struct ast_cli_args *a) |
static char * | complete_ari_user (struct ast_cli_args *a) |
static int | complete_ari_user_search (void *obj, void *arg, void *data, int flags) |
static int | show_users_cb (void *obj, void *arg, int flags) |
Variables | |
static struct ast_cli_entry | cli_ari [] |
Command line for ARI.
Definition in file res/ari/cli.c.
|
static |
Definition at line 214 of file res/ari/cli.c.
References ast_cli_args::argc, ast_cli_args::argv, ast_cli(), ast_crypt_encrypt(), ast_free, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 377 of file res/ari/cli.c.
References ao2_ref, app, ast_cli_args::argc, ast_cli_args::argv, ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_ari_app(), debug, ast_cli_args::fd, NULL, stasis_app_get_by_name(), stasis_app_name(), stasis_app_set_debug(), stasis_app_set_global_debug(), and ast_cli_entry::usage.
|
static |
Definition at line 32 of file res/ari/cli.c.
References ao2_cleanup, ao2_container_count(), ast_cli_args::argc, ast_ari_config_get(), ast_cli(), AST_CLI_YESNO, AST_JSON_COMPACT, AST_JSON_PRETTY, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 343 of file res/ari/cli.c.
References ao2_ref, app, ast_cli_args::argc, ast_cli_args::argv, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_ari_app(), NULL, stasis_app_get_by_name(), stasis_app_to_cli(), and ast_cli_entry::usage.
|
static |
Definition at line 253 of file res/ari/cli.c.
References ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, app, apps, ast_cli_args::argc, ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, stasis_app_get_all(), and ast_cli_entry::usage.
|
static |
Definition at line 173 of file res/ari/cli.c.
References ao2_cleanup, ao2_find, ast_cli_args::argc, ast_cli_args::argv, ast_ari_config_get(), ast_cli(), AST_CLI_YESNO, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_ari_show_user(), ast_cli_args::fd, NULL, OBJ_KEY, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 89 of file res/ari/cli.c.
References ao2_callback, ao2_cleanup, ast_cli_args::argc, ast_ari_config_get(), ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, ast_cli_args::fd, NULL, OBJ_NODATA, RAII_VAR, show_users_cb(), and ast_cli_entry::usage.
int ast_ari_cli_register | ( | void | ) |
Register CLI commands for ARI.
Definition at line 434 of file res/ari/cli.c.
References ARRAY_LEN, and ast_cli_register_multiple.
Referenced by load_module().
void ast_ari_cli_unregister | ( | void | ) |
Unregister CLI commands for ARI.
Definition at line 438 of file res/ari/cli.c.
References ARRAY_LEN, and ast_cli_unregister_multiple().
Referenced by unload_module().
|
static |
Definition at line 314 of file res/ari/cli.c.
References ao2_callback_data, ao2_cleanup, app, ast_cli(), ast_str_container_add(), ast_strdup, ast_strlen_zero, CLI_FAILURE, complete_ari_app_search(), ast_cli_args::fd, ast_cli_args::n, NULL, OBJ_SEARCH_PARTIAL_KEY, ast_cli_args::pos, RAII_VAR, stasis_app_get_all(), app_complete::state, and ast_cli_args::word.
Referenced by ari_set_debug(), and ari_show_app().
|
static |
Definition at line 304 of file res/ari/cli.c.
References CMP_MATCH, app_complete::state, and app_complete::which.
Referenced by complete_ari_app().
|
static |
Definition at line 164 of file res/ari/cli.c.
References complete_ari_user(), NULL, and ast_cli_args::pos.
Referenced by ari_show_user().
|
static |
Definition at line 142 of file res/ari/cli.c.
References ao2_callback_data, ao2_cleanup, ast_ari_config_get(), ast_cli(), ast_strdup, ast_strlen_zero, CLI_FAILURE, complete_ari_user_search(), ast_cli_args::fd, ast_cli_args::n, NULL, OBJ_PARTIAL_KEY, RAII_VAR, user_complete::state, and ast_cli_args::word.
Referenced by complete_ari_show_user().
|
static |
Definition at line 132 of file res/ari/cli.c.
References CMP_MATCH, user_complete::state, and user_complete::which.
Referenced by complete_ari_user().
|
static |
Definition at line 78 of file res/ari/cli.c.
References a, ast_cli(), AST_CLI_YESNO, ast_cli_args::fd, ast_ari_conf_user::read_only, and ast_ari_conf_user::username.
Referenced by ari_show_users().
|
static |
Definition at line 424 of file res/ari/cli.c.