240 ast_debug(1,
"DB_DELETE: %s/%s not found in database.\n",
args.family,
args.key);
243 ast_debug(1,
"DB_DELETE: %s/%s could not be deleted from the database\n",
args.family,
args.key);
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
int ast_db_get(const char *family, const char *key, char *out, int outlen)
Get key value specified by family/key.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
static struct ast_custom_function db_delete_function
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
#define ast_custom_function_register_escalating(acf, escalation)
Register a custom function which requires escalated privileges.
#define ast_debug(level,...)
Log a DEBUG message.
static int function_db_exists(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)
General Asterisk PBX channel definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Data structure associated with a custom dialplan function.
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 dis...
Core PBX routines and definitions.
static int unload_module(void)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
static void parse(struct mgcp_request *req)
static int load_module(void)
static struct ast_custom_function db_exists_function
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name...
int ast_db_del(const char *family, const char *key)
Delete entry in astdb.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
int ast_db_put(const char *family, const char *key, const char *value)
Store value addressed by family/key.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_NONSTANDARD_APP_ARGS(args, parse, sep)
Performs the 'nonstandard' argument separation process for an application.
#define ASTERISK_GPL_KEY
The text the key() function should return.
static int function_db_read(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len)
Asterisk module definitions.
Persistant data storage (akin to *doze registry)
#define ast_custom_function_register(acf)
Register a custom function.
static struct ast_custom_function db_function
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.