Asterisk - The Open Source Telephony Project
18.5.0
|
#include "asterisk.h"
#include <pjsip.h>
#include <pjlib.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/sorcery.h"
#include "include/res_pjsip_private.h"
#include "asterisk/threadpool.h"
#include "asterisk/dns.h"
#include "asterisk/res_pjsip_cli.h"
Go to the source code of this file.
Data Structures | |
struct | system_config |
Macros | |
#define | DEFAULT_TIMER_B 32000 |
#define | DEFAULT_TIMER_T1 500 |
#define | TIMER_T1_MIN 100 |
Functions | |
void | ast_sip_destroy_system (void) |
void | ast_sip_initialize_dns (void) |
int | ast_sip_initialize_system (void) |
static struct system_config * | get_system_cfg (void) |
int | sip_cli_print_system (struct ast_sip_cli_context *context) |
void | sip_get_threadpool_options (struct ast_threadpool_options *threadpool_options) |
static void * | system_alloc (const char *name) |
static int | system_apply (const struct ast_sorcery *sorcery, void *obj) |
static int | system_create_resolver_and_set_nameservers (void *data) |
Variables | |
static struct ast_threadpool_options | sip_threadpool_options |
static struct ast_sorcery * | system_sorcery |
#define DEFAULT_TIMER_B 32000 |
Definition at line 33 of file config_system.c.
Referenced by ast_sip_initialize_system().
#define DEFAULT_TIMER_T1 500 |
Definition at line 32 of file config_system.c.
Referenced by ast_sip_initialize_system().
#define TIMER_T1_MIN 100 |
Definition at line 31 of file config_system.c.
Referenced by system_apply().
void ast_sip_destroy_system | ( | void | ) |
Definition at line 245 of file config_system.c.
References ast_sorcery_unref.
Referenced by unload_pjsip().
void ast_sip_initialize_dns | ( | void | ) |
Definition at line 314 of file config_system.c.
References ast_sip_push_task_wait_servant(), NULL, and system_create_resolver_and_set_nameservers().
Referenced by load_module(), and reload_configuration_task().
int ast_sip_initialize_system | ( | void | ) |
Definition at line 175 of file config_system.c.
References __stringify, system_config::accept_multiple_sdp_answers, ao2_cleanup, ao2_container_count(), ast_log, AST_RETRIEVE_FLAG_ALL, AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_alloc(), ast_sorcery_apply_default, ast_sorcery_load(), ast_sorcery_object_field_register, ast_sorcery_object_register_no_reload, ast_sorcery_open, ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, system_config::compactheaders, DEFAULT_TIMER_B, DEFAULT_TIMER_T1, system_config::disable_rport, system_config::disable_tcp_switch, FLDSET, system_config::follow_early_media_fork, LOG_ERROR, NULL, OPT_BOOL_T, OPT_NOOP_T, OPT_UINT_T, RAII_VAR, system_alloc(), system_apply(), system_config::threadpool, system_config::timerb, and system_config::timert1.
Referenced by load_module().
|
static |
Definition at line 141 of file config_system.c.
References ao2_find, ao2_ref, AST_RETRIEVE_FLAG_ALL, AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_retrieve_by_fields(), and NULL.
Referenced by sip_cli_print_system().
int sip_cli_print_system | ( | struct ast_sip_cli_context * | context | ) |
Definition at line 157 of file config_system.c.
References ao2_ref, ast_sip_cli_print_sorcery_objectset(), ast_sorcery_alloc(), ast_str_append(), get_system_cfg(), NULL, and ast_sip_cli_context::output_buffer.
Referenced by cli_show_settings().
void sip_get_threadpool_options | ( | struct ast_threadpool_options * | threadpool_options | ) |
Definition at line 70 of file config_system.c.
References sip_threadpool_options.
Referenced by load_module().
|
static |
Definition at line 77 of file config_system.c.
References ast_sorcery_generic_alloc(), and NULL.
Referenced by ast_sip_initialize_system().
|
static |
Definition at line 88 of file config_system.c.
References system_config::accept_multiple_sdp_answers, ast_log, system_config::auto_increment, ast_threadpool_options::auto_increment, system_config::compactheaders, system_config::disable_rport, system_config::disable_tcp_switch, system_config::follow_early_media_fork, system_config::idle_timeout, ast_threadpool_options::idle_timeout, system_config::initial_size, ast_threadpool_options::initial_size, LOG_WARNING, system_config::max_size, ast_threadpool_options::max_size, system_config::threadpool, TIMER_T1_MIN, system_config::timerb, and system_config::timert1.
Referenced by ast_sip_initialize_system().
|
static |
Definition at line 250 of file config_system.c.
References ao2_container_count(), ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_dns_get_nameservers(), ast_log, ast_sip_get_pjsip_endpoint(), LOG_ERROR, NULL, and status.
Referenced by ast_sip_initialize_dns().
|
static |
Definition at line 66 of file config_system.c.
Referenced by sip_get_threadpool_options().
|
static |
Definition at line 75 of file config_system.c.