Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions | Variables
utils/pbx_ael.c File Reference

Compile symbolic Asterisk Extension Logic into Asterisk extensions, version 2. More...

#include "asterisk.h"
#include <ctype.h>
#include <regex.h>
#include <sys/stat.h>
#include "asterisk/pbx.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/logger.h"
#include "asterisk/cli.h"
#include "asterisk/app.h"
#include "asterisk/callerid.h"
#include "asterisk/hashtab.h"
#include "asterisk/ael_structs.h"
#include "asterisk/pval.h"

Go to the source code of this file.

Macros

#define DEBUG_CONTEXTS   (1 << 3)
 
#define DEBUG_MACROS   (1 << 2)
 
#define DEBUG_READ   (1 << 0)
 
#define DEBUG_TOKENS   (1 << 1)
 

Functions

static void __reg_module (void)
 
static void __unreg_module (void)
 
void add_extensions (struct ael_extension *exten)
 
static int aelsub_exec (struct ast_channel *chan, const char *vdata)
 
int ast_compile_ael2 (struct ast_context **local_contexts, struct ast_hashtab *local_table, struct pval *root)
 
void ast_expr_clear_extra_error_info (void)
 
void ast_expr_register_extra_error_info (char *errmsg)
 
struct ast_moduleAST_MODULE_SELF_SYM (void)
 
int check_app_args (pval *appcall, pval *arglist, struct argapp *app)
 
void check_pval (pval *item, struct argapp *apps, int in_globals)
 
void check_pval_item (pval *item, struct argapp *apps, int in_globals)
 
void check_switch_expr (pval *item, struct argapp *apps)
 
void destroy_extensions (struct ael_extension *exten)
 
void destroy_pval (pval *item)
 
void destroy_pval_item (pval *item)
 
struct pvalfind_context (char *name)
 
static char * handle_cli_ael_reload (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
static char * handle_cli_ael_set_debug (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 
int is_empty (char *arg)
 
int is_float (char *arg)
 
int is_int (char *arg)
 
static int load_module (void)
 
struct ael_extensionnew_exten (void)
 
struct ael_prioritynew_prio (void)
 
static int pbx_load_module (void)
 
static int reload (void)
 
void set_priorities (struct ael_extension *exten)
 
static int unload_module (void)
 

Variables

static struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Asterisk Extension Language Compiler" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .reload = reload, .requires = "res_ael_share", }
 
static int aeldebug = 0
 
static char * aelsub = "AELSub"
 
static const struct ast_module_infoast_module_info = &__mod_info
 
static struct ast_cli_entry cli_ael []
 
static char * config = "extensions.ael"
 
static char * registrar = "pbx_ael"
 

Detailed Description

Compile symbolic Asterisk Extension Logic into Asterisk extensions, version 2.

Definition in file utils/pbx_ael.c.

Variable Documentation

struct ast_cli_entry cli_ael[]
static
Initial value:
= {
{ .handler = handle_cli_ael_reload , .summary = "Reload AEL configuration" ,},
{ .handler = handle_cli_ael_set_debug , .summary = "Enable AEL debugging flags" ,}
}

Definition at line 253 of file utils/pbx_ael.c.