Can't get the asterisk to start

When trying to start Asterisk, it fails. I think I’v narrowed down to this issue:

[chan_oss.so] => (OSS Console Channel Driver)
Dec 13 09:39:19 NOTICE[31980]: chan_oss.c:1380 load_module: Unable to load config oss.conf
Dec 13 09:39:19 WARNING[31980]: loader.c:415 __load_resource: chan_oss.so: load_module failed, returning -1
Dec 13 09:39:19 WARNING[31980]: loader.c:555 load_modules: Loading module chan_oss.so failed!

I do not have a soundcard in this machine.

What file do I edit to keep the chan_oss.so module from trying to load?

I’ve tried changing modules.conf so that it has:
noload => chan_alsa.so
noload => chan_oss.so

That didn’t work though. It still tries to load it.

Any suggestions?

I don’t know if this will work or not, but try locating chan_oss.so and rename it to chan_oss.so.backup

Restart asterisk and try again… if it doesn’t work you can just remove the .backup extension from the module and your back to where you started.

If I were you I would remove everything in the /usr/lib/asterisk/modules/ directory, make clean/configure/make&&make install zaptel, then asterisk, then addons. But that’s just me :wink:

Thank you for your suggestions.

I tried the clean and re-compile and it resulted in the same error. So I did as you suggested and eliminated (changed to backup) the chan_oss.so file. It then had an error again but this time the file was chan_phone.so, so I did the same to it. Next, it did the same but the file was chan_zap.so, so again, I did the rename.

Now it starts!

So, now the question is, what are those files, do I need them, and why would they error out like that?

Thanks again for the help!

Do you have a zaptel compliant card in your system?

No cards. Strictly VOIP & IP phones (for now)

that’s probably the issue. I’m pretty sure you need to make ztdummy from zaptel, but I have no experience doing this. Sorry I couldn’t help more

Thank you for the help you have provided. At least you gave me some places to start.

So far, I “think” I’ve got zaptel setup right for ztdummy but am not sure as the error still occurs. I think I’m going to take a break!

Well, I am still stuck.

I went so far as switching to CentOS4.5 (from Ubuntu) and get the exact same error.

I followed the procedures here:http://www.freepbx.org/support/documentation/installation/install-procedure-for-centos-4-3

And followed the ztdummy instructions here: aussievoip.com.au/wiki/ztdummy

My main goal is to use freepbx. The asterisk start script in it generates the following error:
STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed

Asterisk could not start!
Use ‘tail /full’ to find out why.

When I type in tail /full it isn’t found.

I try starting asterisk via: asterisk -vvvvvvvvgc
and get the following:

Asterisk SVN-branch-1.2-r90170, Copyright © 1999 - 2007 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; default settings will be used.
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
Dec 14 11:10:22 NOTICE[14891]: manager.c:1686 init_manager: Unable to open management configuration manager.conf. Call management disabled.
Dec 14 11:10:22 NOTICE[14891]: cdr.c:1214 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’
== Manager registered action DBGet
== Manager registered action DBPut
Asterisk Dynamic Loader Starting:
[res_crypto.so] => (Cryptographic Digital Signatures)
– Loaded PUBLIC key ‘iaxtel’
– Loaded PUBLIC key ‘freeworlddialup’
[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_indications.so] => (Indications Configuration)
== Registered application ‘PlayTones’
== Registered application ‘StopPlayTones’
[res_adsi.so] => (ADSI Resource)
[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_musiconhold.so] => (Music On Hold Resource)
== Registered application ‘MusicOnHold’
== Registered application ‘WaitMusicOnHold’
== Registered application ‘SetMusicOnHold’
== Registered application ‘StartMusicOnHold’
== Registered application 'StopMusicOnHold’
Dec 14 11:10:22 WARNING[14891]: res_musiconhold.c:1246 load_module: No music on hold classes configured, disabling music on hold.
[res_config_mysql.so] => (MySQL RealTime Configuration Driver)
Dec 14 11:10:22 ERROR[14891]: res_config_mysql.c:650 mysql_reconnect: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
Dec 14 11:10:22 WARNING[14891]: res_config_mysql.c:476 load_module: MySQL RealTime: Couldn’t establish connection. Check debug.
Dec 14 11:10:22 NOTICE[14891]: config.c:868 ast_config_engine_register: Registered Config Engine mysql
MySQL RealTime driver loaded.
[res_agi.so] => (Asterisk Gateway Interface (AGI))
== Registered application ‘DeadAGI’
== Registered application ‘EAGI’
== Registered application ‘AGI’
[pbx_dundi.so] => (Distributed Universal Number Discovery (DUNDi))
Dec 14 11:10:22 ERROR[14891]: pbx_dundi.c:4580 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_ael.so] => (Asterisk Extension Language Compiler)
Dec 14 11:10:22 WARNING[14891]: pbx_ael.c:1172 ast_ael_compile: Unable to open ‘/etc/asterisk/extensions.ael’: No such file or directory
Dec 14 11:10:22 WARNING[14891]: pbx.c:3783 ast_merge_contexts_and_delete: Requested contexts didn’t get merged
[pbx_spool.so] => (Outgoing Spool Support)
[pbx_realtime.so] => (Realtime Switch)
[pbx_config.so] => (Text Extension Configuration)
Dec 14 11:10:22 WARNING[14891]: pbx.c:3783 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
[pbx_loopback.so] => (Loopback Switch)
[chan_oss.so] => (OSS Console Channel Driver)
Dec 14 11:10:22 NOTICE[14891]: chan_oss.c:1380 load_module: Unable to load config oss.conf
Dec 14 11:10:22 WARNING[14891]: loader.c:415 __load_resource: chan_oss.so: load_module failed, returning -1
Dec 14 11:10:22 WARNING[14891]: loader.c:555 load_modules: Loading module chan_oss.so failed!

Does anyone have any ideas? I’m about to give up and switch back to AsteriskNOW which seems to work fine.