Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
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.
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.
References app.
Referenced by __stasis_app_register(), app_exec(), app_handle_subscriptions(), app_subscribe(), app_unsubscribe(), application_tuple_alloc(), ast_ari_callback(), ast_bridge_channel_queue_app(), ast_bridge_channel_run_app(), ast_bridge_channel_write_app(), ast_json_dialplan_cep_app(), ast_pbx_exec_application(), AST_TEST_DEFINE(), bridge_stasis_run_cb(), device_state_subscription_create(), device_to_json_cb(), dynamic_dtmf_hook_add(), find_app_by_name(), handle_exec(), is_app_subscribed(), lua_pbx_exec(), lua_pbx_findapp(), messaging_app_subscribe_endpoint(), messaging_app_unsubscribe_endpoint(), payload_helper_app(), pbx_extension_helper(), run_app_helper(), stasis_app_control_move(), stasis_app_event_allowed(), stasis_app_exec(), stasis_app_get_debug_by_name(), stasis_app_message_handler(), stasis_app_register(), stasis_app_register_all(), stasis_app_send(), stasis_app_set_debug_by_name(), stasis_app_set_global_debug(), stasis_app_subscribe(), stasis_app_subscribe_channel(), stasis_app_to_json(), stasis_app_unregister(), stasis_app_unsubscribe(), and stasis_app_user_event().
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, ast_ignorepat::registrar, registrar, and value.
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, registrar, ast_include::rname, ast_include::stuff, ast_include::timing, and value.
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 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, voicemailpwcheck::context, ast_datastore::data, exception_store_info, pbx_exception::exten, NULL, priority, pbx_exception::priority, pbx_exception::reason, 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 4264 of file pbx.c.
References ast_channel_exten_set(), ast_channel_lock, ast_channel_priority_set(), ast_channel_unlock, c, and ast_exten::exten.
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, registrar, ast_sw::stuff, and value.
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 6130 of file pbx.c.
References app, ast_rdlock_contexts(), ast_unlock_contexts(), ast_walk_context_extensions(), ast_walk_contexts(), ast_walk_extension_priorities(), voicemailpwcheck::context, and NULL.
Referenced by ast_unregister_application().
void wait_for_hangup | ( | struct ast_channel * | chan, |
const void * | data | ||
) |
Definition at line 8228 of file pbx.c.
References ast_frfree, ast_read(), ast_safe_sleep_without_silence(), ast_strlen_zero(), ast_waitfor(), and ast_frame::data.
Referenced by indicate_busy(), and indicate_congestion().