[Asterisk-Users] Console as extension problems
David Carter
dcarter at sigfs.org
Mon Dec 6 09:18:48 MST 2004
I'm trying to set up the console as an extension (so I can set up overhead
paging), but I can't seem to get it to work. When I call my paging extension,
I get an error that it can't open the device:
-- Executing Ringing("Zap/9-1", "") in new stack
-- Executing Dial("Zap/9-1", "Console/dsp0|18|A(new/whistle)") in new stack
<< Call placed to 'dsp0' on console >>
<< Auto-answered >>
-- Called dsp0
-- OSS/dsp answered Zap/9-1
Dec 6 10:08:29 WARNING[901141]: chan_oss.c:413 soundcard_setinput: -- Remote UNIX connection disconnected
Unable to re-open DSP device: Device or resource busy
Dec 6 10:08:29 WARNING[901141]: chan_oss.c:572 oss_write: Unable to set device to input mode
Dec 6 10:08:29 WARNING[901141]: file.c:550 ast_readaudio_callback: Failed to write frame
-- Playing 'new/whistle' (language 'en')
<< Hangup on console >>
== Spawn extension (cmcm-internal, 6789, 2) exited non-zero on 'Zap/9-1'
-- Hungup 'Zap/9-1'
To make sure it wasn't a permissions issue, I set the dsp0 device to 666:
crw-rw-rw- 1 root audio 14, 3 Oct 14 15:24 /dev/dsp0
The audio device works fine with sox, mpg123, etc. I'm mystified about what
could be wrong with this.
Here's my oss.conf:
[general]
autoanswer=yes
context=paging
extension=s
The paging context in extensions.conf:
[paging]
; Using server sound card
exten => 6789,1,Ringing
exten => 6789,2,Dial(Console/dsp0,18,A(new/whistle))
exten => 6789,3,Hangup
; using paging module
;exten => 6789,1,Dial(Zap/17,18)
;exten => 6789,2,Hangup
System configuration:
Debian Sarge w/ Asterisk 1.0.1-1
T100P card going to Adtran TA750 channel bank with 5 FXS and 1 FXO card
(analog extensions on FXS ports, FXO ports currently unused)
Trunks via IAX2 to Nufone
Any insights into this would be appreciated.
Thanks,
David
--
David Carter ** dcarter at sigfs.org ** dcarter at visi.com
PGP Key 581CBE61: E07EE199C767C752 8A8B1A9F015BF2EA
Key available at www.keyserver.net
More information about the asterisk-users
mailing list