|
Asterisk - The Open Source Telephony Project GIT-master-6144b6b
|
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 *) |
| void | pbx_extension_state_autohint_remove (struct ast_context *context, unsigned int forced) |
| void | pbx_extension_state_autohint_set (struct ast_context *context) |
| void | pbx_extension_state_hint_remove (struct ast_exten *exten, struct ast_context *context) |
| void | pbx_extension_state_hint_set (struct ast_exten *exten, struct ast_context *context) |
| 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 76 of file pbx_private.h.
| const char * app_name | ( | struct ast_app * | app | ) |
pbx_app.c functions needed by pbx.c
Definition at line 475 of file pbx_app.c.
References app.
Referenced by __stasis_app_register(), app_exec(), app_handle_subscriptions(), app_subscribe(), app_unsubscribe(), application_tuple_alloc(), ari_conf_get_owc_for_app(), ari_websocket_process_request(), ari_websocket_send_event(), ast_ari_callback(), ast_ari_close_per_call_websocket(), ast_ari_create_per_call_websocket(), 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(), 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(), send_broadcast_event(), send_rest_response(), session_find_by_app(), session_register_apps(), session_send_app_event(), session_send_or_queue(), session_unregister_app_cb(), stasis_app_claim_channel(), 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, registrar, ast_ignorepat::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, registrar, ast_include::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().
| void pbx_extension_state_autohint_remove | ( | struct ast_context * | context, |
| unsigned int | forced | ||
| ) |
Definition at line 133 of file extension_state_autohints.c.
References ast_context_destroy_by_name(), ast_get_context_name(), ast_mutex_lock, ast_mutex_unlock, ast_unlock_contexts(), AST_VECTOR_ELEM_CLEANUP_NOOP, AST_VECTOR_ELEM_DEFAULT_CMP, AST_VECTOR_REMOVE_CMP_UNORDERED, AST_VECTOR_SIZE, ast_wrlock_contexts(), AUTOHINT_CMP_CONTEXT_NAME, autohints_subscription, extension_state_autohints, extension_state_autohints_lock, registrar, and stasis_unsubscribe().
Referenced by __ast_internal_context_destroy(), ast_context_set_autohints(), and context_promote().
| void pbx_extension_state_autohint_set | ( | struct ast_context * | context | ) |
extension_state_autohints.c functions needed by pbx.c
Definition at line 113 of file extension_state_autohints.c.
References ast_device_state_topic_all(), ast_get_context_name(), ast_mutex_lock, ast_mutex_unlock, ast_rdlock_contexts(), ast_unlock_contexts(), AST_VECTOR_APPEND, AST_VECTOR_ELEM_CLEANUP_NOOP, AST_VECTOR_REMOVE_CMP_UNORDERED, AST_VECTOR_SIZE, AUTOHINT_CMP_CONTEXT_NAME, autohints_subscription, extension_state_autohints, extension_state_autohints_device_state_cb(), extension_state_autohints_lock, NULL, and stasis_subscribe.
Referenced by ast_context_set_autohints(), context_merge(), and context_promote().
| void pbx_extension_state_hint_remove | ( | struct ast_exten * | exten, |
| struct ast_context * | context | ||
| ) |
Definition at line 1269 of file extension_state.c.
References ao2_cleanup, ao2_find, ao2_lock, ao2_ref, ao2_unlink_flags, ao2_unlock, ast_get_context_name(), ast_get_extension_name(), AST_MAX_CONTEXT, AST_MAX_EXTENSION, extension_state_shutdown(), extension_states, OBJ_NOLOCK, and OBJ_SEARCH_KEY.
Referenced by ast_change_hint(), and ast_remove_hint().
| void pbx_extension_state_hint_set | ( | struct ast_exten * | exten, |
| struct ast_context * | context | ||
| ) |
extension_state.c functions needed by pbx.c
Definition at line 1239 of file extension_state.c.
References ao2_find, ao2_link_flags, ao2_lock, ao2_ref, ao2_unlock, ast_get_context_name(), ast_get_extension_name(), ast_log, AST_MAX_CONTEXT, AST_MAX_EXTENSION, extension_state_alloc(), extension_state_update_sources(), extension_states, LOG_WARNING, OBJ_NOLOCK, and OBJ_SEARCH_KEY.
Referenced by ast_add_hint(), ast_change_hint(), and context_promote().
| 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(), 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 2432 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_lock, ast_channel_priority(), ast_channel_unlock, ast_datastore_alloc, ast_datastore_free(), ast_string_field_set, pbx_exception::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 2824 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, registrar, ast_sw::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 4523 of file pbx.c.
References app, 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 6514 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().