<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
part of extensions.conf:<BR>
<BR>
<I><FONT SIZE="2">exten =&gt; 11,1,Answer()</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 11,n,NoOp(CallerID : ${CALLERID(all)})</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 11,n,Playback(/tmp/welkom-tcs.alaw)</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 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 =&gt; 11,n,NoOp(Oproep tijdens winkel gesloten)</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 11,n,Playback(/tmp/winkel-gesloten.alaw)</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 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 =&gt; 80,1,Wait(2) ; Call 80 to Record new Sound Files</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 80,2,Record(/tmp/asterisk-recording:alaw) ; Press # to stop recording</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 80,3,Wait(2)</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 80,4,Playback(/tmp/asterisk-recording) ; Listen to your voice</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 80,5,wait(2)</FONT></I><BR>
<I><FONT SIZE="2">exten =&gt; 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 &quot;/tmp/winkel-gesloten.alaw&quot;, which I recorded in alaw-format with the RECORD()-application, I get the following on the Asterisk CLI :<BR>
<BR>
<I><FONT SIZE="2">&nbsp;&nbsp;&nbsp; -- Executing [11@intern:1] Answer(&quot;SIP/GXP1200-086d6b88&quot;, &quot;&quot;) in new stack</FONT></I><BR>
<I><FONT SIZE="2">&nbsp;&nbsp;&nbsp; -- Executing [11@intern:2] NoOp(&quot;SIP/GXP1200-086d6b88&quot;, &quot;CallerID : &quot;callerid?&quot; &lt;51&gt;&quot;) in new stack</FONT></I><BR>
<I><FONT SIZE="2"><B>&nbsp;&nbsp;&nbsp; -- Executing [11@intern:3] Playback(&quot;SIP/GXP1200-086d6b88&quot;, &quot;/tmp/welkom-tcs.alaw&quot;) 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">&nbsp;&nbsp;&nbsp; -- Executing [11@intern:4] GotoIfTime(&quot;SIP/GXP1200-086d6b88&quot;, &quot;09:00-17:59|mon-fri|*|*?open|s|1&quot;) in new stack</FONT></I><BR>
<I><FONT SIZE="2">&nbsp;&nbsp;&nbsp; -- Executing [11@intern:5] NoOp(&quot;SIP/GXP1200-086d6b88&quot;, &quot;Oproep tijdens winkel gesloten&quot;) in new stack</FONT></I><BR>
<I><FONT SIZE="2"><B>&nbsp;&nbsp;&nbsp; -- Executing [11@intern:6] Playback(&quot;SIP/GXP1200-086d6b88&quot;, &quot;/tmp/winkel-gesloten.alaw&quot;) 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">&nbsp;&nbsp;&nbsp; -- Executing [11@intern:7] Hangup(&quot;SIP/GXP1200-086d6b88&quot;, &quot;&quot;) in new stack</FONT></I><BR>
<I><FONT SIZE="2">&nbsp; == 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>
Thanks for the help !<BR>
<BR>
Greetingz,<BR>
Jonas.
</BODY>
</HTML>