<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Can you play it from a Playback or
Background command? Did you try streaming it without the .wav
extension? BTW, you eat CPU trying to play wav files across
channels (gsm is preferable (IMO) ) and the file has to be at 8000 Khz for
Asterisk to like it.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Johan Sandgren<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 20, 2009
10:47 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Cannot
play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)</span></font><font
size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I’m
trying to play a wav-file on a channel.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>This
is what I see in the asterisk debug console<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>AGI
Rx << STREAM FILE "test.wav" "12345"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>[Aug
20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: File test.wav does
not exist in any format<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>So
it doesn’t find the file, or it’s in a wrong format?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I
can listen to it with windows media player… it’s a wave-file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I
even recorded it yesterday with asterisk recordFile as a wav-file.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>And
it did play yesterday! </span></font><font face=Wingdings><span
style='font-family:Wingdings'>J</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>Weird!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>It’s
still in the same folder: /var/lib/asterisk/sounds/<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>But
even then, I get this error message mentioned.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>Where
should I search for the error?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>I’m
out of ideas<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'>/Johan<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><b><font size=6 color="#27acaf" face=Verdana><span lang=SV
style='font-size:24.0pt;font-family:Verdana;color:#27ACAF;font-weight:bold'>_______________</span></font></b><font
face=Verdana><span lang=SV style='font-family:Verdana'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><b><font size=2 face=Verdana><span
lang=SV style='font-size:10.0pt;font-family:Verdana;font-weight:bold'>Johan
Sandgren</span></font></b><font size=2 face=Verdana><span lang=SV
style='font-size:10.0pt;font-family:Verdana'> <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
lang=SV style='font-size:10.0pt;font-family:Verdana'>Svep Design Center
AB
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Verdana><span
lang=EN-GB style='font-size:8.0pt;font-family:Verdana'>Phone +46 46 192 722<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Verdana><span
lang=EN-GB style='font-size:8.0pt;font-family:Verdana'>Mobile +46 70 173 4152<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><st1:address w:st="on"><st1:Street
w:st="on"><font size=1 face=Verdana><span lang=EN-GB style='font-size:8.0pt;
font-family:Verdana'>Box</span></font></st1:Street><font size=1 face=Verdana><span
lang=EN-GB style='font-size:8.0pt;font-family:Verdana'> 1233</span></font></st1:address><font
size=1 face=Verdana><span lang=EN-GB style='font-size:8.0pt;font-family:Verdana'>,
</span></font><font size=1 face=Verdana><span style='font-size:8.0pt;
font-family:Verdana'>221 05 <st1:City w:st="on">Lund</st1:City>, <st1:country-region
w:st="on"><st1:place w:st="on">Sweden</st1:place></st1:country-region>
<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Verdana><span
lang=EN-GB style='font-size:8.0pt;font-family:Verdana'>E-mail <a
href="jsa@svep.se">jsa@svep.se</a></span></font><font size=1 face=Verdana><span
style='font-size:8.0pt;font-family:Verdana'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=1 face=Verdana><span
style='font-size:8.0pt;font-family:Verdana'>Website </span></font><font size=1
face=Verdana><span lang=SV style='font-size:8.0pt;font-family:Verdana'><a
href="http://www.svep.se/"><span lang=EN-GB>www.svep.se</span></a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=SV style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>