35 #include "asterisk/module.h"
99 if (sscanf(
args.level,
"%30d", &vsize) != 1) {
141 if (!strcasecmp(
args.level,
"ERROR")) {
143 }
else if (!strcasecmp(
args.level,
"WARNING")) {
145 }
else if (!strcasecmp(
args.level,
"NOTICE")) {
147 }
else if (!strcasecmp(
args.level,
"DEBUG")) {
149 }
else if (!strcasecmp(
args.level,
"VERBOSE")) {
151 }
else if (!strcasecmp(
args.level,
"DTMF")) {
158 snprintf(context,
sizeof(context),
"@ %s", chan->
context);
159 snprintf(extension,
sizeof(extension),
"Ext. %s", chan->
exten);
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
char context[AST_MAX_CONTEXT]
void ast_verbose(const char *fmt,...)
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
static int load_module(void)
int ast_unregister_application(const char *app)
Unregister an application.
static int verbose_exec(struct ast_channel *chan, const char *data)
General Asterisk PBX channel definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
#define AST_MAX_EXTENSION
#define ast_strdupa(s)
duplicate a string in memory from the stack
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 char * app_verbose
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
#define AST_APP_ARG(name)
Define an application argument.
static int unload_module(void)
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
static char context[AST_MAX_CONTEXT]
#define ASTERISK_GPL_KEY
The text the key() function should return.
static int log_exec(struct ast_channel *chan, const char *data)
char exten[AST_MAX_EXTENSION]
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.