Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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 211 of file res/ari/cli.c.
References a, ast_cli(), ast_crypt_encrypt(), ast_free, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, NULL, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 374 of file res/ari/cli.c.
References a, ao2_ref, app, ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, complete_ari_app(), debug, 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 a, ao2_cleanup, ao2_container_count(), ast_ari_config_get(), ast_cli(), AST_CLI_YESNO, AST_JSON_PRETTY, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, conf::general, NULL, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 340 of file res/ari/cli.c.
References a, ao2_ref, app, 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 250 of file res/ari/cli.c.
References a, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, app, apps, ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, NULL, stasis_app_get_all(), and ast_cli_entry::usage.
|
static |
Definition at line 170 of file res/ari/cli.c.
References a, ao2_cleanup, ao2_find, 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(), NULL, OBJ_KEY, RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 86 of file res/ari/cli.c.
References a, ao2_callback, ao2_cleanup, ast_ari_config_get(), ast_cli(), CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, 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 431 of file res/ari/cli.c.
References ARRAY_LEN, ast_cli_register_multiple, and cli_ari.
Referenced by load_module().
void ast_ari_cli_unregister | ( | void | ) |
Unregister CLI commands for ARI.
Definition at line 435 of file res/ari/cli.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), and cli_ari.
Referenced by unload_module().
|
static |
Definition at line 311 of file res/ari/cli.c.
References a, ao2_callback_data, ao2_cleanup, app, ast_cli(), ast_str_container_add(), ast_strdup, ast_strlen_zero(), CLI_FAILURE, complete_ari_app_search(), NULL, OBJ_SEARCH_PARTIAL_KEY, RAII_VAR, stasis_app_get_all(), and app_complete::state.
Referenced by ari_set_debug(), and ari_show_app().
|
static |
Definition at line 301 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 161 of file res/ari/cli.c.
References a, complete_ari_user(), and NULL.
Referenced by ari_show_user().
|
static |
Definition at line 139 of file res/ari/cli.c.
References a, ao2_callback_data, ao2_cleanup, ast_ari_config_get(), ast_cli(), ast_strdup, ast_strlen_zero(), CLI_FAILURE, complete_ari_user_search(), NULL, OBJ_PARTIAL_KEY, RAII_VAR, and user_complete::state.
Referenced by complete_ari_show_user().
|
static |
Definition at line 129 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 75 of file res/ari/cli.c.
References a, ast_cli(), and AST_CLI_YESNO.
Referenced by ari_show_users().
|
static |
Definition at line 421 of file res/ari/cli.c.
Referenced by ast_ari_cli_register(), and ast_ari_cli_unregister().