Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


extconf.h File Reference

External configuration handlers (realtime and static configuration) More...

Go to the source code of this file.

Data Structures

struct  pbx_find_info
 

Macros

#define AST_PBX_MAX_STACK   128
 
#define STATUS_NO_CONTEXT   1
 
#define STATUS_NO_EXTENSION   2
 
#define STATUS_NO_LABEL   4
 
#define STATUS_NO_PRIORITY   3
 
#define STATUS_SUCCESS   5
 

Enumerations

enum  ext_match_t {
  E_MATCHMORE = 0x00, E_CANMATCH = 0x01, E_MATCH = 0x02, E_MATCH_MASK = 0x03,
  E_SPAWN = 0x12, E_FINDLABEL = 0x22, E_MATCHMORE = 0x00, E_CANMATCH = 0x01,
  E_MATCH = 0x02, E_MATCH_MASK = 0x03, E_SPAWN = 0x12, E_FINDLABEL = 0x22
}
 

Functions

int localized_add_extension2 (struct ast_context *con, int replace, const char *extension, int priority, const char *label, const char *callerid, const char *application, void *data, void(*datad)(void *), const char *registrar)
 
struct ast_categorylocalized_category_get (const struct ast_config *config, const char *category_name)
 
struct ast_configlocalized_config_load (const char *filename)
 
struct ast_configlocalized_config_load_with_comments (const char *filename)
 
int localized_config_text_file_save (const char *configfile, const struct ast_config *cfg, const char *generator)
 
int localized_context_add_ignorepat2 (struct ast_context *con, const char *value, const char *registrar)
 
int localized_context_add_include2 (struct ast_context *con, const char *value, const char *registrar)
 
int localized_context_add_switch2 (struct ast_context *con, const char *value, const char *data, int eval, const char *registrar)
 
void localized_context_destroy (struct ast_context *con, const char *registrar)
 
struct ast_contextlocalized_context_find_or_create (struct ast_context **extcontexts, void *tab, const char *name, const char *registrar)
 
int localized_context_verify_includes (struct ast_context *con)
 
struct ast_extenlocalized_find_extension (struct ast_context *bypass, struct pbx_find_info *q, const char *context, const char *exten, int priority, const char *label, const char *callerid, enum ext_match_t action)
 
void localized_merge_contexts_and_delete (struct ast_context **extcontexts, void *tab, const char *registrar)
 
int localized_pbx_builtin_setvar (struct ast_channel *chan, const void *data)
 
int localized_pbx_load_module (void)
 
void localized_use_conf_dir (void)
 
void localized_use_local_dir (void)
 
struct ast_extenlocalized_walk_context_extensions (struct ast_context *con, struct ast_exten *exten)
 
struct ast_includelocalized_walk_context_includes (struct ast_context *con, struct ast_include *inc)
 
struct ast_swlocalized_walk_context_switches (struct ast_context *con, struct ast_sw *sw)
 
struct ast_contextlocalized_walk_contexts (struct ast_context *con)
 
struct ast_extenlocalized_walk_extension_priorities (struct ast_exten *exten, struct ast_exten *priority)
 

Detailed Description

External configuration handlers (realtime and static configuration)

Author
Steve Murphy murf@.nosp@m.digi.nosp@m.um.co.nosp@m.m

Definition in file extconf.h.

Macro Definition Documentation

#define AST_PBX_MAX_STACK   128
#define STATUS_NO_CONTEXT   1

Definition at line 241 of file extconf.h.

#define STATUS_NO_EXTENSION   2

Definition at line 242 of file extconf.h.

#define STATUS_NO_LABEL   4

Definition at line 244 of file extconf.h.

#define STATUS_NO_PRIORITY   3

Definition at line 243 of file extconf.h.

#define STATUS_SUCCESS   5

Definition at line 245 of file extconf.h.

Referenced by check_goto(), and check_pval_item().

Enumeration Type Documentation

When looking up extensions, we can have different requests identified by the 'action' argument, as follows. Note that the coding is such that the low 4 bits are the third argument to extension_match_core.

Enumerator
E_MATCHMORE 
E_CANMATCH 
E_MATCH 
E_MATCH_MASK 
E_SPAWN 
E_FINDLABEL 
E_MATCHMORE 
E_CANMATCH 
E_MATCH 
E_MATCH_MASK 
E_SPAWN 
E_FINDLABEL 

Definition at line 215 of file extconf.h.

215  {
216  E_MATCHMORE = 0x00, /* extension can match but only with more 'digits' */
217  E_CANMATCH = 0x01, /* extension can match with or without more 'digits' */
218  E_MATCH = 0x02, /* extension is an exact match */
219  E_MATCH_MASK = 0x03, /* mask for the argument to extension_match_core() */
220  E_SPAWN = 0x12, /* want to spawn an extension. Requires exact match */
221  E_FINDLABEL = 0x22 /* returns the priority for a given label. Requires exact match */
222 };

Function Documentation

int localized_add_extension2 ( struct ast_context con,
int  replace,
const char *  extension,
int  priority,
const char *  label,
const char *  callerid,
const char *  application,
void *  data,
void(*)(void *)  datad,
const char *  registrar 
)
struct ast_category* localized_category_get ( const struct ast_config config,
const char *  category_name 
)
struct ast_config* localized_config_load ( const char *  filename)
struct ast_config* localized_config_load_with_comments ( const char *  filename)
int localized_config_text_file_save ( const char *  configfile,
const struct ast_config cfg,
const char *  generator 
)
int localized_context_add_ignorepat2 ( struct ast_context con,
const char *  value,
const char *  registrar 
)
int localized_context_add_include2 ( struct ast_context con,
const char *  value,
const char *  registrar 
)
int localized_context_add_switch2 ( struct ast_context con,
const char *  value,
const char *  data,
int  eval,
const char *  registrar 
)
void localized_context_destroy ( struct ast_context con,
const char *  registrar 
)
struct ast_context* localized_context_find_or_create ( struct ast_context **  extcontexts,
void *  tab,
const char *  name,
const char *  registrar 
)
Version
1.6.1 added tab parameter
1.6.1 renamed function from localized_context_create to localized_context_find_or_create
int localized_context_verify_includes ( struct ast_context con)
struct ast_exten* localized_find_extension ( struct ast_context bypass,
struct pbx_find_info q,
const char *  context,
const char *  exten,
int  priority,
const char *  label,
const char *  callerid,
enum ext_match_t  action 
)
void localized_merge_contexts_and_delete ( struct ast_context **  extcontexts,
void *  tab,
const char *  registrar 
)
Version
1.6.1 added tab parameter
int localized_pbx_builtin_setvar ( struct ast_channel chan,
const void *  data 
)
int localized_pbx_load_module ( void  )

Referenced by check_goto(), and check_pval_item().

void localized_use_conf_dir ( void  )
void localized_use_local_dir ( void  )
struct ast_exten* localized_walk_context_extensions ( struct ast_context con,
struct ast_exten exten 
)
struct ast_include* localized_walk_context_includes ( struct ast_context con,
struct ast_include inc 
)
struct ast_sw* localized_walk_context_switches ( struct ast_context con,
struct ast_sw sw 
)
struct ast_context* localized_walk_contexts ( struct ast_context con)
struct ast_exten* localized_walk_extension_priorities ( struct ast_exten exten,
struct ast_exten priority 
)