<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi gang,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>
I have a “fun” one for you. I’m not getting the quality
of sound I want out of GSM, so I’m trying to make my files into .WAV
(.wav) format. Here is the “file” output for 5 files:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>file *.WAV<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>cents.WAV: RIFF (little-endian) data, WAVE
audio, Microsoft PCM, 16 bit, mono 8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>dollars.WAV: RIFF (little-endian) data, WAVE audio,
Microsoft PCM, 8 bit, mono 8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>hundred.WAV: RIFF (little-endian) data, WAVE audio,
Microsoft PCM, 16 bit, mono 8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>million.WAV: RIFF (little-endian) data, WAVE audio,
Microsoft PCM, 16 bit, mono 8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>thousand.WAV: RIFF (little-endian) data, WAVE audio,
Microsoft PCM, 16 bit, mono 8000 Hz<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>million, thousand and hundred play, cents and dollars do not
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>here is the CLI output:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>core show version<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Asterisk 1.4.30 built by root @ debsdev-danny1 on a x86_64
running Linux on 2010-09-27 18:28:58 UTC<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [2553@default:1]
Answer("SIP/134-00000087", "") in new stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [2553@default:2]
Set("SIP/134-00000087",
"filedir=/var/lib/asterisk/sounds/digits/84108795/en") in new stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [2553@default:3]
AGI("SIP/134-00000087",
"allwavs.agi|/var/lib/asterisk/sounds/digits/84108795/en|en") in new
stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Launched AGI Script
/var/lib/asterisk/agi-bin/allwavs.agi<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script Executing Application:
(BACKGROUND) Options: (/var/lib/asterisk/sounds/digits/84108795/en/thousand)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/thousand' (language 'en')<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] ERROR[13545]: utils.c:968
ast_carefulwrite: write() returned error: Broken pipe<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script Executing Application: (BACKGROUND)
Options: (/var/lib/asterisk/sounds/digits/84108795/en/cents)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] WARNING[13545]: format_wav.c:170
check_header: Can only handle 16bits per sample: 1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] WARNING[13545]: file.c:385 fn_wrapper:
Unable to open format wav<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] WARNING[13545]: file.c:991 ast_streamfile:
Unable to open /var/lib/asterisk/sounds/digits/84108795/en/cents (format 0x4
(ulaw)): No such file or directory<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] WARNING[13545]: pbx.c:5752
pbx_builtin_background: ast_streamfile failed on SIP/134-00000087 for
/var/lib/asterisk/sounds/digits/84108795/en/cents<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:22] ERROR[13545]: utils.c:968
ast_carefulwrite: write() returned error: Broken pipe<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script Executing Application:
(BACKGROUND) Options: (/var/lib/asterisk/sounds/digits/84108795/en/million)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/million' (language 'en')<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:23] ERROR[13545]: utils.c:968
ast_carefulwrite: write() returned error: Broken pipe<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script Executing Application:
(BACKGROUND) Options: (/var/lib/asterisk/sounds/digits/84108795/en/hundred)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- <SIP/134-00000087> Playing
'/var/lib/asterisk/sounds/digits/84108795/en/hundred' (language 'en')<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] ERROR[13545]: utils.c:968
ast_carefulwrite: write() returned error: Broken pipe<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script Executing Application:
(BACKGROUND) Options: (/var/lib/asterisk/sounds/digits/84108795/en/dollars)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142
check_header: Unexpected header size 16<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper:
Unable to open format wav49<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: format_wav_gsm.c:142
check_header: Unexpected header size 16<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: file.c:385 fn_wrapper: Unable
to open format wav49<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: file.c:991 ast_streamfile:
Unable to open /var/lib/asterisk/sounds/digits/84108795/en/dollars (format 0x4
(ulaw)): No such file or directory<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] WARNING[13545]: pbx.c:5752 pbx_builtin_background:
ast_streamfile failed on SIP/134-00000087 for
/var/lib/asterisk/sounds/digits/84108795/en/dollars<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>[Oct 12 14:54:24] ERROR[13545]: utils.c:968
ast_carefulwrite: write() returned error: Broken pipe<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- AGI Script allwavs.agi completed, returning
0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [2553@default:4]
Hangup("SIP/134-00000087", "") in new stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> == Spawn extension (default, 2553, 4) exited non-zero
on 'SIP/134-00000087'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [h@default:1]
Goto("SIP/134-00000087", "end-call|h|1") in new stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Goto (end-call,h,1)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> -- Executing [h@end-call:1]
Hangup("SIP/134-00000087", "") in new stack<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> == Spawn extension (end-call, h, 1) exited non-zero
on 'SIP/134-00000087'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve googled for this and still no joy…
Any ideas?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Danny Nicholas<o:p></o:p></span></font></p>
</div>
</body>
</html>