Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Symbols related to asterisk.conf options and paths. More...
#include "asterisk.h"
#include "asterisk/_private.h"
#include "asterisk/app.h"
#include "asterisk/config.h"
#include "asterisk/logger.h"
#include "asterisk/options.h"
#include "asterisk/paths.h"
#include "asterisk/pbx.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/strings.h"
#include "asterisk/utils.h"
#include "../defaults.h"
#include <sys/time.h>
#include <sys/resource.h>
Go to the source code of this file.
Data Structures | |
struct | _cfg_paths |
Macros | |
#define | AST_MIN_DTMF_DURATION 80 |
#define | DEFAULT_MONITOR_DIR DEFAULT_SPOOL_DIR "/monitor" |
#define | DEFAULT_RECORDING_DIR DEFAULT_SPOOL_DIR "/recording" |
Functions | |
void | load_asterisk_conf (void) |
void | set_asterisk_conf_path (const char *path) |
void | set_socket_path (const char *path) |
static void | set_ulimit (int value) |
Set maximum open files. More... | |
Symbols related to asterisk.conf options and paths.
Definition in file options.c.
#define AST_MIN_DTMF_DURATION 80 |
#define DEFAULT_RECORDING_DIR DEFAULT_SPOOL_DIR "/recording" |
void load_asterisk_conf | ( | void | ) |
Definition at line 210 of file options.c.
References _cfg_paths::agi_dir, AST_CACHE_DIR_LEN, ast_clear_flag, ast_config_AST_CONFIG_FILE, ast_config_AST_CTL, ast_config_AST_RUN_DIR, ast_config_AST_SYSTEM_NAME, ast_config_destroy(), ast_config_load2(), ast_copy_string(), ast_defaultlanguage, ast_eid_default, ast_language_is_prefix, AST_LOCK_TYPE_FLOCK, AST_LOCK_TYPE_LOCKFILE, ast_log, AST_MIN_DTMF_DURATION, AST_OPT_FLAG_ALWAYS_FORK, AST_OPT_FLAG_CACHE_MEDIA_FRAMES, AST_OPT_FLAG_CACHE_RECORD_FILES, AST_OPT_FLAG_CONSOLE, AST_OPT_FLAG_DONT_WARN, AST_OPT_FLAG_DUMP_CORE, AST_OPT_FLAG_EXEC_INCLUDES, AST_OPT_FLAG_FORCE_BLACK_BACKGROUND, AST_OPT_FLAG_HIDE_CONSOLE_CONNECT, AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS, AST_OPT_FLAG_HIGH_PRIORITY, AST_OPT_FLAG_INIT_KEYS, AST_OPT_FLAG_LIGHT_BACKGROUND, AST_OPT_FLAG_LOCK_CONFIG_DIR, AST_OPT_FLAG_NO_COLOR, AST_OPT_FLAG_NO_FORK, AST_OPT_FLAG_QUIET, AST_OPT_FLAG_REF_DEBUG, AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM, AST_OPT_FLAG_STDEXTEN_MACRO, AST_OPT_FLAG_TIMESTAMP, AST_OPT_FLAG_TRANSCODE_VIA_SLIN, AST_OPT_FLAG_TRANSMIT_SILENCE, ast_opt_remote, ast_option_maxcalls, ast_option_maxfiles, ast_option_maxload, ast_option_rtpptdynamic, ast_option_rtpusedynamic, ast_options, ast_parse_arg(), AST_RTP_PT_FIRST_DYNAMIC, ast_set2_flag, ast_set_default_eid(), ast_set_flag, ast_set_lock_type(), ast_str_to_eid(), ast_strlen_zero(), ast_true(), ast_variable_browse(), astman_live_dangerously(), _cfg_paths::cache_dir, cfg_paths, _cfg_paths::config_dir, CONFIG_FLAG_NOREALTIME, CONFIG_STATUS_FILEINVALID, CONFIG_STATUS_FILEMISSING, CONFIG_STATUS_FILEUNCHANGED, _cfg_paths::ctl_file, _cfg_paths::ctl_group, _cfg_paths::ctl_owner, _cfg_paths::ctl_perms, _cfg_paths::data_dir, _cfg_paths::db_path, getloadavg(), hostname, _cfg_paths::key_dir, live_dangerously, _cfg_paths::log_dir, LOG_ERROR, LOG_WARNING, MAX_LANGUAGE, MAXHOSTNAMELEN, _cfg_paths::module_dir, _cfg_paths::monitor_dir, ast_variable::name, ast_variable::next, option_debug, option_dtmfminduration, option_minmemfree, option_trace, option_verbose, PARSE_IN_RANGE, PARSE_UINT32, pbx_live_dangerously(), _cfg_paths::pid_path, record_cache_dir, _cfg_paths::recording_dir, _cfg_paths::run_dir, _cfg_paths::run_group, _cfg_paths::run_user, _cfg_paths::sbin_dir, set_ulimit(), _cfg_paths::socket_path, _cfg_paths::spool_dir, _cfg_paths::system_name, ast_variable::value, and _cfg_paths::var_dir.
Referenced by main().
void set_asterisk_conf_path | ( | const char * | path | ) |
Definition at line 200 of file options.c.
References ast_copy_string(), cfg_paths, and _cfg_paths::config_file.
Referenced by main().
void set_socket_path | ( | const char * | path | ) |
Definition at line 205 of file options.c.
References ast_copy_string(), cfg_paths, and _cfg_paths::socket_path.
Referenced by main().
|
static |
Set maximum open files.
Definition at line 178 of file options.c.
References ast_log, errno, LOG_NOTICE, LOG_WARNING, and value.
Referenced by load_asterisk_conf().
const char* ast_config_AST_AGI_DIR = cfg_paths.agi_dir |
Definition at line 160 of file options.c.
Referenced by ast_str_retrieve_variable(), handle_show_settings(), and launch_script().
const char* ast_config_AST_CACHE_DIR = cfg_paths.cache_dir |
Definition at line 150 of file options.c.
Referenced by ast_bucket_file_temporary_create(), ast_str_retrieve_variable(), and handle_show_settings().
const char* ast_config_AST_CONFIG_DIR = cfg_paths.config_dir |
const char* ast_config_AST_CONFIG_FILE = cfg_paths.config_file |
Definition at line 152 of file options.c.
Referenced by handle_show_settings(), launch_script(), and load_asterisk_conf().
const char* ast_config_AST_CTL = cfg_paths.ctl_file |
Definition at line 175 of file options.c.
Referenced by load_asterisk_conf().
const char* ast_config_AST_CTL_GROUP = cfg_paths.ctl_group |
Definition at line 174 of file options.c.
Referenced by ast_makesocket().
const char* ast_config_AST_CTL_OWNER = cfg_paths.ctl_owner |
Definition at line 173 of file options.c.
Referenced by ast_makesocket().
const char* ast_config_AST_CTL_PERMISSIONS = cfg_paths.ctl_perms |
Definition at line 172 of file options.c.
Referenced by ast_makesocket().
const char* ast_config_AST_DATA_DIR = cfg_paths.data_dir |
Definition at line 158 of file options.c.
Referenced by ast_ari_get_docs(), ast_linear_stream(), ast_sounds_get_index_for_file(), ast_str_retrieve_variable(), build_filename(), create_destination_directory(), get_languages(), handle_show_settings(), iax_firmware_reload(), launch_script(), make_filename(), moh_scan_files(), phoneprov_callback(), pp_each_extension_helper(), setup_privacy_args(), static_callback(), test_vm_api_create_voicemail_files(), vs_config_load(), and xmldoc_load_documentation().
const char* ast_config_AST_DB = cfg_paths.db_path |
Definition at line 165 of file options.c.
Referenced by ast_str_retrieve_variable(), convert_bdb_to_sqlite3(), db_open(), and handle_show_settings().
const char* ast_config_AST_KEY_DIR = cfg_paths.key_dir |
Definition at line 161 of file options.c.
Referenced by ast_str_retrieve_variable(), crypto_load(), handle_cli_keys_init(), handle_show_settings(), launch_script(), pop_key_dir(), and push_key_dir().
const char* ast_config_AST_LOG_DIR = cfg_paths.log_dir |
Definition at line 159 of file options.c.
Referenced by apply_general_options(), ast_logger_rotate_channel(), ast_str_retrieve_variable(), astobj2_init(), handle_show_settings(), init_logger(), launch_script(), load_config(), load_module(), logger_queue_init(), logger_queue_restart(), make_filename(), open_history(), reload_config(), reload_logger(), testclient_exec(), testserver_exec(), write_history(), and writefile_account().
const char* ast_config_AST_MODULE_DIR = cfg_paths.module_dir |
Definition at line 153 of file options.c.
Referenced by ast_str_retrieve_variable(), file_in_modules_dir(), handle_show_settings(), is_module_loaded(), launch_script(), load_dynamic_module(), loader_config_init(), and module_load_helper().
const char* ast_config_AST_MONITOR_DIR = cfg_paths.monitor_dir |
Definition at line 155 of file options.c.
Referenced by chanspy_exec(), extenspy_exec(), filename_parse(), and launch_script().
const char* ast_config_AST_PID = cfg_paths.pid_path |
Definition at line 166 of file options.c.
Referenced by asterisk_daemon(), handle_show_settings(), and really_quit().
const char* ast_config_AST_RECORDING_DIR = cfg_paths.recording_dir |
Definition at line 156 of file options.c.
Referenced by handle_scan_file(), split_path(), stasis_app_control_record(), stasis_app_stored_recording_copy(), stasis_app_stored_recording_find_all(), and stasis_app_stored_recording_find_by_name().
const char* ast_config_AST_RUN_DIR = cfg_paths.run_dir |
Definition at line 162 of file options.c.
Referenced by ast_str_retrieve_variable(), asterisk_daemon(), handle_show_settings(), launch_script(), load_asterisk_conf(), and main().
const char* ast_config_AST_RUN_GROUP = cfg_paths.run_group |
Definition at line 169 of file options.c.
Referenced by action_coresettings(), ast_ari_asterisk_get_info(), handle_show_settings(), and main().
const char* ast_config_AST_RUN_USER = cfg_paths.run_user |
Definition at line 168 of file options.c.
Referenced by action_coresettings(), ast_ari_asterisk_get_info(), handle_show_settings(), and main().
const char* ast_config_AST_SBIN_DIR = cfg_paths.sbin_dir |
Definition at line 163 of file options.c.
Referenced by ast_str_retrieve_variable(), asterisk_daemon(), and convert_bdb_to_sqlite3().
const char* ast_config_AST_SOCKET = cfg_paths.socket_path |
Definition at line 167 of file options.c.
Referenced by ast_makesocket(), ast_tryconnect(), ast_var_Config(), main(), and really_quit().
const char* ast_config_AST_SPOOL_DIR = cfg_paths.spool_dir |
Definition at line 154 of file options.c.
Referenced by app_exec(), ast_str_retrieve_variable(), conf_rec_name(), conf_run(), dictate_exec(), filename_parse(), handle_show_settings(), launch_script(), load_module(), play_message_callerid(), sms_nextoutgoing(), sms_writefile(), test_vm_api_create_voicemail_files(), and test_vm_api_remove_voicemail().
const char* ast_config_AST_SYSTEM_NAME = cfg_paths.system_name |
Definition at line 170 of file options.c.
Referenced by __ast_channel_internal_alloc_with_initializers(), __manager_event_sessions_va(), action_coresettings(), ast_ari_asterisk_get_info(), ast_sip_location_create_contact(), ast_str_retrieve_variable(), cli_gather_contact(), cli_prompt(), env_init(), format_log_json(), handle_show_settings(), load_asterisk_conf(), manager_set_defaults(), named_acl_find_realtime(), prune_boot_contacts_cb(), and realtime_update_peer().
const char* ast_config_AST_VAR_DIR = cfg_paths.var_dir |
char ast_defaultlanguage[MAX_LANGUAGE] = DEFAULT_LANGUAGE |
Definition at line 98 of file options.c.
Referenced by __ast_channel_alloc_ap(), ast_ari_asterisk_get_info(), geoloc_civicaddr_list_to_xml(), handle_show_settings(), and load_asterisk_conf().
struct ast_eid ast_eid_default |
Global EID.
This is set in asterisk.conf, or determined automatically by taking the mac address of an Ethernet interface on the system.
Definition at line 93 of file options.c.
Referenced by app_send(), ast_ari_asterisk_get_info(), ast_ari_asterisk_ping(), ast_delete_mwi_state_full(), ast_device_state_clear_cache(), ast_event_append_eid(), ast_str_retrieve_variable(), AST_TEST_DEFINE(), asterisk_publication_send_refresh(), asterisk_publisher_devstate_cb(), asterisk_publisher_mwistate_cb(), bridges_scrape_cb(), cache_entry_by_eid(), cache_entry_create(), cache_remove(), cache_test_message_create(), cache_update(), channels_scrape_cb(), clear_node_cache(), cpg_confchg_cb(), cpg_deliver_cb(), endpoints_scrape_cb(), handle_show_settings(), load_asterisk_conf(), load_module(), mwi_state_create_message(), prometheus_config_post_apply(), publish_cluster_discovery_to_stasis(), publish_to_corosync(), set_config(), stasis_cache_dump(), stasis_cache_get(), stasis_message_create(), state_find_and_remove_eid(), state_find_or_add_eid(), xmpp_pubsub_devstate_cb(), xmpp_pubsub_handle_event(), xmpp_pubsub_mwi_cb(), xmpp_pubsub_publish_device_state(), and xmpp_pubsub_publish_mwi().
|
static |
Definition at line 128 of file options.c.
Referenced by load_asterisk_conf(), set_asterisk_conf_path(), and set_socket_path().
char record_cache_dir[AST_CACHE_DIR_LEN] = DEFAULT_TMP_DIR |
Definition at line 96 of file options.c.
Referenced by ast_writefile(), and load_asterisk_conf().