<br><br><div class="gmail_quote">On Sun, Apr 26, 2009 at 1:28 PM, jonas kellens <span dir="ltr"><<a href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
part of extensions.conf:<br>
<br>
<i><font size="2">exten => 11,1,Answer()</font></i><br>
<i><font size="2">exten => 11,n,NoOp(CallerID : ${CALLERID(all)})</font></i><br>
<i><font size="2">exten => 11,n,Playback(/tmp/welkom-tcs.alaw)</font></i><br>
<i><font size="2">exten => 11,n,GoToIfTime(09:00-17:59|mon-fri|*|*?open,s,1)</font></i><br>
<i><font size="2">; wordt doorgerouteerd naar context open, maar indien gesloten :</font></i><br>
<i><font size="2">exten => 11,n,NoOp(Oproep tijdens winkel gesloten)</font></i><br>
<i><font size="2">exten => 11,n,Playback(/tmp/winkel-gesloten.alaw)</font></i><br>
<i><font size="2">exten => 11,n,Hangup()</font></i><br>
<br>
<i><font size="2">; Record voice file to /tmp directory</font></i><br>
<i><font size="2">exten => 80,1,Wait(2) ; Call 80 to Record new Sound Files</font></i><br>
<i><font size="2">exten => 80,2,Record(/tmp/asterisk-recording:alaw) ; Press # to stop recording</font></i><br>
<i><font size="2">exten => 80,3,Wait(2)</font></i><br>
<i><font size="2">exten => 80,4,Playback(/tmp/asterisk-recording) ; Listen to your voice</font></i><br>
<i><font size="2">exten => 80,5,wait(2)</font></i><br>
<i><font size="2">exten => 80,6,Hangup</font></i><br>
<br>
When I call from one of my internal SIP-clients to let Asterisk play to me the file "/tmp/winkel-gesloten.alaw", which I recorded in alaw-format with the RECORD()-application, I get the following on the Asterisk CLI :<br>
<br>
<i><font size="2"> -- Executing [11@intern:1] Answer("SIP/GXP1200-086d6b88", "") in new stack</font></i><br>
<i><font size="2"> -- Executing [11@intern:2] NoOp("SIP/GXP1200-086d6b88", "CallerID : "callerid?" <51>") in new stack</font></i><br>
<i><font size="2"><b> -- Executing [11@intern:3] Playback("SIP/GXP1200-086d6b88", "/tmp/welkom-tcs.alaw") in new stack</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File /tmp/welkom-tcs.alaw does not exist in any format</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: file.c:954 ast_streamfile: Unable to open /tmp/welkom-tcs.alaw (format 0x8 (alaw)): No such file or directory</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/GXP1200-086d6b88 for /tmp/welkom-tcs.alaw</b></font></i><br>
<i><font size="2"> -- Executing [11@intern:4] GotoIfTime("SIP/GXP1200-086d6b88", "09:00-17:59|mon-fri|*|*?open|s|1") in new stack</font></i><br>
<i><font size="2"> -- Executing [11@intern:5] NoOp("SIP/GXP1200-086d6b88", "Oproep tijdens winkel gesloten") in new stack</font></i><br>
<i><font size="2"><b> -- Executing [11@intern:6] Playback("SIP/GXP1200-086d6b88", "/tmp/winkel-gesloten.alaw") in new stack</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File /tmp/winkel-gesloten.alaw does not exist in any format</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: file.c:954 ast_streamfile: Unable to open /tmp/winkel-gesloten.alaw (format 0x8 (alaw)): No such file or directory</b></font></i><br>
<i><font size="2"><b>[Apr 26 20:20:17] WARNING[3449]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/GXP1200-086d6b88 for /tmp/winkel-gesloten.alaw</b></font></i><br>
<i><font size="2"> -- Executing [11@intern:7] Hangup("SIP/GXP1200-086d6b88", "") in new stack</font></i><br>
<i><font size="2"> == Spawn extension (intern, 11, 7) exited non-zero on 'SIP/GXP1200-086d6b88'</font></i><br>
<br>
I've recorded the soundfile in alaw-format. The preferred format of my SIP-client and Asterisk is alaw. No mather where I put the sound file, Asterisk will not play it.<br>
I've put it in /var/lib/asterisk/sounds/ and in /tmp... but no succes.<br>
How come ?<br>
<br>
</div></blockquote><div><br>If you check the info for the playback application, you'll find that it asks you to not include the extension of the sound file. The extension is appended to the filename based on the least cost of allowed codecs.<br>
</div></div><br>