[Asterisk-Users] gsm/wav format not recognized in Background()
application
james
pcsupport at shaw.ca
Sun Jan 23 01:19:51 MST 2005
Hardware I have
Old celeron 300a asus p2b motherboard
256 megs ram
X100p
Esoniq pci 128 "sound blaster"
Basicly I have created sox rec and arecord gsm and wav files for a basic
start dial plan script and it does not seem to recognize the files I
created.
I can substitute any default sound file in /var/lib/asterisk/sounds
directory in place of my own custom Background(greeting) gsm file and it
will work when the Answer application kicks in. When I insert my own
sound files I hear nothing but a click. I can push in extentions and it
will revert to voicemail as requird.
Here is some of my extension.conf file
[incoming]
exten => s,1,Wait,1
exten => s,2,Answer()
exten => s,3,NoOp(${CALLERID})
exten => s,4,Background(greeting1)
exten => t,1,Goto(s,4)
exten => 100,1,Dial(IAX2/100)
exten => 100,2,Voicemail(u100)
exten => 200,1,Voicemail(u200)
I have created a new greeting.gsm called greeting1.
I can play is fine when using sox play command but for unknown reasons
not when run by asterisk. Any and all sound applications are not running
at the moment to prevent any conflics.
I created the file as a wav file like rec greeting1.wav -r 4000 vol 1
Then convert it with sox greeting1.wav -r 8000 -c 1 greeting1.gsm
resample -ql
I replay the gsm to test it. It sounds clear with some static.
Then these errors come up in CLI when dialing into my zap card:
NG[234]: format_wav.c:159 check_header: Unexpected freqency 4000
Jan 22 21:42:16 WARNING[234]: file.c:412 ast_filehelper: Unable to open
fd on /var/lib/asterisk/sounds /greeting1.wav
Jan 22 21:42:16 WARNING[234]: file.c:790 ast_streamfile: Unable to open
greeting1 (format unknown): No such file or
directory
Jan 22 21:42:16 WARNING[234]: pbx.c:4959 pbx_builtin_background:
ast_streamfile failed on Zap/1-1 for greeting1
Jan 22 21:42:26 WARNING[234]: format_wav.c:159 check_header: Unexpected
freqency 4000
Jan 22 21:42:26 WARNING[234]: file.c:412 ast_filehelper: Unable to open
fd on /var/lib/asterisk/sounds /greeting1.wav
Jan 22 21:42:26 WARNING[234]: file.c:790 ast_streamfile: Unable to open
greeting1 (format unknown): No such file or
directory
Jan 22 21:42:26 WARNING[234]: pbx.c:4959 pbx_builtin_background:
ast_streamfile failed on Zap/1-1 for greeting1
So anyone might give me a idea what I may be doing wrong?
here is my lsmod if this will help
James
Module Size Used by Not tainted
snd-pcm-oss 37736 1 (autoclean)
snd-mixer-oss 12504 0 (autoclean) [snd-pcm-oss]
wcfxo 8384 1
zaptel 175904 6 [wcfxo]
snd-ens1370 7780 2
snd-pcm 56072 0 [snd-pcm-oss snd-ens1370]
snd-timer 13604 0 [snd-pcm]
snd-page-alloc 6328 0 [snd-ens1370 snd-pcm]
snd-rawmidi 12740 0 [snd-ens1370]
snd-seq-device 3888 0 [snd-rawmidi]
snd-ak4531-codec 4824 0 [snd-ens1370]
snd 30852 1 [snd-pcm-oss snd-mixer-oss snd-ens1370
snd-pcm snd-timer snd-rawmidi snd-seq-device snd-ak4531-codec]
3c59x 25648 1
gameport 1420 0 [snd-ens1370]
soundcore 3396 6 [snd]
agpgart 43940 0 (unused)
More information about the asterisk-users
mailing list