jonas kellens
2009-Apr-26 18:28 UTC
[asterisk-users] file.c:655 ast_openstream_full: File /tmp/winkel-gesloten.alaw does not exist in any format
part of extensions.conf: exten => 11,1,Answer() exten => 11,n,NoOp(CallerID : ${CALLERID(all)}) exten => 11,n,Playback(/tmp/welkom-tcs.alaw) exten => 11,n,GoToIfTime(09:00-17:59|mon-fri|*|*?open,s,1) ; wordt doorgerouteerd naar context open, maar indien gesloten : exten => 11,n,NoOp(Oproep tijdens winkel gesloten) exten => 11,n,Playback(/tmp/winkel-gesloten.alaw) exten => 11,n,Hangup() ; Record voice file to /tmp directory exten => 80,1,Wait(2) ; Call 80 to Record new Sound Files exten => 80,2,Record(/tmp/asterisk-recording:alaw) ; Press # to stop recording exten => 80,3,Wait(2) exten => 80,4,Playback(/tmp/asterisk-recording) ; Listen to your voice exten => 80,5,wait(2) exten => 80,6,Hangup 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 : -- Executing [11 at intern:1] Answer("SIP/GXP1200-086d6b88", "") in new stack -- Executing [11 at intern:2] NoOp("SIP/GXP1200-086d6b88", "CallerID : "callerid?" <51>") in new stack -- Executing [11 at intern:3] Playback("SIP/GXP1200-086d6b88", "/tmp/welkom-tcs.alaw") in new stack [Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File /tmp/welkom-tcs.alaw does not exist in any format [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 [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 -- Executing [11 at intern:4] GotoIfTime("SIP/GXP1200-086d6b88", "09:00-17:59|mon-fri|*|*?open|s|1") in new stack -- Executing [11 at intern:5] NoOp("SIP/GXP1200-086d6b88", "Oproep tijdens winkel gesloten") in new stack -- Executing [11 at intern:6] Playback("SIP/GXP1200-086d6b88", "/tmp/winkel-gesloten.alaw") in new stack [Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File /tmp/winkel-gesloten.alaw does not exist in any format [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 [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 -- Executing [11 at intern:7] Hangup("SIP/GXP1200-086d6b88", "") in new stack == Spawn extension (intern, 11, 7) exited non-zero on 'SIP/GXP1200-086d6b88' 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. I've put it in /var/lib/asterisk/sounds/ and in /tmp... but no succes. How come ? Thanks for the help ! Greetingz, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090426/16121269/attachment.htm
Jeff Peeler
2009-Apr-27 02:58 UTC
[asterisk-users] file.c:655 ast_openstream_full: File /tmp/winkel-gesloten.alaw does not exist in any format
On Sun, Apr 26, 2009 at 1:28 PM, jonas kellens <jonas.kellens at telenet.be>wrote:> part of extensions.conf: > > *exten => 11,1,Answer()* > *exten => 11,n,NoOp(CallerID : ${CALLERID(all)})* > *exten => 11,n,Playback(/tmp/welkom-tcs.alaw)* > *exten => 11,n,GoToIfTime(09:00-17:59|mon-fri|*|*?open,s,1)* > *; wordt doorgerouteerd naar context open, maar indien gesloten :* > *exten => 11,n,NoOp(Oproep tijdens winkel gesloten)* > *exten => 11,n,Playback(/tmp/winkel-gesloten.alaw)* > *exten => 11,n,Hangup()* > > *; Record voice file to /tmp directory* > *exten => 80,1,Wait(2) ; Call 80 to Record new Sound Files* > *exten => 80,2,Record(/tmp/asterisk-recording:alaw) ; Press # to stop > recording* > *exten => 80,3,Wait(2)* > *exten => 80,4,Playback(/tmp/asterisk-recording) ; Listen to your voice* > *exten => 80,5,wait(2)* > *exten => 80,6,Hangup* > > 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 : > > * -- Executing [11 at intern:1] Answer("SIP/GXP1200-086d6b88", "") in new > stack* > * -- Executing [11 at intern:2] NoOp("SIP/GXP1200-086d6b88", "CallerID : > "callerid?" <51>") in new stack* > * -- Executing [11 at intern:3] Playback("SIP/GXP1200-086d6b88", > "/tmp/welkom-tcs.alaw") in new stack* > *[Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File > /tmp/welkom-tcs.alaw does not exist in any format* > *[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* > *[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* > * -- Executing [11 at intern:4] GotoIfTime("SIP/GXP1200-086d6b88", > "09:00-17:59|mon-fri|*|*?open|s|1") in new stack* > * -- Executing [11 at intern:5] NoOp("SIP/GXP1200-086d6b88", "Oproep > tijdens winkel gesloten") in new stack* > * -- Executing [11 at intern:6] Playback("SIP/GXP1200-086d6b88", > "/tmp/winkel-gesloten.alaw") in new stack* > *[Apr 26 20:20:17] WARNING[3449]: file.c:655 ast_openstream_full: File > /tmp/winkel-gesloten.alaw does not exist in any format* > *[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* > *[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 > * > * -- Executing [11 at intern:7] Hangup("SIP/GXP1200-086d6b88", "") in new > stack* > * == Spawn extension (intern, 11, 7) exited non-zero on > 'SIP/GXP1200-086d6b88'* > > 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. > I've put it in /var/lib/asterisk/sounds/ and in /tmp... but no succes. > How come ? > >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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090426/71ad4be2/attachment.htm