[HELP] Asterisk does not start -- New to asterisk

I am trying to install asterisk on RedHat 9. I downloaded the source from gigium’s website and followed the documentation for installation instructions. It seems the installation was successfull but when I try to start asterisk, it doesn’t. I don’t know why the configuration files do not appear in the directories they are supposed to be under. Is my installation correct? What am I doing wrong?

I appreciate your help.

The command I used is: asterisk -vvc

and the output I get is:

[root@localhost root]# asterisk -vvvc
Asterisk 1.2.9.1, Copyright © 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘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 ‘show license’ for details.

Unable to open logger.conf: No such file or directory
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader loading preload modules:
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
Jun 17 17:54:09 NOTICE[1986]: manager.c:1678 init_manager: Unable to open management configuration manager.conf. Call management disabled.
Jun 17 17:54:09 NOTICE[1986]: cdr.c:1191 do_reload: CDR simple logging enabled.
== RTP Allocating from port range 5000 -> 31000
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
== Registered application ‘AbsoluteTimeout’
[Answer]
== Registered application ‘Answer’
[BackGround]
== Registered application ‘BackGround’
[Busy]
== Registered application ‘Busy’
[Congestion]
== Registered application ‘Congestion’
[DigitTimeout]
== Registered application ‘DigitTimeout’
[Goto]
== Registered application ‘Goto’
[GotoIf]
== Registered application ‘GotoIf’
[GotoIfTime]
== Registered application ‘GotoIfTime’
[ExecIfTime]
== Registered application ‘ExecIfTime’
[Hangup]
== Registered application ‘Hangup’
[NoOp]
== Registered application ‘NoOp’
[Progress]
== Registered application ‘Progress’
[ResetCDR]
== Registered application ‘ResetCDR’
[ResponseTimeout]
== Registered application ‘ResponseTimeout’
[Ringing]
== Registered application ‘Ringing’
[SayNumber]
== Registered application ‘SayNumber’
[SayDigits]
== Registered application ‘SayDigits’
[SayAlpha]
== Registered application ‘SayAlpha’
[SayPhonetic]
== Registered application ‘SayPhonetic’
[SetAccount]
== Registered application ‘SetAccount’
[SetAMAFlags]
== Registered application ‘SetAMAFlags’
[SetGlobalVar]
== Registered application ‘SetGlobalVar’
[SetLanguage]
== Registered application ‘SetLanguage’
[Set]
== Registered application ‘Set’
[SetVar]
== Registered application ‘SetVar’
[ImportVar]
== Registered application ‘ImportVar’
[Wait]
== Registered application ‘Wait’
[WaitExten]
== Registered application 'WaitExten’
Asterisk Dynamic Loader Starting:
[res_indications.so] => (Indications Configuration)
== Registered application ‘PlayTones’
== Registered application ‘StopPlayTones’
[res_monitor.so] => (Call Monitoring Resource)
== Registered application ‘Monitor’
== Registered application ‘StopMonitor’
== Registered application ‘ChangeMonitor’
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
[res_adsi.so] => (ADSI Resource)
[res_agi.so] => (Asterisk Gateway Interface (AGI))
== Registered application ‘DeadAGI’
== Registered application ‘EAGI’
== Registered application ‘AGI’
[res_features.so] => (Call Features Resource)
– Registered extension context ‘parkedcalls’
– Added extension ‘700’ priority 1 to parkedcalls
== Registered application ‘ParkedCall’
== Registered application ‘Park’
== Manager registered action ParkedCalls
[res_crypto.so] => (Cryptographic Digital Signatures)
– Loaded PUBLIC key ‘iaxtel’
– Loaded PUBLIC key ‘freeworlddialup’
[res_musiconhold.so] => (Music On Hold Resource)
== Registered application ‘MusicOnHold’
== Registered application ‘WaitMusicOnHold’
== Registered application ‘SetMusicOnHold’
== Registered application ‘StartMusicOnHold’
== Registered application ‘StopMusicOnHold’
[pbx_config.so] => (Text Extension Configuration)217 load_module: No music on hold classes configured, disabling music on hold.
Jun 17 17:54:10 WARNING[1986]: pbx.c:3762 ast_merge_contexts_and_delete: Requested contexts didn’t get merged
[pbx_spool.so] => (Outgoing Spool Support)
[pbx_dundi.so] => (Distributed Universal Number Discovery (DUNDi))
Jun 17 17:54:10 ERROR[1986]: pbx_dundi.c:4574 set_config: Unable to load config dundi.conf
== Using TOS bits 0
== DUNDi Ready and Listening on 0.0.0.0 port 4520
== Registered application ‘DUNDiLookup’
== Registered custom function DUNDILOOKUP
[pbx_loopback.so] => (Loopback Switch)
[pbx_realtime.so] => (Realtime Switch)
[pbx_ael.so] => (Asterisk Extension Language Compiler)
Jun 17 17:54:10 WARNING[1986]: pbx_ael.c:1146 ast_ael_compile: Unable to open ‘/etc/asterisk/extensions.ael’: No such file or directory
Jun 17 17:54:10 WARNING[1986]: pbx.c:3762 ast_merge_contexts_and_delete: Requested contexts didn’t get merged
[pbx_functions.so] => (Builtin dialplan functions)
== Registered custom function MD5
== Registered custom function CHECK_MD5
== Registered custom function MATH
== Registered custom function GROUP_COUNT
== Registered custom function GROUP_MATCH_COUNT
== Registered custom function GROUP
== Registered custom function GROUP_LIST
== Registered custom function FIELDQTY
== Registered custom function REGEX
== Registered custom function LEN
== Registered custom function STRFTIME
== Registered custom function EVAL
== Registered custom function CDR
== Registered custom function ISNULL
== Registered custom function SET
== Registered custom function EXISTS
== Registered custom function IF
== Registered custom function IFTIME
== Registered custom function ENV
== Registered custom function DB
== Registered custom function DB_EXISTS
== Registered custom function TIMEOUT
== Registered custom function LANGUAGE
== Registered custom function MUSICCLASS
[chan_sip.so] => (Session Initiation Protocol (SIP))
Jun 17 17:54:10 NOTICE[1986]: chan_sip.c:12485 reload_config: Unable to load config sip.conf
== Registered channel type ‘SIP’ (Session Initiation Protocol (SIP))
== Registered application ‘SIPDtmfMode’
== Registered application ‘SIPAddHeader’
== Registered application ‘SIPGetHeader’
== Registered custom function SIP_HEADER
== Registered custom function SIPPEER
== Registered custom function SIPCHANINFO
== Registered custom function CHECKSIPDOMAIN
== Manager registered action SIPpeers
== Manager registered action SIPshowpeer
[chan_agent.so] => (Agent Proxy Channel)
== Registered channel type ‘Agent’ (Call Agent Proxy Channel)
== Registered application ‘AgentLogin’
== Registered application ‘AgentCallbackLogin’
== Registered application ‘AgentMonitorOutgoing’
== Manager registered action Agents
== Manager registered action AgentLogoff
== Manager registered action AgentCallbackLogin
Jun 17 17:54:10 NOTICE[1986]: chan_agent.c:1036 read_agent_config: No agent configuration found – agent support disabled
[chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
Jun 17 17:54:10 NOTICE[1986]: chan_mgcp.c:4113 reload_config: Unable to load config mgcp.conf, MGCP disabled
== Registered channel type ‘MGCP’ (Media Gateway Control Protocol (MGCP))
[chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
== Registered custom function IAXPEER
== Registered application ‘IAX2Provision’
== Manager registered action IAXpeers
== Manager registered action IAXnetstats
Jun 17 17:54:10 ERROR[1986]: chan_iax2.c:8633 set_config: Unable to load config iax.conf
== Registered channel type ‘IAX2’ (Inter Asterisk eXchange Driver (Ver 2))
== IAX Ready and Listening
== Loaded firmware 'iaxy.bin’
Jun 17 17:54:10 NOTICE[1986]: iax2-provision.c:515 iax_provision_reload: No IAX provisioning configuration found, IAX provisioning disabled.
[chan_local.so] => (Local Proxy Channel)
== Registered channel type ‘Local’ (Local Proxy Channel Driver)
[chan_skinny.so] => (Skinny Client Control Protocol (Skinny))
Jun 17 17:54:10 NOTICE[1986]: chan_skinny.c:3108 reload_config: Unable to load config skinny.conf, Skinny disabled
== Registered channel type ‘Skinny’ (Skinny Client Control Protocol (Skinny))
[chan_features.so] => (Feature Proxy Channel)
== Registered channel type ‘Feature’ (Feature Proxy Channel Driver)
[chan_oss.so] => (OSS Console Channel Driver)
Jun 17 17:54:10 NOTICE[1986]: chan_oss.c:1380 load_module: Unable to load config oss.conf
Jun 17 17:54:10 WARNING[1986]: loader.c:414 __load_resource: chan_oss.so: load_module failed, returning -1
Jun 17 17:54:10 WARNING[1986]: loader.c:554 load_modules: Loading module chan_oss.so failed!

Did you run “make samples” after the install was complete?

If so, verify which directory they are in and verify in your asterisk.conf the “astetcdir” is pointed to the correct directory that contains your .conf files.

Here is an example what it looks like. If “astetcdir” is not pointing to the correct directory, change it to reflect where the .conf files are located on your system.

[directories]
astetcdir => /etc/asterisk ; <— make sure your .config files are here, or change accordingly.
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run
astlogdir => /var/log/asterisk

Actually I was just going through previous topics… And I found one that is exactly similar to mine. It also mentions the make samples option… I ran it and It is working fine now… Thank you very much for your help :smile: