Asterisk - The Open Source Telephony Project
18.5.0
|
#include "asterisk.h"
#include "asterisk/paths.h"
#include <locale.h>
#include <ctype.h>
#include <err.h>
#include <regex.h>
#include "asterisk/pbx.h"
#include "asterisk/ast_expr.h"
#include "asterisk/channel.h"
#include "asterisk/chanvars.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
#include "asterisk/config.h"
#include "asterisk/options.h"
#include "asterisk/callerid.h"
#include "asterisk/lock.h"
#include "asterisk/hashtab.h"
#include "asterisk/ael_structs.h"
#include "asterisk/devicestate.h"
#include "asterisk/stringfields.h"
#include "asterisk/pval.h"
#include "asterisk/extconf.h"
Go to the source code of this file.
Data Structures | |
struct | ast_app |
ast_app: A registered application More... | |
struct | ast_context |
ast_context: An extension context - must remain in sync with fake_context More... | |
struct | ast_exten |
ast_exten: An extension The dialplan is saved as a linked list with each context having it's own linked list of extensions - one item per priority. More... | |
struct | ast_hint |
Structure for dial plan hints. More... | |
struct | ast_ignorepat |
ast_ignorepat: Ignore patterns in dial plan More... | |
struct | ast_include |
ast_include: include= support in extensions.conf More... | |
struct | ast_state_cb |
ast_state_cb: An extension state notify register item More... | |
struct | ast_sw |
ast_sw: Switch statement in extensions.conf More... | |
struct | profile_data |
struct | profile_entry |
struct | store_hint |
struct | store_hints |
Macros | |
#define | ASTMM_LIBC ASTMM_IGNORE |
#define | BACKGROUND_MATCHEXTEN (1 << 2) |
#define | BACKGROUND_NOANSWER (1 << 1) |
#define | BACKGROUND_PLAYBACK (1 << 3) |
#define | BACKGROUND_SKIP (1 << 0) |
#define | EXT_DATA_SIZE 8192 |
#define | STATUS_NO_CONTEXT 1 |
#define | STATUS_NO_EXTENSION 2 |
#define | STATUS_NO_LABEL 4 |
#define | STATUS_NO_PRIORITY 3 |
#define | STATUS_SUCCESS 5 |
#define | SWITCH_DATA_LENGTH 256 |
#define | VAR_BUF_SIZE 4096 |
#define | VAR_HARDTRAN 3 |
#define | VAR_NORMAL 1 |
#define | VAR_SOFTTRAN 2 |
Functions | |
int | __ast_bt_get_addresses (struct ast_bt *bt) |
struct ast_vector_string * | __ast_bt_get_symbols (void **addresses, size_t num_frames) |
void | __ast_cli_register_multiple (void) |
int | all_bits_set (unsigned int *word, int bitsperword, int totalbits) |
int | ast_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, const char *registrar_file, int registrar_line) |
Add an extension to an extension context, this time with an ast_context *. More... | |
int | ast_add_profile (const char *x, uint64_t scale) |
support for event profiling More... | |
void | ast_cli_unregister_multiple (void) |
int | ast_context_add_ignorepat2 (struct ast_context *con, const char *value, const char *registrar) |
int | ast_context_add_include2 (struct ast_context *con, const char *value, const char *registrar) |
Add a context include. More... | |
int | ast_context_add_switch2 (struct ast_context *con, const char *value, const char *data, int eval, const char *registrar) |
Adds a switch (first param is a ast_context) More... | |
void | ast_context_destroy (struct ast_context *con, const char *registrar) |
Destroy a context (matches the specified context or ANY context if NULL) More... | |
struct ast_context * | ast_context_find_or_create (struct ast_context **extcontexts, struct ast_hashtab *exttable, const char *name, const char *registrar) |
Register a new context or find an existing one. More... | |
int | ast_context_verify_includes (struct ast_context *con) |
Verifies includes in an ast_contect structure. More... | |
struct ast_custom_function * | ast_custom_function_find (const char *name) |
const char * | ast_get_context_name (struct ast_context *con) |
int | ast_hashtab_compare_contexts (const void *ah_a, const void *ah_b) |
hashtable functions for contexts More... | |
unsigned int | ast_hashtab_hash_contexts (const void *obj) |
void | ast_log (int level, const char *file, int line, const char *function, const char *fmt,...) |
Used for sending a log message This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(AST_LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?\n", "flux capacitor", 10); where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. These are implemented as macros, that will provide the function with the needed arguments. More... | |
void | ast_mark_lock_acquired (void *lock_addr) |
Mark the last lock as acquired. More... | |
void | ast_merge_contexts_and_delete (struct ast_context **extcontexts, struct ast_hashtab *exttable, const char *registrar) |
Merge the temporary contexts into a global contexts list and delete from the global list the ones that are being added. More... | |
void | ast_module_register (const struct ast_module_info *x) |
void | ast_module_unregister (const struct ast_module_info *x) |
void | ast_remove_lock_info (void *lock_addr, struct ast_bt *bt) |
remove lock info for the current thread More... | |
void | ast_restore_lock_info (void *lock_addr) |
void | ast_store_lock_info (enum ast_lock_type type, const char *filename, int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt) |
Store lock info for the current thread. More... | |
void | ast_suspend_lock_info (void *lock_addr) |
struct ast_exten * | ast_walk_context_extensions (struct ast_context *con, struct ast_exten *exten) |
const struct ast_include * | ast_walk_context_includes (const struct ast_context *con, const struct ast_include *inc) |
struct ast_context * | ast_walk_contexts (struct ast_context *con) |
static int | bit_at (unsigned int *word, int bitsperword, int bitnum) |
void | get_start_stop (unsigned int *word, int bitsperword, int totalbits, int *start, int *end) |
int | main (int argc, char **argv) |
int | pbx_builtin_setvar (struct ast_channel *chan, const char *data) |
Parse and set a single channel variable, where the name and value are separated with an '=' character. More... | |
struct ast_exten * | pbx_find_extension (struct ast_channel *chan, 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 | pbx_substitute_variables_helper (struct ast_channel *c, const char *cp1, char *cp2, int count) |
Variables | |
const char * | ast_config_AST_CONFIG_DIR = "/etc/asterisk" |
char * | config = "extensions.conf" |
struct ast_context * | contexts |
char * | days [] |
struct ast_context * | local_contexts |
char * | months [] |
int | option_debug = 0 |
int | option_verbose = 0 |
#define ASTMM_LIBC ASTMM_IGNORE |
Definition at line 30 of file conf2ael.c.
#define BACKGROUND_MATCHEXTEN (1 << 2) |
Definition at line 117 of file conf2ael.c.
#define BACKGROUND_NOANSWER (1 << 1) |
Definition at line 116 of file conf2ael.c.
#define BACKGROUND_PLAYBACK (1 << 3) |
Definition at line 118 of file conf2ael.c.
#define BACKGROUND_SKIP (1 << 0) |
Definition at line 115 of file conf2ael.c.
#define EXT_DATA_SIZE 8192 |
Definition at line 104 of file conf2ael.c.
#define STATUS_NO_CONTEXT 1 |
Definition at line 229 of file conf2ael.c.
#define STATUS_NO_EXTENSION 2 |
Definition at line 230 of file conf2ael.c.
#define STATUS_NO_LABEL 4 |
Definition at line 232 of file conf2ael.c.
#define STATUS_NO_PRIORITY 3 |
Definition at line 231 of file conf2ael.c.
#define STATUS_SUCCESS 5 |
Definition at line 233 of file conf2ael.c.
#define SWITCH_DATA_LENGTH 256 |
Definition at line 107 of file conf2ael.c.
#define VAR_BUF_SIZE 4096 |
Definition at line 109 of file conf2ael.c.
#define VAR_HARDTRAN 3 |
Definition at line 113 of file conf2ael.c.
#define VAR_NORMAL 1 |
Definition at line 111 of file conf2ael.c.
#define VAR_SOFTTRAN 2 |
Definition at line 112 of file conf2ael.c.
int __ast_bt_get_addresses | ( | struct ast_bt * | bt | ) |
Definition at line 713 of file conf2ael.c.
struct ast_vector_string* __ast_bt_get_symbols | ( | void ** | addresses, |
size_t | num_frames | ||
) |
Definition at line 718 of file conf2ael.c.
References NULL.
void __ast_cli_register_multiple | ( | void | ) |
int all_bits_set | ( | unsigned int * | word, |
int | bitsperword, | ||
int | totalbits | ||
) |
int ast_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, | ||
const char * | registrar_file, | ||
int | registrar_line | ||
) |
Add an extension to an extension context, this time with an ast_context *.
registrar_file | optional configuration file that defines this extension |
registrar_line | optional line number of configuration file that defines extension |
Add an extension to an extension context, this time with an ast_context *.
We sort extensions in order of matching preference, so that we can stop the search as soon as we find a suitable match. This ordering also takes care of wildcards such as '.' (meaning "one or more of any character") and '!' (which is 'earlymatch', meaning "zero or more of any character" but also impacts the return value from CANMATCH and EARLYMATCH.
The extension match rules defined in the devmeeting 2006.05.05 are quite simple: WE SELECT THE LONGEST MATCH. In detail, "longest" means the number of matched characters in the extension. In case of ties (e.g. _XXX and 333) in the length of a pattern, we give priority to entries with the smallest cardinality (e.g, [5-9] comes before [2-8] before the former has only 5 elements, while the latter has 7, etc. In case of same cardinality, the first element in the range counts. If we still have a tie, any final '!' will make this as a possibly less specific pattern.
EBUSY - can't lock EEXIST - extension with the same priority exist and no replace is set
Definition at line 562 of file conf2ael.c.
References ast_exten::datad, and localized_add_extension2().
Referenced by add_extensions(), lua_register_hints(), manager_dialplan_extension_add(), pbx_load_config(), and pbx_load_users().
int ast_add_profile | ( | const char * | x, |
uint64_t | scale | ||
) |
support for event profiling
(note, this must be documented a lot more) ast_add_profile allocates a generic 'counter' with a given name, which can be shown with the command 'core show profile <name>'
The counter accumulates positive or negative values supplied by
support for event profiling
Definition at line 82 of file conf2ael.c.
References ast_log(), make_ari_stubs::file, and format.
Referenced by ao2_weakproxy_unsubscribe(), and extension_match_core().
void ast_cli_unregister_multiple | ( | void | ) |
Definition at line 613 of file conf2ael.c.
References ast_walk_contexts().
Referenced by ast_module_unregister().
int ast_context_add_ignorepat2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Definition at line 570 of file conf2ael.c.
References localized_context_add_ignorepat2().
Referenced by ast_compile_ael2(), and pbx_load_config().
int ast_context_add_include2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | registrar | ||
) |
Add a context include.
con | context to add the include to |
value | include value to add |
registrar | who registered the context |
Adds an include taking a struct ast_context as the first parameter
0 | on success |
-1 | on failure |
Definition at line 583 of file conf2ael.c.
References localized_context_add_include2().
Referenced by ast_compile_ael2(), and pbx_load_config().
int ast_context_add_switch2 | ( | struct ast_context * | con, |
const char * | value, | ||
const char * | data, | ||
int | eval, | ||
const char * | registrar | ||
) |
Adds a switch (first param is a ast_context)
Definition at line 576 of file conf2ael.c.
References localized_context_add_switch2().
Referenced by ast_compile_ael2(), lua_register_switches(), and pbx_load_config().
void ast_context_destroy | ( | struct ast_context * | con, |
const char * | registrar | ||
) |
Destroy a context (matches the specified context or ANY context if NULL)
con | context to destroy |
registrar | who registered it |
You can optionally leave out either parameter. It will find it based on either the ast_context or the registrar name.
Definition at line 625 of file conf2ael.c.
References ast_context_verify_includes(), and localized_context_destroy().
Referenced by AST_TEST_DEFINE(), ast_walk_contexts(), parking_lot_cfg_remove_extensions(), remove_all_configured_parking_lot_extensions(), remove_pending_parking_lot_extensions(), sla_destroy(), and unload_module().
struct ast_context* ast_context_find_or_create | ( | struct ast_context ** | extcontexts, |
struct ast_hashtab * | exttable, | ||
const char * | name, | ||
const char * | registrar | ||
) |
Register a new context or find an existing one.
extcontexts | pointer to the ast_context structure pointer |
exttable | pointer to the hashtable that contains all the elements in extcontexts |
name | name of the new context |
registrar | registrar of the context |
This function allows you to play in two environments: the global contexts (active dialplan) or an external context set of your choosing. To act on the external set, make sure extcontexts and exttable are set; for the globals, make sure both extcontexts and exttable are NULL.
This will first search for a context with your name. If it exists already, it will not create a new one. If it does not exist, it will create a new one with the given name and registrar.
Definition at line 590 of file conf2ael.c.
References __ast_cli_register_multiple(), and localized_context_find_or_create().
Referenced by add_hints(), app_create(), ast_compile_ael2(), ast_sip_persistent_endpoint_add_to_regcontext(), AST_TEST_DEFINE(), config_parse_variables(), create_test_dialplan(), handle_cli_dialplan_add_extension(), handle_cli_dialplan_add_include(), load_module(), lua_register_hints(), lua_register_switches(), manager_dialplan_extension_add(), parking_duration_callback(), parking_lot_cfg_create_extensions(), pbx_load_config(), pbx_load_users(), reload_config(), set_config(), sla_build_station(), and sla_build_trunk().
int ast_context_verify_includes | ( | struct ast_context * | con | ) |
Verifies includes in an ast_contect structure.
con | context in which to verify the includes |
0 | if no problems found |
-1 | if there were any missing context |
Definition at line 632 of file conf2ael.c.
References ast_merge_contexts_and_delete(), and localized_context_verify_includes().
Referenced by ast_context_destroy(), and pbx_load_module().
struct ast_custom_function* ast_custom_function_find | ( | const char * | name | ) |
Definition at line 242 of file conf2ael.c.
References events, ast_exten::name, and value.
Referenced by ast_compile_ael2(), AST_TEST_DEFINE(), chanavail_exec(), config_curl(), destroy_curl(), op_func(), realtime_curl(), realtime_multi_curl(), require_curl(), store_curl(), update2_curl(), and update_curl().
const char* ast_get_context_name | ( | struct ast_context * | con | ) |
Definition at line 645 of file conf2ael.c.
References ast_walk_context_extensions(), ast_exten::exten, ast_context::name, and NULL.
Referenced by _macro_exec(), add_extension(), ast_compile_ael2(), ast_merge_contexts_and_delete(), complete_dialplan_add_extension(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_context(), complete_dialplan_remove_extension(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), dundi_precache_full(), extension_is_compatible(), find_matching_endif(), find_matching_endwhile(), find_matching_priority(), and handle_cli_dialplan_save().
int ast_hashtab_compare_contexts | ( | const void * | ah_a, |
const void * | ah_b | ||
) |
hashtable functions for contexts
Definition at line 687 of file conf2ael.c.
References ast_hashtab_hash_contexts().
Referenced by lua_register_hints(), lua_register_switches(), pbx_find_extension(), and pbx_load_module().
unsigned int ast_hashtab_hash_contexts | ( | const void * | obj | ) |
Definition at line 694 of file conf2ael.c.
Referenced by ast_hashtab_compare_contexts(), lua_register_hints(), lua_register_switches(), and pbx_load_module().
void ast_log | ( | int | level, |
const char * | file, | ||
int | line, | ||
const char * | function, | ||
const char * | fmt, | ||
... | |||
) |
Used for sending a log message This is the standard logger function. Probably the only way you will invoke it would be something like this: ast_log(AST_LOG_WHATEVER, "Problem with the %s Captain. We should get some more. Will %d be enough?\n", "flux capacitor", 10); where WHATEVER is one of ERROR, DEBUG, EVENT, NOTICE, or WARNING depending on which log you wish to output to. These are implemented as macros, that will provide the function with the needed arguments.
level | Type of log event |
file | Will be provided by the AST_LOG_* macro |
line | Will be provided by the AST_LOG_* macro |
function | Will be provided by the AST_LOG_* macro |
fmt | This is what is important. The format is the same as your favorite breed of printf. You know how that works, right? :-) |
Definition at line 86 of file conf2ael.c.
Referenced by ast_add_profile(), and main().
void ast_mark_lock_acquired | ( | void * | lock_addr | ) |
Mark the last lock as acquired.
Definition at line 700 of file conf2ael.c.
Referenced by __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), and __ast_rwlock_wrlock().
void ast_merge_contexts_and_delete | ( | struct ast_context ** | extcontexts, |
struct ast_hashtab * | exttable, | ||
const char * | registrar | ||
) |
Merge the temporary contexts into a global contexts list and delete from the global list the ones that are being added.
extcontexts | pointer to the ast_context structure |
exttable | pointer to the ast_hashtab structure that contains all the elements in extcontexts |
registrar | of the context; if it's set the routine will delete all contexts that belong to that registrar; if NULL only the contexts that are specified in extcontexts |
Definition at line 639 of file conf2ael.c.
References ast_get_context_name(), and localized_merge_contexts_and_delete().
Referenced by ast_context_verify_includes(), lua_reload_extensions(), and pbx_load_module().
void ast_module_register | ( | const struct ast_module_info * | x | ) |
Definition at line 603 of file conf2ael.c.
void ast_module_unregister | ( | const struct ast_module_info * | x | ) |
void ast_remove_lock_info | ( | void * | lock_addr, |
struct ast_bt * | bt | ||
) |
remove lock info for the current thread
this gets called by ast_mutex_unlock so that information on the lock can be removed from the current thread's lock info struct.
Definition at line 703 of file conf2ael.c.
Referenced by __ast_pthread_mutex_lock(), __ast_pthread_mutex_unlock(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_unlock(), and __ast_rwlock_wrlock().
void ast_restore_lock_info | ( | void * | lock_addr | ) |
Definition at line 726 of file conf2ael.c.
Referenced by __ast_cond_timedwait(), and __ast_cond_wait().
void ast_store_lock_info | ( | enum ast_lock_type | type, |
const char * | filename, | ||
int | line_num, | ||
const char * | func, | ||
const char * | lock_name, | ||
void * | lock_addr, | ||
struct ast_bt * | bt | ||
) |
Store lock info for the current thread.
This function gets called in ast_mutex_lock() and ast_mutex_trylock() so that information about this lock can be stored in this thread's lock info struct. The lock is marked as pending as the thread is waiting on the lock. ast_mark_lock_acquired() will mark it as held by this thread.
Definition at line 707 of file conf2ael.c.
Referenced by __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), and __ast_rwlock_wrlock().
void ast_suspend_lock_info | ( | void * | lock_addr | ) |
Definition at line 723 of file conf2ael.c.
Referenced by __ast_cond_timedwait(), and __ast_cond_wait().
struct ast_exten* ast_walk_context_extensions | ( | struct ast_context * | con, |
struct ast_exten * | exten | ||
) |
Definition at line 651 of file conf2ael.c.
References ast_walk_context_includes(), and NULL.
Referenced by ast_get_context_name(), complete_dialplan_remove_extension(), context_used(), dundi_precache_full(), find_matching_priority(), and handle_cli_dialplan_save().
const struct ast_include* ast_walk_context_includes | ( | const struct ast_context * | con, |
const struct ast_include * | inc | ||
) |
Definition at line 657 of file conf2ael.c.
References context, NULL, and pbx_find_extension().
Referenced by ast_walk_context_extensions().
struct ast_context* ast_walk_contexts | ( | struct ast_context * | con | ) |
Definition at line 618 of file conf2ael.c.
References ast_context_destroy(), localized_walk_contexts(), and ast_exten::registrar.
Referenced by _macro_exec(), ast_cli_unregister_multiple(), complete_dialplan_add_extension(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_context(), complete_dialplan_remove_extension(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), dundi_precache_full(), find_matching_endif(), find_matching_endwhile(), find_matching_priority(), handle_cli_dialplan_save(), and pbx_load_module().
|
static |
void get_start_stop | ( | unsigned int * | word, |
int | bitsperword, | ||
int | totalbits, | ||
int * | start, | ||
int * | end | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 305 of file conf2ael.c.
References ael2_print(), all_bits_set(), ast_context::alts, ast_exten::app, args, ast_config_AST_CONFIG_DIR, AST_LIST_FIRST, ast_log(), ast_strdup, config, ast_exten::data, ast_timing::daymask, days, ast_timing::dowmask, ast_exten::exten, free(), get_start_stop(), ast_include::hastime, ast_context::ignorepats, ast_context::includes, localized_pbx_load_module(), localized_use_conf_dir(), localized_walk_context_extensions(), localized_walk_context_switches(), localized_walk_contexts(), localized_walk_extension_priorities(), LOG_ERROR, min, ast_timing::minmask, ast_timing::monthmask, months, ast_sw::name, ast_include::name, ast_context::name, ast_include::next, ast_ignorepat::next, ast_ignorepat::pattern, ast_exten::peer, ast_exten::priority, PV_APPLICATION_CALL, PV_CONTEXT, PV_EXTENSION, PV_IGNOREPAT, PV_INCLUDES, PV_STATEMENTBLOCK, PV_SWITCHES, PV_WORD, pvalAppCallAddArg(), pvalAppCallSetAppName(), pvalContextAddStatement(), pvalContextSetName(), pvalCreateNode(), pvalExtenSetHints(), pvalExtenSetName(), pvalExtenSetStatement(), pvalIgnorePatSetPattern(), pvalIncludesAddInclude(), pvalIncludesAddIncludeWithTimeConstraints(), pvalStatementBlockAddStatement(), pvalSwitchesAddSwitch(), pvalTopLevAddObject(), pvalWordSetString(), strdup, ast_include::timing, and tmp().
int pbx_builtin_setvar | ( | struct ast_channel * | chan, |
const char * | data | ||
) |
Parse and set a single channel variable, where the name and value are separated with an '=' character.
Definition at line 546 of file conf2ael.c.
References c, localized_pbx_builtin_setvar(), and pbx_substitute_variables_helper().
Referenced by ast_compile_ael2().
struct ast_exten* pbx_find_extension | ( | struct ast_channel * | chan, |
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 | ||
) |
Definition at line 672 of file conf2ael.c.
References ast_hashtab_compare_contexts(), and localized_find_extension().
Referenced by add_extension(), ast_sip_persistent_endpoint_update_state(), ast_walk_context_includes(), check_goto(), check_pval_item(), check_retrieve_call_extensions(), conf_ended(), delete_extens(), get_extension_data(), parking_blind_transfer_park(), parking_duration_callback(), parking_is_exten_park(), parking_lot_cfg_create_extensions(), register_peer_exten(), and test_exten().
void pbx_substitute_variables_helper | ( | struct ast_channel * | c, |
const char * | cp1, | ||
char * | cp2, | ||
int | count | ||
) |
Definition at line 552 of file conf2ael.c.
References AST_MAX_EXTENSION.
Referenced by add_extensions(), ast_add_extension2_lockopt(), AST_TEST_DEFINE(), dtmf_store_framehook(), escape_and_substitute(), eval_exten_read(), function_eval(), get_mapping_weight(), import_helper(), launch_monitor_thread(), load_values_config(), manager_log(), pbx_builtin_importvar(), pbx_builtin_setvar(), pbx_extension_helper(), pbx_find_extension(), pbx_load_config(), realtime_exec(), rotate_file(), substituted(), test_chan_function(), test_chan_integer(), test_chan_integer_accessor(), test_chan_string(), test_chan_variable(), and write_cel().
const char* ast_config_AST_CONFIG_DIR = "/etc/asterisk" |
Definition at line 59 of file conf2ael.c.
Referenced by action_createconfig(), ast_module_reload(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), compile_script(), config_text_file_load(), delete_config_file(), handle_cli_dialplan_save(), handle_show_settings(), ices_exec(), launch_script(), lua_read_extensions_file(), main(), make_fn(), message_template_parse_filebody(), pbx_load_module(), set_fn(), setup_filestack(), while(), and write_config_file().
char* config = "extensions.conf" |
Definition at line 66 of file conf2ael.c.
Referenced by __ast_sorcery_apply_config(), ast_ari_asterisk_get_info(), ast_ari_websocket_session_create(), ast_cel_set_config(), ast_config_new(), AST_TEST_DEFINE(), ast_variable_append(), asterisk_publication_config_alloc(), asterisk_publication_config_destroy(), asterisk_publication_devicestate_state_change(), asterisk_publication_mwi_state_change(), asterisk_publication_new(), config_alloc(), config_can_be_inherited(), custom_log(), do_reload(), hep_queue_cb(), hepv3_config_alloc(), hepv3_config_dtor(), hepv3_config_pre_apply(), hepv3_get_uuid_type(), hepv3_is_loaded(), hepv3_send_packet(), ineligible_configuration(), load_config(), load_module(), load_odbc_config(), load_pktccops_config(), main(), misdn_cfg_init(), module_config_alloc(), module_config_dtor(), parse_config(), process_config(), prometheus_config_pre_apply(), prometheus_general_config_alloc(), prometheus_general_config_dtor(), prometheus_show_status(), realtime_sqlite3_load(), regex_filter_handler(), reload_config(), reload_module(), send_refresh_cb(), sorcery_config_close(), sorcery_config_destructor(), sorcery_config_internal_load(), sorcery_config_open(), sorcery_config_retrieve_fields(), sorcery_config_retrieve_id(), sorcery_config_retrieve_multiple(), sorcery_config_retrieve_prefix(), sorcery_config_retrieve_regex(), sorcery_realtime_create(), sorcery_realtime_delete(), sorcery_realtime_open(), sorcery_realtime_retrieve_fields(), sorcery_realtime_retrieve_multiple(), and sorcery_realtime_update().
static struct ast_context * contexts |
Definition at line 4483 of file extconf.c.
Referenced by AST_TEST_DEFINE().
struct ast_context* local_contexts |
Referenced by ast_context_find_or_create(), and pbx_load_module().