24 #ifndef _ASTERISK_EXTCONF_H
25 #define _ASTERISK_EXTCONF_H
27 #if defined(__cplusplus) || defined(c_plusplus)
71 int max_include_level;
86 enum ast_xmldoc_src
docsrc;
100 const char *cidmatch;
107 void (*datad)(
void *);
108 struct ast_exten *
peer;
110 struct ast_exten *
next;
117 unsigned int monthmask;
118 unsigned int daymask;
119 unsigned int dowmask;
120 unsigned int minmask[24];
126 const char *registrar;
136 const char *registrar;
146 const char *registrar;
147 struct ast_ignorepat *next;
148 const char pattern[0];
158 const char *registrar;
165 struct ast_config *localized_config_load(
const char *filename);
166 struct ast_config *localized_config_load_with_comments(
const char *filename);
168 int localized_config_text_file_save(
const char *configfile,
const struct ast_config *cfg,
const char *generator);
179 void localized_context_destroy(
struct ast_context *con,
const char *registrar);
180 int localized_pbx_load_module(
void);
187 int localized_pbx_builtin_setvar(
struct ast_channel *chan,
const void *data);
188 int localized_context_add_ignorepat2(
struct ast_context *con,
const char *value,
const char *registrar);
189 int localized_context_add_switch2(
struct ast_context *con,
const char *value,
190 const char *data,
int eval,
const char *registrar);
191 int localized_context_add_include2(
struct ast_context *con,
const char *value,
192 const char *registrar);
193 int localized_add_extension2(
struct ast_context *con,
194 int replace,
const char *
extension,
int priority,
const char *label,
const char *callerid,
195 const char *application,
void *data,
void (*datad)(
void *),
196 const char *registrar);
202 int localized_context_verify_includes(
struct ast_context *con);
203 void localized_use_conf_dir(
void);
204 void localized_use_local_dir(
void);
207 #ifndef _ASTERISK_PBX_H
223 #define AST_PBX_MAX_STACK 128
225 #define AST_PBX_MAX_STACK 512
236 char *incstack[AST_PBX_MAX_STACK];
241 const char *foundcontext;
244 #define STATUS_NO_CONTEXT 1
245 #define STATUS_NO_EXTENSION 2
246 #define STATUS_NO_PRIORITY 3
247 #define STATUS_NO_LABEL 4
248 #define STATUS_SUCCESS 5
258 const char *callerid,
262 #if defined(__cplusplus) || defined(c_plusplus)
ast_include: include= support in extensions.conf
struct ast_variable * next
struct ast_category * next
const ast_string_field description
Main Channel structure associated with a channel.
ast_extension_states
Extension states.
ast_exten: An extension The dialplan is saved as a linked list with each context having it's own link...
struct ast_context * localized_context_find_or_create(struct ast_context **extcontexts, void *tab, const char *name, const char *registrar)
struct ast_include * next
const ast_string_field synopsis
Structure for variables, used for configurations and for channel variables.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
struct ast_context * next
struct ast_category * last
ast_sw: Switch statement in extensions.conf
void localized_merge_contexts_and_delete(struct ast_context **extcontexts, void *tab, const char *registrar)
#define AST_STRING_FIELD(name)
Declare a string field.
structure to hold extensions
struct ast_variable * root
char stuff[0]
Contents of file, name, and value in that order stuffed here.
struct ast_category * last_browse
#define AST_LIST_HEAD_NOLOCK(name, type)
Defines a structure to be used to hold a list of specified type (with no lock).
const ast_string_field syntax
ast_ignorepat: Ignore patterns in dial plan
const ast_string_field name
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
struct ast_variable * last
Structure for rwlock and tracking information.
ast_app: A registered application
const ast_string_field seealso
struct ast_category * root
int(* ast_state_cb_type)(const char *context, const char *exten, struct ast_state_cb_info *info, void *data)
Typedef for devicestate and hint callbacks.
ast_context: An extension context
char exten[AST_MAX_EXTENSION]
const ast_string_field arguments