I was having this same issue, really drove me nuts!!!!
NOW, asterisk does not even stay running. Here are two captures, the first is with what I like as a command line (reveals more about the build and any missing dependancies). The second is the same commandline used by ebox. Both end up the same....
root@ebox14:/usr/sbin# asterisk -c -W -X -v
Asterisk 1.6.2.1+svn244040-1~ebox0~hardy2, Copyright (C) 1999 - 2009 Digium, Inc. and others.
Created by Mark Spencer <
markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Asterisk Dynamic Loader Starting:
[Feb 24 15:28:57] NOTICE[26502]: loader.c:1101 load_modules: 1 modules will be loaded.
func_strings.so => (String handling dialplan functions)
[Feb 24 15:28:57] NOTICE[26502]: cdr.c:1559 do_reload: CDR simple logging enabled.
Asterisk PBX Core Initializing
Registering builtin applications:
[Answer]
[BackGround]
[Busy]
[Congestion]
[ExecIfTime]
[Goto]
[GotoIf]
[GotoIfTime]
[ImportVar]
[Hangup]
[Incomplete]
[NoOp]
[Proceeding]
[Progress]
[RaiseException]
[ResetCDR]
[Ringing]
[SayAlpha]
[SayDigits]
[SayNumber]
[SayPhonetic]
[Set]
[MSet]
[SetAMAFlags]
[Wait]
[WaitExten]
Asterisk Dynamic Loader Starting:
[Feb 24 15:28:57] NOTICE[26502]: loader.c:1101 load_modules: 202 modules will be loaded.
res_agi.so => (Asterisk Gateway Interface (AGI))
[Feb 24 15:28:57] NOTICE[26502]: res_smdi.c:1415 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
res_jabber.so => (AJI - Asterisk Jabber Interface)
res_ael_share.so => (share-able code for AEL)
res_speech.so => (Generic Speech Recognition API)
res_monitor.so => (Call Monitoring Resource)
res_calendar.so => (Asterisk Calendar integration)
[Feb 24 15:28:57] WARNING[26502]: loader.c:434 load_dynamic_module: Error loading module 'func_odbc.so': /usr/lib/asterisk/modules/func_odbc.so: undefined symbol: SQLFetch
[Feb 24 15:28:57] WARNING[26502]: loader.c:822 load_resource: Module 'func_odbc.so' could not be loaded.
[Feb 24 15:28:57] WARNING[26502]: loader.c:434 load_dynamic_module: Error loading module 'cdr_adaptive_odbc.so': /usr/lib/asterisk/modules/cdr_adaptive_odbc.so: undefined symbol: ast_odbc_request_obj
[Feb 24 15:28:57] WARNING[26502]: loader.c:822 load_resource: Module 'cdr_adaptive_odbc.so' could not be loaded.
[Feb 24 15:28:57] WARNING[26502]: loader.c:434 load_dynamic_module: Error loading module 'cdr_odbc.so': /usr/lib/asterisk/modules/cdr_odbc.so: undefined symbol: ast_odbc_request_obj
[Feb 24 15:28:57] WARNING[26502]: loader.c:822 load_resource: Module 'cdr_odbc.so' could not be loaded.
[Feb 24 15:28:57] WARNING[26502]: loader.c:434 load_dynamic_module: Error loading module 'cel_adaptive_odbc.so': /usr/lib/asterisk/modules/cel_adaptive_odbc.so: undefined symbol: ast_odbc_request_obj
[Feb 24 15:28:57] WARNING[26502]: loader.c:822 load_resource: Module 'cel_adaptive_odbc.so' could not be loaded.
res_timing_pthread.so => (pthread Timing Interface)
format_vox.so => (Dialogic VOX (ADPCM) File Format)
format_h264.so => (Raw H.264 data)
format_jpeg.so => (jpeg (joint picture experts group) image format)
res_timing_dahdi.so => (DAHDI Timing Interface)
format_g729.so => (Raw G729 data)
format_siren7.so => (ITU G.722.1 (Siren7, licensed from Polycom))
format_pcm.so => (Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G.722 16Khz)
format_siren14.so => (ITU G.722.1 Annex C (Siren14, licensed from Polycom))
format_sln16.so => (Raw Signed Linear 16KHz Audio support (SLN16))
format_wav.so => (Microsoft WAV format (8000Hz Signed Linear))
format_wav_gsm.so => (Microsoft WAV format (Proprietary GSM))
format_h263.so => (Raw H.263 data)
format_g723.so => (G.723.1 Simple Timestamp File Format)
format_ogg_vorbis.so => (OGG/Vorbis audio)
format_gsm.so => (Raw GSM data)
format_ilbc.so => (Raw iLBC data)
format_g726.so => (Raw G.726 (16/24/32/40kbps) data)
format_sln.so => (Raw Signed Linear Audio support (SLN))
app_parkandannounce.so => (Call Parking and Announce Application)
app_dahdibarge.so => (Barge in on DAHDI channel application)
res_security_log.so => (Security Event Logging)
chan_dahdi.so => (DAHDI Telephony Driver)
app_dictate.so => (Virtual Dictation Machine)
func_global.so => (Variable dialplan functions)
res_rtp_multicast.so => (Multicast RTP Engine)
func_timeout.so => (Channel timeout dialplan functions)
app_verbose.so => (Send verbose output)
chan_phone.so => (Linux Telephony API Support)
app_playtones.so => (Playtones Application)
app_festival.so => (Simple Festival Interface)
app_mixmonitor.so => (Mixed Audio Monitoring Application)
chan_oss.so => (OSS Console Channel Driver)
app_cdr.so => (Tell Asterisk to not maintain a CDR for the current call)
func_dialgroup.so => (Dialgroup dialplan function)
func_base64.so => (base64 encode/decode dialplan functions)
func_sprintf.so => (SPRINTF dialplan function)
cdr_pgsql.so => (PostgreSQL CDR Backend)
app_playback.so => (Sound File Playback Application)
app_url.so => (Send URL Applications)
bridge_softmix.so => (Multi-party software based channel mixing)
res_phoneprov.so => (HTTP Phone Provisioning)
app_milliwatt.so => (Digital Milliwatt (mu-law) Test Application)
app_followme.so => (Find-Me/Follow-Me Application)
app_directory.so => (Extension Directory)
app_controlplayback.so => (Control Playback Application)
app_system.so => (Generic System() application)
app_while.so => (While Loops and Conditional Execution)
app_amd.so => (Answering Machine Detection Application)
func_connectedline.so => (Connected Line dialplan function)
app_adsiprog.so => (Asterisk ADSI Programming Application)
codec_a_mu.so => (A-law and Mulaw direct Coder/Decoder)
func_devstate.so => (Gets or sets a device state in the dialplan)
bridge_simple.so => (Simple two channel bridging module)
func_speex.so => (Noise reduction and Automatic Gain Control (AGC))
res_rtp_asterisk.so => (Asterisk RTP Stack)
app_sms.so => (SMS/PSTN handler)
== Aliased CLI command 'hangup request' to 'channel request hangup'
== Aliased CLI command 'originate' to 'channel originate'
== Aliased CLI command 'help' to 'core show help'
== Aliased CLI command 'pri intense debug span' to 'pri set debug 2 span'
== Aliased CLI command 'reload' to 'module reload'
res_clialiases.so => (CLI Aliases)
app_stack.so => (Dialplan subroutines (Gosub, Return, etc))
app_readexten.so => (Read and evaluate extension validity)
app_test.so => (Interface Test Application)
app_senddtmf.so => (Send DTMF digits Application)
app_forkcdr.so => (Fork The CDR into 2 separate entities)
chan_agent.so => (Agent Proxy Channel)
[Feb 24 15:28:57] WARNING[26502]: cel_pgsql.c:383 process_my_load_module: CEL pgsql config file missing global section.
cel_pgsql.so => (PostgreSQL CEL Backend)
func_callerid.so => (Caller ID related dialplan functions)
app_channelredirect.so => (Redirects a given channel to a dialplan target)
app_read.so => (Read Variable Application)
app_db.so => (Database Access Functions)
func_curl.so => (Load external URL)
pbx_realtime.so => (Realtime Switch)
app_externalivr.so => (External IVR Interface Application)
app_echo.so => (Simple Echo Application)
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#callback' at line 71 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#dialout' at line 74 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#envelope' at line 76 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#forcegreetings' at line 77 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#forcename' at line 78 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#hidefromdir' at line 80 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#nextaftercmd' at line 82 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#operator' at line 83 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#review' at line 86 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#saycid' at line 87 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#sayduration' at line 88 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#saydurationm' at line 89 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#sendvoicemail' at line 90 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] WARNING[26502]: config.c:1048 process_text_line: Unknown directive '#tz' at line 92 of /etc/asterisk/res_ldap.conf
[Feb 24 15:28:58] NOTICE[26502]: config.c:1983 ast_config_engine_register: Registered Config Engine ldap
LDAP RealTime driver loaded.
res_config_ldap.so => (LDAP realtime interface)
app_talkdetect.so => (Playback with Talk Detection)
app_record.so => (Trivial Record Application)
app_page.so => (Page Multiple Phones)
app_softhangup.so => (Hangs up the requested channel)
cdr_manager.so => (Asterisk Manager Interface CDR Backend)
app_zapateller.so => (Block Telemarketers with Special Information Tone)
codec_alaw.so => (A-law Coder/Decoder)
func_lock.so => (Dialplan mutexes)
chan_local.so => (Local Proxy Channel (Note: used internally by other modules))
res_http_post.so => (HTTP POST support)
app_macro.so => (Extension Macros)
res_convert.so => (File format conversion CLI command)
[Feb 24 15:28:58] WARNING[26502]: app_voicemail.c:11111 load_config: maxsilence should be less than minsecs or you may get empty messages
app_voicemail.so => (Comedian Mail (Voicemail System))
app_meetme.so => (MeetMe conference bridge)
cel_custom.so => (Customizable Comma Separated Values CEL Backend)
chan_multicast_rtp.so => (Multicast RTP Paging Channel)
codec_ulaw.so => (mu-Law Coder/Decoder)
func_version.so => (Get Asterisk Version/Build Info)
app_queue.so => (True Call Queueing)
pbx_loopback.so => (Loopback Switch)
app_directed_pickup.so => (Directed Call Pickup Application)
app_chanspy.so => (Listen to the audio of an active channel)
[Feb 24 15:28:58] NOTICE[26502]: config.c:1983 ast_config_engine_register: Registered Config Engine sqlite
res_config_sqlite.so => (Realtime SQLite configuration)
func_cut.so => (Cut out information from a string)
func_logic.so => (Logical dialplan functions)
app_flash.so => (Flash channel application)
func_iconv.so => (Charset conversions)
func_module.so => (Checks if Asterisk module is loaded in memory)
[Feb 24 15:28:58] NOTICE[26502]: cel_tds.c:451 tds_load_module: cel_tds has no global category, nothing to configure.
[Feb 24 15:28:58] WARNING[26502]: cel_tds.c:556 load_module: cel_tds module had config problems; declining load
app_ices.so => (Encode and Stream via icecast and ices)
app_confbridge.so => (Conference Bridge Application)
app_dahdiras.so => (DAHDI ISDN Remote Access Server)
app_authenticate.so => (Authentication Application)
func_uri.so => (URI encode/decode dialplan functions)
SIP channel loading...
[Feb 24 15:28:58] NOTICE[26502]: chan_sip.c:25103 build_peer: The 'username' field for sip peers has been deprecated in favor of the term 'defaultuser'
chan_sip.so => (Session Initiation Protocol (SIP))
cdr_custom.so => (Customizable Comma Separated Values CDR Backend)
app_getcpeid.so => (Get ADSI CPE ID)
res_curl.so => (cURL Resource Module)
func_shell.so => (Returns the output of a shell command)
bridge_builtin_features.so => (Built in bridging features)
app_mp3.so => (Silly MP3 Application)
func_db.so => (Database (astdb) related dialplan functions)
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:122 pbx_load_module: Starting AEL load process.
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:141 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:146 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Feb 24 15:28:58] NOTICE[26502]: pbx_ael.c:149 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
pbx_ael.so => (Asterisk Extension Language Compiler)
func_sha1.so => (SHA-1 computation dialplan function)
app_alarmreceiver.so => (Alarm Receiver for Asterisk)
chan_gtalk.so => (Gtalk Channel Driver)
res_crypto.so => (Cryptographic Digital Signatures)
func_enum.so => (ENUM related dialplan functions)
func_aes.so => (AES dialplan functions)
func_sysinfo.so => (System information related functions)
app_dumpchan.so => (Dump Info About The Calling Channel)
[Feb 24 15:28:58] ERROR[26502]: ais/clm.c:141 ast_ais_clm_load_module: Could not initialize cluster membership service: Try Again
app_chanisavail.so => (Check channel availability)
app_sendtext.so => (Send Text Applications)
codec_lpc10.so => (LPC10 2.4kbps Coder/Decoder)
app_transfer.so => (Transfers a caller to another extension)
chan_jingle.so => (Jingle Channel Driver)
func_vmcount.so => (Indicator for whether a voice mailbox has messages in a given folder.)
[Feb 24 15:28:58] WARNING[26519]: res_musiconhold.c:466 spawn_mp3: /var/lib/asterisk/mohmp3/ is not a valid directory
[Feb 24 15:28:58] WARNING[26519]: res_musiconhold.c:608 monmp3thread: Unable to spawn mp3player
res_musiconhold.so => (Music On Hold Resource)
res_adsi.so => (ADSI Resource)
app_sayunixtime.so => (Say time)
func_rand.so => (Random number dialplan function)
func_blacklist.so => (Look up Caller*ID name/number from blacklist database)
app_speech_utils.so => (Dialplan Speech Applications)
codec_g726.so => (ITU G.726-32kbps G726 Transcoder)
[Feb 24 15:28:58] WARNING[26502]: cdr_sqlite.c:178 load_module: This module has been marked deprecated in favor of using cdr_sqlite3_custom. (May be removed after Asterisk 1.6)
cdr_sqlite.so => (SQLite CDR Backend)
func_dialplan.so => (Dialplan Context/Extension/Priority Checking Functions)
func_realtime.so => (Read/Write/Store/Destroy values from a RealTime repository)
cel_radius.so => (RADIUS CEL Backend)
app_setcallerid.so => (Set CallerID Presentation Application)
res_mutestream.so => (Mute audio stream resources)
pbx_spool.so => (Outgoing Spool Support)
Couldnt open VTCore device node (/dev/vt0): No such file or directory
root@ebox14:/usr/sbin#
I will post the second next...Too much info for onw post...