Asterisk - The Open Source Telephony Project
18.5.0
|
Private include file for pbx. More...
Go to the source code of this file.
Macros | |
#define | VAR_BUF_SIZE 4096 |
Functions | |
const char * | app_name (struct ast_app *app) |
AST_VECTOR (ast_ignorepats, struct ast_ignorepat *) | |
AST_VECTOR (ast_includes, struct ast_include *) | |
AST_VECTOR (ast_sws, struct ast_sw *) | |
struct ast_ignorepat * | ignorepat_alloc (const char *value, const char *registrar) |
void | ignorepat_free (struct ast_ignorepat *ip) |
struct ast_include * | include_alloc (const char *value, const char *registrar) |
void | include_free (struct ast_include *inc) |
const char * | include_rname (const struct ast_include *inc) |
int | include_valid (const struct ast_include *inc) |
int | indicate_busy (struct ast_channel *, const char *) |
int | indicate_congestion (struct ast_channel *, const char *) |
struct ast_switch * | pbx_findswitch (const char *sw) |
int | raise_exception (struct ast_channel *chan, const char *reason, int priority) |
void | set_ext_pri (struct ast_channel *c, const char *exten, int pri) |
struct ast_sw * | sw_alloc (const char *value, const char *data, int eval, const char *registrar) |
void | sw_free (struct ast_sw *sw) |
void | unreference_cached_app (struct ast_app *app) |
void | wait_for_hangup (struct ast_channel *chan, const void *data) |
Private include file for pbx.
Definition in file pbx_private.h.
#define VAR_BUF_SIZE 4096 |
Definition at line 68 of file pbx_private.h.
Referenced by ast_add_extension2_lockopt(), ast_func_read2(), pbx_builtin_importvar(), and pbx_substitute_variables_helper_full().
const char* app_name | ( | struct ast_app * | app | ) |
pbx_app.c functions needed by pbx.c
Definition at line 463 of file pbx_app.c.
Referenced by _ast_bridge_channel_unlock(), app_exec(), app_subscribe(), app_unsubscribe(), ast_ari_callback(), AST_TEST_DEFINE(), bridge_stasis_run_cb(), lua_pbx_exec(), lua_pbx_findapp(), pbx_extension_helper(), and stasis_app_set_global_debug().
AST_VECTOR | ( | ast_ignorepats | , |
struct ast_ignorepat * | |||
) |
AST_VECTOR | ( | ast_includes | , |
struct ast_include * | |||
) |
AST_VECTOR | ( | ast_sws | , |
struct ast_sw * | |||
) |
struct ast_ignorepat* ignorepat_alloc | ( | const char * | value, |
const char * | registrar | ||
) |
Definition at line 52 of file pbx_ignorepat.c.
References ast_calloc, NULL, ast_ignorepat::pattern, and ast_ignorepat::registrar.
Referenced by ast_context_add_ignorepat2().
void ignorepat_free | ( | struct ast_ignorepat * | ip | ) |
Definition at line 77 of file pbx_ignorepat.c.
References ast_free.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_ignorepat2(), and ast_context_remove_ignorepat2().
struct ast_include* include_alloc | ( | const char * | value, |
const char * | registrar | ||
) |
Allocate and initialize an ast_include.
Definition at line 74 of file pbx_include.c.
References ast_build_timing(), ast_calloc, c, ast_include::hastime, ast_include::name, NULL, ast_include::registrar, ast_include::rname, ast_include::stuff, and ast_include::timing.
Referenced by ast_context_add_include2().
void include_free | ( | struct ast_include * | inc | ) |
Free an ast_include and associated data.
Definition at line 106 of file pbx_include.c.
References ast_destroy_timing(), ast_free, and ast_include::timing.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_include2(), and ast_context_remove_include2().
const char* include_rname | ( | const struct ast_include * | inc | ) |
Definition at line 55 of file pbx_include.c.
References NULL, and ast_include::rname.
Referenced by ast_context_verify_includes(), and pbx_find_extension().
int include_valid | ( | const struct ast_include * | inc | ) |
Definition at line 65 of file pbx_include.c.
References ast_check_timing(), ast_include::hastime, and ast_include::timing.
Referenced by pbx_find_extension().
struct ast_switch* pbx_findswitch | ( | const char * | sw | ) |
pbx_switch.c functions needed by pbx.c
Definition at line 40 of file pbx_switch.c.
References AST_RWLIST_RDLOCK, AST_RWLIST_TRAVERSE, AST_RWLIST_UNLOCK, ast_switch::list, and ast_switch::name.
Referenced by ast_check_timing(), and pbx_find_extension().
int raise_exception | ( | struct ast_channel * | chan, |
const char * | reason, | ||
int | priority | ||
) |
pbx.c functions needed by pbx_builtins.c
Definition at line 2806 of file pbx.c.
References ast_calloc_with_stringfields, ast_channel_context(), ast_channel_datastore_add(), ast_channel_datastore_find(), ast_channel_exten(), ast_channel_priority(), ast_datastore_alloc, ast_datastore_free(), ast_string_field_set, ast_datastore::data, ast_exten::exten, NULL, pbx_exception::priority, and set_ext_pri().
Referenced by __ast_pbx_run(), pbx_builtin_raise_exception(), and pbx_builtin_waitexten().
void set_ext_pri | ( | struct ast_channel * | c, |
const char * | exten, | ||
int | pri | ||
) |
helper function to set extension and priority
Definition at line 4268 of file pbx.c.
References ast_channel_exten_set(), ast_channel_lock, ast_channel_priority_set(), and ast_channel_unlock.
Referenced by __ast_pbx_run(), pbx_builtin_waitexten(), and raise_exception().
struct ast_sw* sw_alloc | ( | const char * | value, |
const char * | data, | ||
int | eval, | ||
const char * | registrar | ||
) |
Definition at line 68 of file pbx_sw.c.
References ast_calloc, ast_sw::data, ast_sw::eval, ast_sw::name, NULL, ast_sw::registrar, and ast_sw::stuff.
Referenced by ast_context_add_switch2().
void sw_free | ( | struct ast_sw * | sw | ) |
Definition at line 101 of file pbx_sw.c.
References ast_free.
Referenced by __ast_context_destroy(), __ast_internal_context_destroy(), ast_context_add_switch2(), and ast_context_remove_switch2().
void unreference_cached_app | ( | struct ast_app * | app | ) |
pbx.c function needed by pbx_app.c
Definition at line 6179 of file pbx.c.
References ast_rdlock_contexts(), ast_unlock_contexts(), ast_walk_context_extensions(), ast_walk_contexts(), ast_walk_extension_priorities(), and NULL.
Referenced by ast_unregister_application().
void wait_for_hangup | ( | struct ast_channel * | chan, |
const void * | data | ||
) |
Definition at line 8267 of file pbx.c.
References ast_frfree, ast_read(), ast_safe_sleep(), ast_strlen_zero, and ast_waitfor().
Referenced by indicate_busy(), and indicate_congestion().