Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Macros | Functions | Variables
options.c File Reference

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.
 

Variables

const char * ast_config_AST_AGI_DIR = cfg_paths.agi_dir
 
const char * ast_config_AST_CACHE_DIR = cfg_paths.cache_dir
 
const char * ast_config_AST_CONFIG_DIR = cfg_paths.config_dir
 
const char * ast_config_AST_CONFIG_FILE = cfg_paths.config_file
 
const char * ast_config_AST_CTL = cfg_paths.ctl_file
 
const char * ast_config_AST_CTL_GROUP = cfg_paths.ctl_group
 
const char * ast_config_AST_CTL_OWNER = cfg_paths.ctl_owner
 
const char * ast_config_AST_CTL_PERMISSIONS = cfg_paths.ctl_perms
 
const char * ast_config_AST_DATA_DIR = cfg_paths.data_dir
 
const char * ast_config_AST_DB = cfg_paths.db_path
 
const char * ast_config_AST_KEY_DIR = cfg_paths.key_dir
 
const char * ast_config_AST_LOG_DIR = cfg_paths.log_dir
 
const char * ast_config_AST_MODULE_DIR = cfg_paths.module_dir
 
const char * ast_config_AST_MONITOR_DIR = cfg_paths.monitor_dir
 
const char * ast_config_AST_PID = cfg_paths.pid_path
 
const char * ast_config_AST_RECORDING_DIR = cfg_paths.recording_dir
 
const char * ast_config_AST_RUN_DIR = cfg_paths.run_dir
 
const char * ast_config_AST_RUN_GROUP = cfg_paths.run_group
 
const char * ast_config_AST_RUN_USER = cfg_paths.run_user
 
const char * ast_config_AST_SBIN_DIR = cfg_paths.sbin_dir
 
const char * ast_config_AST_SOCKET = cfg_paths.socket_path
 
const char * ast_config_AST_SPOOL_DIR = cfg_paths.spool_dir
 
const char * ast_config_AST_SYSTEM_NAME = cfg_paths.system_name
 
const char * ast_config_AST_VAR_DIR = cfg_paths.var_dir
 
char ast_defaultlanguage [MAX_LANGUAGE] = DEFAULT_LANGUAGE
 
struct ast_eid ast_eid_default
 Global EID. More...
 
int ast_option_maxcalls
 
int ast_option_maxfiles
 
double ast_option_maxload
 
int ast_option_pjproject_cache_pools
 
int ast_option_pjproject_log_level
 
unsigned int ast_option_rtpptdynamic = 35
 
int ast_option_rtpusedynamic = 1
 
struct ast_flags ast_options = { AST_DEFAULT_OPTIONS }
 
int ast_pjproject_max_log_level = -1
 
int ast_verb_sys_level
 
static struct _cfg_paths cfg_paths
 
int option_debug
 
unsigned int option_dtmfminduration = AST_MIN_DTMF_DURATION
 
long option_minmemfree
 
int option_trace
 
int option_verbose
 
char record_cache_dir [AST_CACHE_DIR_LEN] = DEFAULT_TMP_DIR
 

Detailed Description

Symbols related to asterisk.conf options and paths.

Author
Corey Farrell git@c.nosp@m.fwar.nosp@m.e.com

Definition in file options.c.

Macro Definition Documentation

#define AST_MIN_DTMF_DURATION   80

Default minimum DTMF digit length - 80ms

Definition at line 49 of file options.c.

Variable Documentation

struct ast_eid ast_eid_default