On Mon, 14 Dec 2009 11:02:02 -0800, Dave Platt <[email protected]> wrote: >>> See if it plays back properly. >> >> Running aplay as asterisk user seems to be no problem: >> >> aster...@puppy$ aplay /usr/share/sounds/alsa/Front_Center.wav >> Playing: WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit >> Little Endian, Rate: 48000 Hz, mono >> aster...@puppy:~$ aplay -Dpulse /usr/share/sounds/alsa/Front_Center.wav
Hi, I've just tried to make it work without pulseaudio. just plain alsa. it doesn't work :( Asterisk Ready. *CLI> console dial s *CLI> << Console call has been answered >> [Dec 14 21:10:28] ERROR[28575]: chan_alsa.c:456 alsa_read: Read error: Resource temporarily unavailable There is no other program potentially locking the sound device. puppy:/home/vitaminx# grep device /etc/asterisk/alsa.conf | grep -v \; input_device=default output_device=default There was no .asoundrc or /etc/asound.conf defined for this test. seems to be an alsa problem. puppy:/home/vitaminx# aplay -l **** Liste der Hardware-Geräte (PLAYBACK) **** Karte 0: VT82xx [HDA VIA VT82xx], Gerät 0: AD198x Analog [AD198x Analog] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 Karte 0: VT82xx [HDA VIA VT82xx], Gerät 1: AD198x Digital [AD198x Digital] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 I've tried again with following change: puppy:/home/vitaminx# grep device /etc/asterisk/alsa.conf | grep -v \; input_device=hw:0,0 output_device=hw:0,0 I get: [Dec 14 21:19:05] WARNING[29022]: chan_dahdi.c:17023 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47. .....................[Dec 14 21:19:05] WARNING[29022]: translate.c:654 __ast_register_translator: plc_samples 160 format f ......[Dec 14 21:19:05] ERROR[29022]: chan_alsa.c:195 alsa_card_init: set_channels failed: Invalid argument [Dec 14 21:19:05] ERROR[29022]: chan_alsa.c:195 alsa_card_init: set_channels failed: Invalid argument [Dec 14 21:19:05] WARNING[29022]: chan_alsa.c:200 alsa_card_init: Rate not correct, requested 8000, got 44100 ..*CLI> ....[Dec 14 21:19:05] WARNING[29022]: res_musiconhold.c:1667 load_module: No music on hold classes configured, disabling music on hold. ... ] Asterisk Ready. *CLI> console dial s *CLI> << Console call has been answered >> Speicherzugriffsfehler (crash) Thanks for any hints :) greetings, vitaminx -- irc ..... #callistix @ freenode mail ..... [email protected] www ..... http://www.callistix.net icecast ..... http://icecast.callistix.net:8000/ _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
