RTS API Documentation
1.10.11
|
#include <switch.h>
#include <switch_ssl.h>
#include <switch_stun.h>
#include <switch_nat.h>
#include "private/switch_apr_pvt.h"
#include "private/switch_core_pvt.h"
#include <switch_curl.h>
#include <switch_msrp.h>
#include <switch_private.h>
#include <errno.h>
#include <sqlite3.h>
#include <xswitch.h>
#include "cc.h"
Go to the source code of this file.
Data Structures | |
struct | switch_ip_list_t |
struct | system_thread_handle |
Macros | |
#define | BUFSIZE 1024 |
Variables | |
switch_directories | SWITCH_GLOBAL_dirs = { 0 } |
switch_filenames | SWITCH_GLOBAL_filenames = { 0 } |
struct switch_runtime | runtime = { 0 } |
static char | main_ip4 [256] = "" |
static char | main_ip6 [256] = "" |
static switch_ip_list_t | IP_LIST = { 0 } |
static uint32_t | d_30 = 30 |
#define BUFSIZE 1024 |
Referenced by switch_core_set_globals().
|
static |
Definition at line 132 of file switch_core.c.
References switch_runtime::hostname, main_ip4, main_ip6, switch_core_get_variable(), switch_core_set_variable(), switch_event_add_header(), switch_event_add_header_string(), switch_event_create, switch_event_fire, SWITCH_EVENT_TRAP, switch_find_local_ip(), switch_set_string, SWITCH_STACK_BOTTOM, SWITCH_STATUS_SUCCESS, and zstr.
Referenced by SWITCH_STANDARD_SCHED_FUNC().
|
static |
Definition at line 2008 of file switch_core.c.
References switch_event_add_header(), switch_event_create, switch_event_fire, SWITCH_EVENT_TRAP, SWITCH_STACK_BOTTOM, and SWITCH_STATUS_SUCCESS.
Referenced by switch_core_session_ctl(), and switch_core_set_signal_handlers().
|
static |
Definition at line 1272 of file switch_core.c.
References switch_directories::conf_dir, switch_assert, switch_core_mime_add_type(), switch_fp_read_dline(), SWITCH_GLOBAL_dirs, switch_mprintf(), and switch_safe_free.
Referenced by switch_core_init().
|
static |
Definition at line 89 of file switch_core.c.
References switch_core_time_duration::day, switch_core_time_duration::hr, switch_core_time_duration::min, switch_core_time_duration::mms, switch_core_time_duration::ms, switch_core_time_duration::sec, switch_runtime::sessions_peak, switch_runtime::sessions_peak_fivemin, switch_runtime::sps, switch_runtime::sps_last, switch_runtime::sps_peak, switch_runtime::sps_peak_fivemin, switch_core_idle_cpu(), switch_core_measure_time(), switch_core_session_count(), switch_core_session_id(), switch_core_session_limit(), switch_core_uptime(), switch_event_add_header(), switch_event_create, switch_event_fire, SWITCH_EVENT_HEARTBEAT, SWITCH_SIZE_T_FMT, SWITCH_STACK_BOTTOM, SWITCH_STATUS_SUCCESS, SWITCH_TIME_T_FMT, switch_version_full(), and switch_core_time_duration::yr.
Referenced by SWITCH_STANDARD_SCHED_FUNC().
void switch_close_extra_files | ( | int * | keep, |
int | keep_ttl | ||
) |
Definition at line 3244 of file switch_core.c.
References system_thread_handle::cmd, SWITCH_DECLARE, switch_fork(), switch_max_file_desc(), switch_system_fork(), and switch_system_thread().
Referenced by preprocess_exec(), and switch_system_fork().
int switch_core_add_state_handler | ( | const switch_state_handler_table_t * | state_handler | ) |
Definition at line 317 of file switch_core.c.
References switch_runtime::global_mutex, index, switch_runtime::state_handler_index, switch_runtime::state_handlers, SWITCH_MAX_STATE_HANDLERS, switch_mutex_lock(), and switch_mutex_unlock().
const char* switch_core_banner | ( | void | ) |
uint32_t switch_core_debug_level | ( | void | ) |
void switch_core_dump_variables | ( | switch_stream_handle_t * | stream | ) |
Definition at line 345 of file switch_core.c.
References switch_runtime::global_mutex, switch_runtime::global_vars, switch_event::headers, switch_event_header::name, switch_event_header::next, switch_mutex_lock(), switch_mutex_unlock(), switch_event_header::value, and switch_stream_handle::write_function.
const char* switch_core_get_event_channel_key_separator | ( | void | ) |
Definition at line 3592 of file switch_core.c.
References switch_runtime::event_channel_key_separator.
Referenced by ecd_deliver().
uint16_t switch_core_get_rtp_port_range_end_port | ( | void | ) |
Get RTP port range end value.
[in] | void | |
[out] | RTP | port range end value |
Definition at line 3581 of file switch_core.c.
References switch_rtp_set_end_port().
uint16_t switch_core_get_rtp_port_range_start_port | ( | void | ) |
Get RTP port range start value.
[in] | void | |
[out] | RTP | port range start value |
Definition at line 3570 of file switch_core.c.
References switch_rtp_set_start_port().
switch_status_t switch_core_get_stacksizes | ( | switch_size_t * | cur, |
switch_size_t * | max | ||
) |
Definition at line 3512 of file switch_core.c.
References memset(), SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
const switch_state_handler_table_t* switch_core_get_state_handler | ( | int | index | ) |
Definition at line 335 of file switch_core.c.
References index, switch_runtime::state_handler_index, switch_runtime::state_handlers, and SWITCH_MAX_STATE_HANDLERS.
char* switch_core_get_variable | ( | const char * | varname | ) |
Definition at line 395 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_event_get_header, switch_thread_rwlock_rdlock(), and switch_thread_rwlock_unlock().
Referenced by check_ip(), switch_core_get_domain(), switch_stream_spawn(), switch_stream_system(), and switch_system().
char* switch_core_get_variable_dup | ( | const char * | varname | ) |
Definition at line 404 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_event_get_header, switch_thread_rwlock_rdlock(), and switch_thread_rwlock_unlock().
Referenced by switch_core_init_and_modload().
char* switch_core_get_variable_pdup | ( | const char * | varname, |
switch_memory_pool_t * | pool | ||
) |
Definition at line 419 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_core_strdup, switch_event_get_header, switch_thread_rwlock_rdlock(), and switch_thread_rwlock_unlock().
switch_status_t switch_core_init | ( | switch_core_flag_t | flags, |
switch_bool_t | console, | ||
const char ** | err | ||
) |
Definition at line 1798 of file switch_core.c.
References switch_directories::base_dir, switch_frame::buflen, switch_directories::cache_dir, switch_directories::certs_dir, switch_runtime::colorize_console, switch_directories::conf_dir, switch_runtime::console, switch_runtime::cpu_count, switch_frame::data, switch_directories::data_dir, switch_frame::datalen, switch_directories::db_dir, switch_runtime::db_handle_timeout, switch_runtime::dbname, DBTYPE_DEFAULT, switch_runtime::default_dtmf_duration, switch_runtime::dummy_cng_frame, switch_runtime::dummy_data, switch_runtime::event_heartbeat_interval, switch_runtime::flags, switch_directories::fonts_dir, switch_runtime::global_mutex, switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_directories::grammar_dir, switch_runtime::hard_log_level, switch_runtime::hostname, switch_directories::htdocs_dir, switch_directories::images_dir, switch_runtime::initiated, load_mime_types(), switch_directories::localstate_dir, switch_directories::log_dir, switch_runtime::mailer_app, switch_runtime::mailer_app_args, switch_runtime::max_db_handles, switch_runtime::max_dtmf_duration, switch_runtime::memory_pool, memset(), switch_runtime::microseconds_per_tick, switch_runtime::mime_type_exts, switch_runtime::mime_types, switch_runtime::min_dtmf_duration, switch_directories::mod_dir, switch_runtime::odbc_dbtype, switch_runtime::ptimes, switch_directories::recordings_dir, switch_directories::run_dir, switch_runtime::runlevel, switch_runtime::running, SCF_API_EXPANSION, SCF_AUTO_SCHEMAS, SCF_CLEAR_SQL, SCF_LOG_DISABLE, SCF_MINIMAL, SCF_NO_NEW_SESSIONS, SCF_SESSION_THREAD_POOL, SCF_THREADED_SYSTEM_EXEC, SCF_USE_AUTO_NAT, SCF_USE_NAT_MAPPING, switch_directories::script_dir, switch_runtime::session_hash_mutex, SFF_CNG, switch_runtime::shutdown_cause, switch_directories::sounds_dir, switch_runtime::sps_total, SSHF_NO_DEL, SSHF_NONE, SSHF_OWN_THREAD, switch_directories::storage_dir, switch_assert, SWITCH_CAUSE_SYSTEM_SHUTDOWN, switch_channel_global_init(), SWITCH_CHANNEL_LOG, switch_console_init(), switch_core_hash_init_case(), switch_core_media_init(), switch_core_memory_init(), switch_core_session_init(), switch_core_set_globals(), switch_core_set_variable(), switch_core_state_machine_init(), switch_curl_init(), SWITCH_DEFAULT_DIR_PERMS, SWITCH_DEFAULT_DTMF_DURATION, switch_dir_make_recursive(), switch_epoch_time_now(), SWITCH_EVENT_CHANNEL_DATA, switch_event_create_plain(), switch_event_init(), SWITCH_FALSE, switch_find_local_ip(), SWITCH_GLOBAL_dirs, switch_load_core_config(), SWITCH_LOG_DEBUG, SWITCH_LOG_DEBUG1, SWITCH_LOG_DISABLE, switch_log_init(), switch_log_printf(), SWITCH_MAX_DTMF_DURATION, SWITCH_MIN_DTMF_DURATION, switch_mono_micro_time_now(), switch_mutex_init(), SWITCH_MUTEX_NESTED, switch_nat_init(), switch_nat_late_init(), switch_rtp_init(), switch_scheduler_add_task(), switch_scheduler_task_thread_start(), switch_set_flag, switch_ssl_init_ssl_locks(), SWITCH_STATUS_MEMERR, SWITCH_STATUS_SUCCESS, switch_test_flag, switch_thread_rwlock_create(), switch_uuid_format(), switch_uuid_get(), switch_xml_init(), switch_directories::temp_dir, switch_runtime::throttle_mutex, switch_runtime::timer_affinity, switch_runtime::tipping_point, switch_runtime::uuid_mutex, and switch_runtime::uuid_str.
Referenced by switch_core_init_and_modload().
switch_status_t switch_core_init_and_modload | ( | switch_core_flag_t | flags, |
switch_bool_t | console, | ||
const char ** | err | ||
) |
Definition at line 2443 of file switch_core.c.
References cc, cc_s, switch_stream_handle::data, switch_runtime::events_use_dispatch, switch_runtime::runlevel, SCF_NO_NEW_SESSIONS, SCF_USE_SQL, SWITCH_CHANNEL_LOG, switch_clear_flag, switch_console_execute(), switch_core_banner(), switch_core_get_variable_dup(), switch_core_init(), switch_core_screen_size(), switch_core_session_limit(), switch_core_sessions_per_second(), switch_core_set_signal_handlers(), switch_event_add_header(), switch_event_create, switch_event_fire, SWITCH_EVENT_STARTUP, SWITCH_FALSE, switch_load_core_config(), switch_load_network_lists(), switch_loadable_module_init(), SWITCH_LOG_CONSOLE, SWITCH_LOG_INFO, switch_log_printf(), switch_msrp_init(), SWITCH_SEQ_BBLUE, SWITCH_SEQ_DEFAULT_COLOR, SWITCH_SEQ_FYELLOW, SWITCH_STACK_BOTTOM, SWITCH_STANDARD_STREAM, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, switch_test_flag, SWITCH_TRUE, switch_version_full(), and switch_version_revision_human().
switch_thread_t* switch_core_launch_thread | ( | switch_thread_start_t | func, |
void * | obj, | ||
switch_memory_pool_t * | pool | ||
) |
Definition at line 601 of file switch_core.c.
References switch_core_thread_session::objs, pool, switch_core_thread_session::pool, SWITCH_CHANNEL_LOG, switch_core_alloc, switch_core_new_memory_pool, SWITCH_LOG_CRIT, switch_log_printf(), SWITCH_PRI_REALTIME, SWITCH_STATUS_SUCCESS, switch_thread_create(), SWITCH_THREAD_STACKSIZE, switch_threadattr_create(), switch_threadattr_priority_set(), switch_threadattr_stacksize_set(), and thread.
uint32_t switch_core_max_audio_channels | ( | uint32_t | limit | ) |
Definition at line 2642 of file switch_core.c.
References switch_runtime::max_audio_channels.
Referenced by switch_core_media_negotiate_sdp(), switch_core_perform_file_open(), and switch_load_core_config().
void switch_core_remove_state_handler | ( | const switch_state_handler_table_t * | state_handler | ) |
Definition at line 292 of file switch_core.c.
References cur, switch_runtime::global_mutex, index, switch_runtime::state_handler_index, switch_runtime::state_handlers, SWITCH_MAX_STATE_HANDLERS, switch_mutex_lock(), and switch_mutex_unlock().
void switch_core_service_session_av | ( | switch_core_session_t * | session, |
switch_bool_t | audio, | ||
switch_bool_t | video | ||
) |
Definition at line 573 of file switch_core.c.
References CF_SERVICE_AUDIO, CF_SERVICE_VIDEO, switch_assert, switch_channel_set_flag, switch_core_service_thread(), switch_core_session_get_channel(), and switch_core_session_launch_thread().
|
static |
Definition at line 501 of file switch_core.c.
References CF_SERVICE, CF_SERVICE_AUDIO, CF_SERVICE_VIDEO, CF_VIDEO, switch_core_session::frame_read_mutex, switch_channel_clear_flag(), switch_channel_set_flag, switch_channel_test_flag(), switch_core_session_get_channel(), switch_core_session_read_frame(), switch_core_session_read_lock(), switch_core_session_read_video_frame(), switch_core_session_rwunlock(), SWITCH_IO_FLAG_NONE, switch_mutex_lock(), switch_mutex_unlock(), SWITCH_STATUS_BREAK, SWITCH_STATUS_SUCCESS, and SWITCH_STATUS_TIMEOUT.
Referenced by switch_core_service_session_av().
int32_t switch_core_sessions_peak | ( | void | ) |
int32_t switch_core_sessions_peak_fivemin | ( | void | ) |
void switch_core_set_signal_handlers | ( | void | ) |
Definition at line 2579 of file switch_core.c.
References handle_SIGHUP().
Referenced by switch_core_init_and_modload(), switch_loadable_module_load_file(), and switch_system_fork().
switch_bool_t switch_core_set_var_conditional | ( | const char * | varname, |
const char * | value, | ||
const char * | val2 | ||
) |
Definition at line 464 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_event_add_header_string_nodup(), switch_event_del_header, switch_event_get_header, SWITCH_FALSE, SWITCH_STACK_BOTTOM, switch_string_var_check(), switch_thread_rwlock_unlock(), switch_thread_rwlock_wrlock(), SWITCH_TRUE, and zstr.
void switch_core_set_variable | ( | const char * | varname, |
const char * | value | ||
) |
Definition at line 442 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, switch_event_add_header_string(), switch_event_del_header, switch_event_get_header, SWITCH_STACK_BOTTOM, switch_string_var_check(), switch_thread_rwlock_unlock(), switch_thread_rwlock_wrlock(), and SWITCH_TRUE.
Referenced by check_ip(), switch_core_init(), and switch_load_core_config().
int32_t switch_core_sps | ( | void | ) |
int32_t switch_core_sps_last | ( | void | ) |
int32_t switch_core_sps_peak | ( | void | ) |
int32_t switch_core_sps_peak_fivemin | ( | void | ) |
void switch_core_sqldb_destroy | ( | void | ) |
Definition at line 3013 of file switch_core.c.
References SCF_USE_SQL, switch_core_sqldb_stop(), and switch_test_flag.
Referenced by switch_loadable_module_shutdown().
switch_status_t switch_core_sqldb_init | ( | const char ** | err | ) |
Definition at line 2428 of file switch_core.c.
References switch_runtime::memory_pool, SCF_USE_SQL, switch_core_check_core_db_dsn(), switch_core_sqldb_start(), SWITCH_FALSE, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, switch_test_flag, and SWITCH_TRUE.
Referenced by switch_loadable_module_init().
void switch_core_thread_session_end | ( | switch_core_session_t * | session | ) |
Definition at line 557 of file switch_core.c.
References CF_SERVICE, CF_SERVICE_AUDIO, CF_SERVICE_VIDEO, switch_assert, switch_channel_clear_flag(), switch_core_session_get_channel(), switch_core_session_kill_channel, and SWITCH_SIG_BREAK.
switch_status_t switch_core_thread_set_cpu_affinity | ( | int | cpu | ) |
Definition at line 1763 of file switch_core.c.
References SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by switch_core_autobind_cpu(), and SWITCH_MODULE_RUNTIME_FUNCTION().
|
static |
Definition at line 434 of file switch_core.c.
References switch_runtime::global_var_rwlock, switch_runtime::global_vars, SWITCH_EVENT_CHANNEL_DATA, switch_event_create_plain(), switch_event_destroy(), switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
Referenced by switch_core_destroy().
uint32_t switch_default_ptime | ( | const char * | name, |
uint32_t | number | ||
) |
Definition at line 2022 of file switch_core.c.
References switch_runtime::ptimes, and switch_core_hash_find().
Referenced by add_audio_codec(), switch_core_media_negotiate_sdp(), switch_loadable_module_get_codecs(), and switch_loadable_module_get_codecs_sorted().
uint32_t switch_default_rate | ( | const char * | name, |
uint32_t | number | ||
) |
Definition at line 2033 of file switch_core.c.
Referenced by switch_loadable_module_get_codecs_sorted().
pid_t switch_fork | ( | void | ) |
Definition at line 3282 of file switch_core.c.
References set_low_priority().
Referenced by daemonize(), preprocess_exec(), switch_close_extra_files(), and switch_system_fork().
|
static |
Definition at line 2049 of file switch_core.c.
References switch_runtime::colorize_console, switch_runtime::core_db_inner_post_trans_execute, switch_runtime::core_db_inner_pre_trans_execute, switch_runtime::core_db_post_trans_execute, switch_runtime::core_db_pre_trans_execute, switch_runtime::cpu_count, switch_runtime::cpu_idle_smoothing_depth, d_30, switch_runtime::db_handle_timeout, switch_runtime::dbname, DBTYPE_DEFAULT, DBTYPE_MSSQL, switch_runtime::event_channel_key_separator, switch_runtime::event_heartbeat_interval, switch_runtime::events_use_dispatch, switch_runtime::mailer_app, switch_runtime::mailer_app_args, switch_runtime::max_db_handles, switch_runtime::memory_pool, memset(), switch_runtime::microseconds_per_tick, switch_runtime::multiple_registrations, switch_xml::next, switch_runtime::odbc_dbtype, switch_runtime::odbc_dsn, switch_runtime::port_alloc_flags, switch_runtime::ptimes, SCF_API_EXPANSION, SCF_AUTO_SCHEMAS, SCF_CLEAR_SQL, SCF_CORE_NON_SQLITE_DB_REQ, SCF_CPF_SOFT_LOOKUP, SCF_CPF_SOFT_PREFIX, SCF_DIALPLAN_TIMESTAMPS, SCF_EARLY_HANGUP, SCF_EVENT_CHANNEL_ENABLE_HIERARCHY_DELIVERY, SCF_EVENT_CHANNEL_HIERARCHY_DELIVERY_ONCE, SCF_EVENT_CHANNEL_LOG_UNDELIVERABLE_JSON, SCF_SESSION_THREAD_POOL, SCF_THREADED_SYSTEM_EXEC, SCF_VERBOSE_EVENTS, SCSC_DEBUG_LEVEL, SCSC_LOGLEVEL, SPF_ROBUST_UDP, switch_atoul(), SWITCH_CHANNEL_LOG, switch_clear_flag, switch_core_alloc, switch_core_default_dtmf_duration(), switch_core_hash_insert, switch_core_max_audio_channels(), switch_core_max_dtmf_duration(), switch_core_media_set_resolveice(), switch_core_min_dtmf_duration(), switch_core_min_idle_cpu(), switch_core_session_ctl(), switch_core_session_limit(), switch_core_sessions_per_second(), switch_core_set_variable(), switch_core_strdup, switch_event_launch_dispatch_threads(), SWITCH_LOG_CRIT, SWITCH_LOG_ERROR, SWITCH_LOG_INVALID, SWITCH_LOG_NOTICE, switch_log_printf(), switch_log_str2level(), SWITCH_LOG_WARNING, switch_odbc_skip_autocommit_flip(), switch_rtp_set_end_port(), switch_rtp_set_start_port(), switch_set_flag, switch_time_set_cond_yield(), switch_time_set_matrix(), switch_time_set_monotonic(), switch_time_set_nanosleep(), switch_time_set_timerfd(), switch_time_set_use_system_time(), SWITCH_TRUE, switch_true(), switch_xml_attr_soft(), switch_xml_child(), switch_xml_free(), switch_xml_open_cfg(), switch_runtime::switchname, switch_runtime::timer_affinity, switch_runtime::tipping_point, and zstr.
Referenced by switch_core_init(), and switch_core_init_and_modload().
int switch_max_file_desc | ( | void | ) |
Definition at line 3228 of file switch_core.c.
Referenced by switch_close_extra_files().
int switch_spawn | ( | const char * | cmd, |
switch_bool_t | wait | ||
) |
Definition at line 3507 of file switch_core.c.
References SWITCH_FALSE, and switch_stream_spawn().
SWITCH_STANDARD_SCHED_FUNC | ( | heartbeat_callback | ) |
Definition at line 225 of file switch_core.c.
References switch_runtime::event_heartbeat_interval, send_heartbeat(), and switch_epoch_time_now().
SWITCH_STANDARD_SCHED_FUNC | ( | check_ip_callback | ) |
Definition at line 234 of file switch_core.c.
References check_ip(), and switch_epoch_time_now().
int switch_stream_spawn | ( | const char * | cmd, |
switch_bool_t | shell, | ||
switch_bool_t | wait, | ||
switch_stream_handle_t * | stream | ||
) |
Definition at line 3372 of file switch_core.c.
References buffer, memset(), switch_stream_handle::raw_write_function, SWITCH_CHANNEL_LOG, switch_core_get_variable(), SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_safe_free, switch_separate_string(), and zstr.
Referenced by switch_spawn(), switch_stream_system(), and switch_system().
int switch_stream_system_fork | ( | const char * | cmd, |
switch_stream_handle_t * | stream | ||
) |
Definition at line 3363 of file switch_core.c.
References switch_stream_system().
|
static |
Definition at line 3295 of file switch_core.c.
References memset(), SWITCH_CHANNEL_LOG, switch_close_extra_files(), switch_core_set_signal_handlers(), switch_fork(), SWITCH_LOG_ERROR, and switch_log_printf().
Referenced by switch_close_extra_files(), and switch_system().
|
static |
Definition at line 3189 of file switch_core.c.
References system_thread_handle::cmd, system_thread_handle::cond, system_thread_handle::mutex, pool, system_thread_handle::pool, system_thread_handle::ret, SWITCH_CHANNEL_LOG, switch_core_alloc, switch_core_destroy_memory_pool, switch_core_new_memory_pool, switch_core_strdup, SWITCH_LOG_CRIT, switch_log_printf(), switch_mutex_init(), switch_mutex_lock(), SWITCH_MUTEX_NESTED, switch_mutex_unlock(), SWITCH_STATUS_SUCCESS, SWITCH_SYSTEM_THREAD_STACKSIZE, switch_thread_cond_create(), switch_thread_cond_wait(), switch_thread_create(), switch_threadattr_create(), switch_threadattr_detach_set(), switch_threadattr_stacksize_set(), system_thread(), and thread.
Referenced by switch_close_extra_files(), and switch_system().
|
static |
Definition at line 3147 of file switch_core.c.
References system_thread_handle::cmd, system_thread_handle::cond, system_thread_handle::fds, memset(), system_thread_handle::mutex, system_thread_handle::pool, system_thread_handle::ret, SWITCH_CHANNEL_LOG, switch_core_destroy_memory_pool, SWITCH_LOG_ERROR, switch_log_printf(), switch_mutex_lock(), switch_mutex_unlock(), and switch_thread_cond_signal().
Referenced by switch_system_thread().
|
static |
Definition at line 2047 of file switch_core.c.
Referenced by switch_load_core_config().
|
static |
Definition at line 1372 of file switch_core.c.
|
static |
Definition at line 129 of file switch_core.c.
Referenced by check_ip().
|
static |
Definition at line 130 of file switch_core.c.
Referenced by check_ip().
struct switch_runtime runtime = { 0 } |
Definition at line 86 of file switch_core.c.
Referenced by _switch_cache_db_get_db_handle(), _switch_core_db_handle(), switch_cache_db_create_schema(), switch_cache_db_test_reactive_ex(), switch_cond_next(), switch_cond_yield(), switch_core_add_registration(), switch_core_check_core_db_dsn(), switch_core_db_test_reactive(), switch_core_del_registration(), switch_core_expire_registration(), switch_core_idle_cpu(), switch_core_min_idle_cpu(), switch_core_pool_stats(), switch_core_port_allocator_new(), switch_core_session_event_send(), switch_core_session_findall(), switch_core_session_findall_matching_var(), switch_core_session_hangup_state(), switch_core_session_hupall(), switch_core_session_hupall_endpoint(), switch_core_session_hupall_matching_vars_ans(), switch_core_session_id_dec(), switch_core_session_message_send(), switch_core_session_perform_destroy(), switch_core_session_perform_force_locate(), switch_core_session_perform_locate(), switch_core_session_read_frame(), switch_core_session_read_text_frame(), switch_core_session_read_video_frame(), switch_core_session_request_uuid(), switch_core_session_set_external_id(), switch_core_session_set_uuid(), switch_core_session_sync_clock(), switch_core_session_thread_launch(), switch_core_sessions_per_second(), switch_core_sql_db_thread(), switch_core_sql_exec(), switch_core_sqldb_start(), switch_core_sqldb_start_thread(), switch_event_fire_detailed(), switch_event_shutdown(), switch_log_meta_vprintf(), switch_micro_time_now(), SWITCH_MODULE_LOAD_FUNCTION(), SWITCH_MODULE_RUNTIME_FUNCTION(), switch_new_profile_timer(), switch_simple_email(), switch_sql_concat(), switch_time_calibrate_clock(), switch_time_sync(), switch_user_sql_thread(), switch_uuid_get(), timer_destroy(), timer_init(), and timer_next().
switch_directories SWITCH_GLOBAL_dirs = { 0 } |
Definition at line 82 of file switch_core.c.
Referenced by __switch_xml_open_root(), db_pick_path(), freeswitch_kill_background(), fs_encode_cleanup(), fs_tts_cleanup(), fst_init_core_and_modload(), load_config(), load_mime_types(), main(), switch_config_open_file(), switch_console_list_available_modules(), switch_console_save_history(), switch_core_cert_gen_fingerprint(), switch_core_check_dtls_pem(), switch_core_destroy(), switch_core_gen_certs(), switch_core_init(), switch_core_set_globals(), switch_img_txt_handle_create(), switch_ivr_displace_session(), switch_ivr_insert_file(), switch_ivr_play_file(), switch_ivr_record_file_event(), switch_ivr_record_session_event(), switch_loadable_module_init(), switch_loadable_module_load_file(), switch_rtp_add_dtls(), switch_simple_email(), SWITCH_STANDARD_APP(), switch_stream_write_file_contents(), and switch_xml_parse_file().
switch_filenames SWITCH_GLOBAL_filenames = { 0 } |
Definition at line 83 of file switch_core.c.
Referenced by __switch_xml_open_root(), main(), switch_core_destroy(), switch_core_set_globals(), and switch_xml_parse_file().