#include <unistd.h>#include <stdlib.h>#include <sys/poll.h>#include <asterisk/logger.h>#include <asterisk/options.h>#include <asterisk/cli.h>#include <asterisk/channel.h>#include <asterisk/ulaw.h>#include <asterisk/alaw.h>#include <asterisk/callerid.h>#include <asterisk/module.h>#include <asterisk/image.h>#include <asterisk/tdd.h>#include <asterisk/term.h>#include <asterisk/manager.h>#include <asterisk/pbx.h>#include <asterisk/enum.h>#include <asterisk/rtp.h>#include <asterisk/app.h>#include <asterisk/lock.h>#include <asterisk/utils.h>#include <sys/resource.h>#include <fcntl.h>#include <stdio.h>#include <signal.h>#include <sched.h>#include <asterisk/io.h>#include <sys/socket.h>#include <sys/un.h>#include <sys/wait.h>#include <string.h>#include <errno.h>#include <ctype.h>#include "editline/histedit.h"#include "asterisk.h"#include <asterisk/config.h>Include dependency graph for asterisk.c:

Go to the source code of this file.
Data Structures | |
| struct | console |
| struct | ast_atexit |
Defines | |
| #define | AST_MAX_CONNECTS 128 |
| #define | NUM_MSGS 64 |
| #define | ASTERISK_PROMPT "*CLI> " |
| #define | ASTERISK_PROMPT2 "%s*CLI> " |
Functions | |
| AST_MUTEX_DEFINE_STATIC (atexitslock) | |
| int | ast_register_atexit (void(*func)(void)) |
| void | ast_unregister_atexit (void(*func)(void)) |
| int | ast_safe_system (const char *s) |
| Safely spawn an external program while closingn file descriptors. | |
| void | ast_console_puts (const char *string) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | option_verbose = 0 |
| int | option_debug = 0 |
| int | option_nofork = 0 |
| int | option_quiet = 0 |
| int | option_console = 0 |
| int | option_highpriority = 0 |
| int | option_remote = 0 |
| int | option_exec = 0 |
| int | option_initcrypto = 0 |
| int | option_nocolor |
| int | option_dumpcore = 0 |
| int | option_overrideconfig = 0 |
| int | fully_booted = 0 |
| int | ast_mainpid |
| time_t | ast_startuptime |
| time_t | ast_lastreloadtime |
| console | consoles [AST_MAX_CONNECTS] |
| char | defaultlanguage [MAX_LANGUAGE] = DEFAULT_LANGUAGE |
| char | ast_config_AST_CONFIG_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_CONFIG_FILE [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_MODULE_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_SPOOL_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_VAR_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_LOG_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_AGI_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_DB [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_KEY_DIR [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_PID [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_SOCKET [AST_CONFIG_MAX_PATH] |
| char | ast_config_AST_RUN_DIR [AST_CONFIG_MAX_PATH] |
|
|
Definition at line 56 of file asterisk.c. |
|
|
Definition at line 809 of file asterisk.c. |
|
|
Definition at line 811 of file asterisk.c. |
|
|
Definition at line 57 of file asterisk.c. |
|
|
Definition at line 216 of file asterisk.c. References string. Referenced by ast_log().
|
|
|
|
|
|
Definition at line 121 of file asterisk.c. References ast_mutex_lock, ast_mutex_unlock, ast_unregister_atexit(), and malloc.
|
|
|
Safely spawn an external program while closingn file descriptors.
Definition at line 163 of file asterisk.c. References ast_log(), LOG_WARNING, and s.
|
|
|
Definition at line 139 of file asterisk.c. References ast_mutex_lock, and ast_mutex_unlock. Referenced by ast_register_atexit().
|
|
||||||||||||
|
Definition at line 1446 of file asterisk.c. References __ast_mm_init(), ast_alaw_init(), ast_cli(), ast_cli_register(), ast_config_AST_CONFIG_FILE, ast_config_AST_PID, ast_config_AST_SOCKET, ast_enum_init(), ast_image_init(), ast_log(), ast_mainpid, ast_register_verbose(), ast_rtp_init(), ast_startuptime, ast_ulaw_init(), ast_verbose(), astdb_init(), callerid_init(), COLOR_BLACK, COLOR_BRWHITE, fully_booted, init_framer(), init_logger(), init_manager(), load_modules(), load_pbx(), LOG_ERROR, LOG_WARNING, option_console, option_debug, option_dumpcore, option_exec, option_highpriority, option_initcrypto, option_nocolor, option_nofork, option_overrideconfig, option_quiet, option_remote, option_verbose, poll(), tdd_init(), term_color(), term_end(), term_init(), and term_quit().
|
|
|
Definition at line 109 of file asterisk.c. |
|
|
Definition at line 103 of file asterisk.c. |
|
|
Definition at line 104 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 110 of file asterisk.c. |
|
|
Definition at line 111 of file asterisk.c. |
|
|
Definition at line 108 of file asterisk.c. Referenced by init_logger(), and reload_logger(). |
|
|
Definition at line 105 of file asterisk.c. Referenced by ast_load_resource(), and load_modules(). |
|
|
Definition at line 112 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 114 of file asterisk.c. |
|
|
Definition at line 113 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 106 of file asterisk.c. Referenced by ast_app_has_voicemail(), and ast_app_messagecount(). |
|
|
Definition at line 107 of file asterisk.c. Referenced by ast_linear_stream(). |
|
|
Definition at line 89 of file asterisk.c. Referenced by ast_module_reload(). |
|
|
Definition at line 75 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 88 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 95 of file asterisk.c. |
|
|
Definition at line 97 of file asterisk.c. Referenced by ast_channel_alloc(). |
|
|
Definition at line 71 of file asterisk.c. Referenced by ast_load_resource(), and main(). |
|
|
Definition at line 63 of file asterisk.c. Referenced by ast_load_resource(), main(), and term_init(). |
|
|
Definition at line 60 of file asterisk.c. Referenced by ast_channel_register_ex(), ast_channel_unregister(), ast_context_create(), ast_hangup(), ast_log(), ast_pbx_run(), ast_rtcp_read(), ast_save(), ast_set_read_format(), ast_set_write_format(), ast_softhangup_nolock(), load_modules(), and main(). |
|
|
Definition at line 69 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 66 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 64 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 67 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 68 of file asterisk.c. Referenced by main(), and term_init(). |
|
|
Definition at line 61 of file asterisk.c. Referenced by main(), and term_init(). |
|
|
Definition at line 70 of file asterisk.c. Referenced by main(). |
|
|
Definition at line 62 of file asterisk.c. Referenced by load_modules(), and main(). |
|
|
Definition at line 65 of file asterisk.c. Referenced by main(). |
|
1.3.7