64 static 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");
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
static int load_module(void)
static int unload_module(void)
static const char dt_app[]
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_verb(level,...)
#define ast_strlen_zero(foo)
#define ast_debug(level,...)
Log a DEBUG message.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Core PBX routines and definitions.
char * strsep(char **str, const char *delims)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
static int deltree_exec(struct ast_channel *chan, const char *data)
Persistant data storage (akin to *doze registry)
int ast_db_deltree(const char *family, const char *keytree)
Delete one or more entries in astdb.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.