Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Execute dialplan applications from the CLI. More...
#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/frame.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "Simple dialplan execution from the CLI") | |
static char * | handle_exec (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
CLI support for executing application. More... | |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static int | cli_chan = 0 |
static struct ast_cli_entry | cli_cliorig [] |
static const struct ast_channel_tech | mock_channel_tech |
Execute dialplan applications from the CLI.
Definition in file res_cliexec.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"Simple dialplan execution from the CLI" | |||
) |
|
static |
CLI support for executing application.
Definition at line 48 of file res_cliexec.c.
References a, ao2_cleanup, app, app_name(), ast_cli_entry::args, ast_channel_alloc, ast_channel_nativeformats_set(), ast_channel_set_rawreadformat(), ast_channel_set_rawwriteformat(), ast_channel_set_readformat(), ast_channel_set_writeformat(), ast_channel_tech_set(), ast_channel_unlock, ast_cli(), ast_format_alaw, ast_format_cap_alloc, ast_format_cap_append, AST_FORMAT_CAP_FLAG_DEFAULT, ast_format_h264, ast_format_slin, ast_format_ulaw, ast_free, ast_hangup(), ast_log, AST_STATE_DOWN, ast_str_buffer(), ast_str_create, ast_str_substitute_variables(), c, cli_chan, CLI_FAILURE, CLI_GENERATE, CLI_INIT, CLI_SHOWUSAGE, CLI_SUCCESS, ast_cli_entry::command, LOG_WARNING, mock_channel_tech, NULL, pbx_exec(), pbx_findapp(), RAII_VAR, and ast_cli_entry::usage.
|
static |
Definition at line 153 of file res_cliexec.c.
References ARRAY_LEN, ast_cli_register_multiple, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and cli_cliorig.
|
static |
Definition at line 148 of file res_cliexec.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), and cli_cliorig.
|
static |
Definition at line 45 of file res_cliexec.c.
Referenced by handle_exec().
|
static |
Definition at line 144 of file res_cliexec.c.
Referenced by load_module(), and unload_module().
|
static |