64static const char dt_app[] =
"DBdeltree";
68 char *argv, *family, *keytree;
72 if (strchr(argv,
'/')) {
73 family =
strsep(&argv,
"/");
74 keytree =
strsep(&argv,
"\0");
75 if (!family || !keytree) {
76 ast_debug(1,
"Ignoring; Syntax error in argument\n");
87 ast_verb(3,
"DBdeltree: family=%s, keytree=%s\n", family, keytree);
89 ast_verb(3,
"DBdeltree: family=%s\n", family);
93 ast_verb(3,
"DBdeltree: Error deleting key from database.\n");
static const char dt_app[]
static int load_module(void)
static int unload_module(void)
static int deltree_exec(struct ast_channel *chan, const char *data)
Persistent data storage (akin to *doze registry)
int ast_db_deltree(const char *family, const char *keytree)
Delete one or more entries in astdb.
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
General Asterisk PBX channel definitions.
Generic File Format Support. Should be included by clients of the file handling routines....
char * strsep(char **str, const char *delims)
#define ast_debug(level,...)
Log a DEBUG message.
#define ast_verb(level,...)
Asterisk locking-related definitions:
Asterisk module definitions.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#define ASTERISK_GPL_KEY
The text the key() function should return.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Core PBX routines and definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Main Channel structure associated with a channel.