<br><br><div class="gmail_quote">On Jan 1, 2008 3:36 PM, Vincent <<a href="mailto:vincent.delporte@bigfoot.com">vincent.delporte@bigfoot.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br><br>Happy New Year! I succesfully installed the Ports of Zaptel BSD 1.4.0<br>and Asterisk 1.4.13 (that's the latest in the Ports). To save CPU, I'd<br>like to play PCM WAV files instead of eg. GSM. Per...
<br><br><a href="http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asterisk" target="_blank">www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asterisk</a><br><br>... I recorded a sample of my voice using XP's Sound Recorder, then
<br>ran the following :<br><br>sox test_wav.wav -r 8000 -c 1 -s -w test_wav_out.wav resample -ql<br><br>But it seems like I'm missing the codec or something:<br><br>===========<br> -- Executing [s@default:2] Playback("SIP/2000-0871d000",
<br>"/usr/local/lib/asterisk/test_wav_out.wav") in new stack<br><br>WARNING[37390]: file.c:563 ast_openstream_full: File<br>/usr/local/lib/asterisk/test_wav_out.wav does not exist in any format<br><br>WARNING[37390]:
file.c:866 ast_streamfile: Unable to open<br>/usr/local/lib/asterisk/test_wav_out.wav (format 0x4 (ulaw)): No such<br>file or directory<br>===========<br></blockquote></div>Happy New Year! It seems from the console output that you have specified the extension of the filename in your dialplan. That doesn't work with asterisk. All you need to do is specify the name of the file you want to play without the extension like
<br><br>s,2,Playback(/usr/local/lib/asterisk/test_wav_out)<br><br>And asterisk will automatically pickup the file that it can play with any asterisk supported format from the specified path.<br clear="all"><br>-- <br>Godson Gera,
<br><a href="http://godson.in">http://godson.in</a><br>Asterisk India<br>