|
Asterisk - The Open Source Telephony Project GIT-master-9647a4f
|
Functions for interaction with the Asterisk database. More...
#include "asterisk.h"#include <regex.h>#include "asterisk/module.h"#include "asterisk/channel.h"#include "asterisk/pbx.h"#include "asterisk/utils.h"#include "asterisk/app.h"#include "asterisk/astdb.h"
Go to the source code of this file.
Functions | |
| static void | __reg_module (void) |
| static void | __unreg_module (void) |
| struct ast_module * | AST_MODULE_SELF_SYM (void) |
| static int | function_db_delete (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
| static int | function_db_delete_write (struct ast_channel *chan, const char *cmd, char *parse, const char *value) |
| Wrapper to execute DB_DELETE from a write operation. Allows execution even if live_dangerously is disabled. | |
| static int | function_db_exists (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
| static int | function_db_keycount (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
| static int | function_db_keys (struct ast_channel *chan, const char *cmd, char *parse, struct ast_str **result, ssize_t maxlen) |
| static int | function_db_read (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
| static int | function_db_write (struct ast_channel *chan, const char *cmd, char *parse, const char *value) |
| static int | load_module (void) |
| static int | unload_module (void) |
Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Database (astdb) related dialplan functions" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
| static const struct ast_module_info * | ast_module_info = &__mod_info |
| static struct ast_custom_function | db_delete_function |
| static struct ast_custom_function | db_exists_function |
| static struct ast_custom_function | db_function |
| static struct ast_custom_function | db_keycount_function |
| static struct ast_custom_function | db_keys_function |
Functions for interaction with the Asterisk database.
Definition in file func_db.c.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
|
static |
Definition at line 376 of file func_db.c.
References args, AST_APP_ARG, ast_db_del(), ast_db_get(), ast_debug, AST_DECLARE_APP_ARGS, ast_log, AST_NONSTANDARD_APP_ARGS, ast_strlen_zero(), buf, len(), LOG_WARNING, and pbx_builtin_setvar_helper().
Referenced by function_db_delete_write().
|
static |
Wrapper to execute DB_DELETE from a write operation. Allows execution even if live_dangerously is disabled.
Definition at line 415 of file func_db.c.
References buf, and function_db_delete().
|
static |
Definition at line 232 of file func_db.c.
References args, AST_APP_ARG, ast_db_get(), AST_DECLARE_APP_ARGS, ast_log, AST_NONSTANDARD_APP_ARGS, ast_strlen_zero(), buf, len(), LOG_WARNING, and pbx_builtin_setvar_helper().
|
static |
Definition at line 325 of file func_db.c.
References ast_db_freetree(), ast_db_gettree(), buf, ast_db_entry::key, last, len(), ast_db_entry::next, and NULL.
|
static |
Definition at line 270 of file func_db.c.
References ast_db_freetree(), ast_db_gettree(), ast_free, ast_str_append(), ast_str_append_escapecommas(), ast_str_reset(), ast_db_entry::key, last, ast_db_entry::next, NULL, and result.
|
static |
Definition at line 162 of file func_db.c.
References args, AST_APP_ARG, ast_db_get(), ast_debug, AST_DECLARE_APP_ARGS, ast_log, AST_NONSTANDARD_APP_ARGS, ast_strlen_zero(), buf, len(), LOG_WARNING, and pbx_builtin_setvar_helper().
|
static |
Definition at line 193 of file func_db.c.
References args, AST_APP_ARG, ast_db_put(), AST_DECLARE_APP_ARGS, ast_log, AST_NONSTANDARD_APP_ARGS, ast_strlen_zero(), LOG_WARNING, and value.
|
static |
Definition at line 442 of file func_db.c.
References AST_CFE_BOTH, AST_CFE_READ, ast_custom_function_register, ast_custom_function_register_escalating, db_delete_function, db_exists_function, db_function, db_keycount_function, and db_keys_function.
|
static |
Definition at line 429 of file func_db.c.
References ast_custom_function_unregister(), db_delete_function, db_exists_function, db_function, db_keycount_function, and db_keys_function.
|
static |
|
static |
|
static |
Definition at line 423 of file func_db.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 264 of file func_db.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 226 of file func_db.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 371 of file func_db.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 320 of file func_db.c.
Referenced by load_module(), and unload_module().