I'm trying to create an extension that will connect caller to asterisk sound card. I've followed the example at http://www.voip-info.org/tiki-index.php?page=Asterisk+tips+console. With no luck. What I get is: Jul 13 09:56:45 VERBOSE[1315]: -- Executing Dial("SIP/300-3bd6", "CONSOLE/dsp") in new stack Jul 13 09:56:45 WARNING[1315]: No channel type registered for 'CONSOLE' Jul 13 09:56:45 NOTICE[1315]: Unable to create channel of type 'CONSOLE' Jul 13 09:56:45 VERBOSE[1315]: == Everyone is busy/congested at this time Jul 13 09:56:45 VERBOSE[1315]: -- Executing Dial("SIP/300-3bd6", "CONSOLE/dsp") in new stack Jul 13 09:56:45 WARNING[1315]: No channel type registered for 'CONSOLE' Jul 13 09:56:45 NOTICE[1315]: Unable to create channel of type 'CONSOLE' Jul 13 09:56:45 VERBOSE[1315]: == Everyone is busy/congested at this time Jul 13 09:56:45 DEBUG[1315]: Exiting with DIALSTATUS=CHANUNAVAIL. Jul 13 09:56:45 VERBOSE[1315]: -- Executing Hangup("SIP/300-3bd6", "") in new stack Jul 13 09:56:45 VERBOSE[1315]: == Spawn extension (from-internal, 111, 2) exited non-zero on 'SIP/300-3bd6' Jul 13 09:56:45 VERBOSE[1315]: -- Executing Macro("SIP/300-3bd6", "hangupcall") in new stack Jul 13 09:56:45 DEBUG[1315]: Exiting with DIALSTATUS=CHANUNAVAIL. Jul 13 09:56:45 VERBOSE[1315]: -- Executing Hangup("SIP/300-3bd6", "") in new stack Jul 13 09:56:45 VERBOSE[1315]: == Spawn extension (from-internal, 111, 2) exited non-zero on 'SIP/300-3bd6' Jul 13 09:56:45 VERBOSE[1315]: -- Executing Macro("SIP/300-3bd6", "hangupcall") in new stack However, I'm not 100% sure the sound card drivers are working. My question is how can I test the sound card separately from Asterisk using only the command line? For example, play a file to sound card. If I know the sound card is working, I should be able find the reason why I can not connect to CONSOLE/dsp TIA Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050713/eed26636/attachment.htm
On Wed, Jul 13, 2005 at 05:19:09PM -0700, Barton Fisher wrote:> However, I'm not 100% sure the sound card drivers are working.is either chan_alsa.so or chan_oss.so loaded? What kernel version is it and from where?> My question is how can I test the sound card separately from > Asterisk using only the command line? For example, play a file to > sound card. If I know the sound card is working, I should be able > find the reason why I can not connect to CONSOLE/dspThe package sox has a handy 'play' utility. It plays to OSS, but also provides an OSS emulation. It can also play gsm files from the sounds/ dir (at least the version on Debian). This should be a standard package on most ditributions. If all seems well but there's no sound, make sure the sound is not muted. I normally use aumix. -- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend
I am not getting any audio on the console. Just to rule out the configs, I used the configs from make samples and dialed the demo call to digium. If I use mpg123 and play a file I get the music loud and clear so I don't think it's a mixer, audio driver, speaker, power, etc type problem. Any ideas as to what I need to look at? When I dial the console says: Oct 6 16:06:34 WARNING[3330]: chan_oss.c:912 oss_request: oss_request ty <console> data 0x0xb7aad760 <dsp> << Call to 'dsp' on console from <(null)><566><566> >> << Auto-answered >> copc*CLI> The extension looks like: ;INTERCOM exten => 100,1,Answer exten => 100,2,Dial(console/dsp,20,A(tones-that-follow-are-for-the-deaf)) exten => 100,3,Hangup Thanks! -Jonathan
Chan_oss isn't loaded.... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jonathan k. Creasy Sent: Thursday, October 06, 2005 4:11 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] console/dsp I am not getting any audio on the console. Just to rule out the configs, I used the configs from make samples and dialed the demo call to digium. If I use mpg123 and play a file I get the music loud and clear so I don't think it's a mixer, audio driver, speaker, power, etc type problem. Any ideas as to what I need to look at? When I dial the console says: Oct 6 16:06:34 WARNING[3330]: chan_oss.c:912 oss_request: oss_request ty <console> data 0x0xb7aad760 <dsp> << Call to 'dsp' on console from <(null)><566><566> >> << Auto-answered >> copc*CLI> The extension looks like: ;INTERCOM exten => 100,1,Answer exten => 100,2,Dial(console/dsp,20,A(tones-that-follow-are-for-the-deaf)) exten => 100,3,Hangup Thanks! -Jonathan _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Alright, chan_oss.so exists in /var/lib/asterisk/modules but asterisk says: Oct 6 16:25:34 WARNING[9168]: loader.c:325 __load_resource: /usr/lib/asterisk/modules/chan_oss: cannot open shared object file: No such file or directory Unable to load module chan_oss And during startup: [root@copc modules]# asterisk -vvvvvvvvvvvvvc | grep "chan_oss" [chan_oss.so] => (OSS Console Channel Driver) Junk at the beginning 49443303 Warning, flexibel rate not heavily tested! -Jonathan -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jonathan k. Creasy Sent: Thursday, October 06, 2005 4:20 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] console/dsp Chan_oss isn't loaded.... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jonathan k. Creasy Sent: Thursday, October 06, 2005 4:11 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] console/dsp I am not getting any audio on the console. Just to rule out the configs, I used the configs from make samples and dialed the demo call to digium. If I use mpg123 and play a file I get the music loud and clear so I don't think it's a mixer, audio driver, speaker, power, etc type problem. Any ideas as to what I need to look at? When I dial the console says: Oct 6 16:06:34 WARNING[3330]: chan_oss.c:912 oss_request: oss_request ty <console> data 0x0xb7aad760 <dsp> << Call to 'dsp' on console from <(null)><566><566> >> << Auto-answered >> copc*CLI> The extension looks like: ;INTERCOM exten => 100,1,Answer exten => 100,2,Dial(console/dsp,20,A(tones-that-follow-are-for-the-deaf)) exten => 100,3,Hangup Thanks! -Jonathan _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users