Alsa not loading in Asterisk 1.6.0.26-FONCORE-r78

Hey all,

I’ve been banging my head against a wall, pulling out hair… trying to get a USB soundcard under ALSA to work:

Yes, it’s trixbox, Here’s the error message I keep getting:

Unable to load module chan_alsa.so
Command ‘module load chan_alsa.so’ failed.

and from the FULL log:
[Aug 5 12:01:34] VERBOSE[15084] logger.c: == Parsing ‘/etc/asterisk/alsa.conf’: [Aug 5 12:01:34] VERBOSE[15084] logger.c: == Found
[Aug 5 12:01:34] ERROR[15084] chan_alsa.c: snd_pcm_open failed: No such file or directory
[Aug 5 12:01:34] ERROR[15084] chan_alsa.c: snd_pcm_open failed: No such file or directory
[Aug 5 12:01:34] ERROR[15084] chan_alsa.c: Problem opening ALSA I/O devices
[Aug 5 12:01:34] VERBOSE[15084] logger.c: == No sound card detected – console channel will be unavailable
[Aug 5 12:01:34] VERBOSE[15084] logger.c: == Turn off ALSA support by adding ‘noload=chan_alsa.so’ in /etc/asterisk/modules.conf

Here’s the ALSA config:
[general]
autoanswer=yes
context=local
extension=s
language=fr
input_device=default
output_device=default

I"ve tried changing permissions (/dev/snd = asterisk:asterisk)
setting the global RW on the /dev/snd
leaving the /dev/sound as “root:audio” and then adding asterisk into the audio group

I originally set this up under OSS, and it worked, until the Autoanswer kicked in and asterisk segfaulted out… can’t have that…
If I did a console dial to an extension, it worked perfectly. But autoanswer was a nogo… which is needed for paging!

There is a card that works perfectly outside asterisk:
**** List of CAPTURE Hardware Devices ****
card 0: default [C-Media USB Headphone Set ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

Sound files do play outside of asterisk:

[root@trixbolchpbx01 asterisk]# aplay -v /var/lib/asterisk/sounds/silence/1.wav
Playing WAVE ‘/var/lib/asterisk/sounds/silence/1.wav’ : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 2730
period_size : 170
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 170
period_event : 0
start_threshold : 2730
stop_threshold : 2730
silence_threshold: 0
silence_size : 0
boundary : 178913280

0 <- 0
1 <- 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 16384
period_size : 1024
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Slave: Direct Stream Mixing PCM
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 16384
period_size : 1024
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 1024
period_event : 0
start_threshold : 16384
stop_threshold : 16384
silence_threshold: 0
silence_size : 0
boundary : 1073741824
Hardware PCM card 0 'C-Media USB Headphone Set ’ device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 16384
period_size : 1024
period_time : 21333
tstamp_mode : ENABLE
period_step : 1
avail_min : 1024[root@trixbolchpbx01 asterisk]# aplay -v /var/lib/asterisk/sounds/silence/1.wav
Playing WAVE ‘/var/lib/asterisk/sounds/silence/1.wav’ : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 2730
period_size : 170
period_time : 21333
tstamp_mode : NONE
period_step : 1
avail_min : 170
period_event : 0
start_threshold : 2730
stop_threshold : 2730
silence_threshold: 0
silence_size : 0
boundary : 178913280

period_event : 0
start_threshold : 1
stop_threshold : 1073741824
silence_threshold: 0
silence_size : 1073741824
boundary : 1073741824