99 if (sscanf(
args.level,
"%30u", &vsize) != 1) {
102 }
else if (4 < vsize) {
127 if (!strcasecmp(
args.level,
"ERROR")) {
129 }
else if (!strcasecmp(
args.level,
"WARNING")) {
131 }
else if (!strcasecmp(
args.level,
"NOTICE")) {
133 }
else if (!strcasecmp(
args.level,
"DEBUG")) {
135 }
else if (!strcasecmp(
args.level,
"VERBOSE")) {
137 }
else if (!strcasecmp(
args.level,
"DTMF")) {
static int verbose_exec(struct ast_channel *chan, const char *data)
static int log_exec(struct ast_channel *chan, const char *data)
static int load_module(void)
static char * app_verbose
static int unload_module(void)
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.
int ast_channel_priority(const struct ast_channel *chan)
const char * ast_channel_context(const struct ast_channel *chan)
const char * ast_channel_exten(const struct ast_channel *chan)
#define AST_MAX_EXTENSION
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Support for logging to various files, console and syslog Configuration in file logger....
int ast_logger_get_dynamic_level(const char *name)
Retrieve dynamic logging level id.
#define ast_verb(level,...)
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.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Main Channel structure associated with a channel.
structure to hold extensions