Thu Apr 8 01:22:31 2010

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

Defines

#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, 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@digium.com>

Definition in file extconf.h.


Define Documentation

#define AST_PBX_MAX_STACK   128

Definition at line 217 of file extconf.h.

#define STATUS_NO_CONTEXT   1

Definition at line 235 of file extconf.h.

#define STATUS_NO_EXTENSION   2

Definition at line 236 of file extconf.h.

#define STATUS_NO_LABEL   4

Definition at line 238 of file extconf.h.

#define STATUS_NO_PRIORITY   3

Definition at line 237 of file extconf.h.

#define STATUS_SUCCESS   5

Definition at line 239 of file extconf.h.


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 209 of file extconf.h.

00209                  {
00210    E_MATCHMORE =  0x00, /* extension can match but only with more 'digits' */
00211    E_CANMATCH =   0x01, /* extension can match with or without more 'digits' */
00212    E_MATCH =   0x02, /* extension is an exact match */
00213    E_MATCH_MASK = 0x03, /* mask for the argument to extension_match_core() */
00214    E_SPAWN =   0x12, /* want to spawn an extension. Requires exact match */
00215    E_FINDLABEL =  0x22  /* returns the priority for a given label. Requires exact match */
00216 };


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 
) [read]
struct ast_config* localized_config_load ( const char *  filename  )  [read]
struct ast_config* localized_config_load_with_comments ( const char *  filename  )  [read]
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 
) [read]
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 
) [read]
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,
void *  data 
)
int localized_pbx_load_module ( void   ) 
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 
) [read]
struct ast_include* localized_walk_context_includes ( struct ast_context con,
struct ast_include inc 
) [read]
struct ast_sw* localized_walk_context_switches ( struct ast_context con,
struct ast_sw sw 
) [read]
struct ast_context* localized_walk_contexts ( struct ast_context con  )  [read]
struct ast_exten* localized_walk_extension_priorities ( struct ast_exten exten,
struct ast_exten priority 
) [read]

Generated on 8 Apr 2010 for Asterisk - the Open Source PBX by  doxygen 1.6.1