Johan Sandgren
2009-Aug-20 15:47 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
I'm trying to play a wav-file on a channel. This is what I see in the asterisk debug console AGI Rx << STREAM FILE "test.wav" "12345" [Aug 20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: File test.wav does not exist in any format So it doesn't find the file, or it's in a wrong format? I can listen to it with windows media player... it's a wave-file. I even recorded it yesterday with asterisk recordFile as a wav-file. And it did play yesterday! :) Weird! It's still in the same folder: /var/lib/asterisk/sounds/ But even then, I get this error message mentioned. Where should I search for the error? I'm out of ideas /Johan _______________ Johan Sandgren Svep Design Center AB Phone +46 46 192 722 Mobile +46 70 173 4152 Box 1233, 221 05 Lund, Sweden E-mail jsa at svep.se Website www.svep.se<http://www.svep.se/> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090820/b2550de7/attachment.htm
Danny Nicholas
2009-Aug-20 15:55 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
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. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Johan Sandgren Sent: Thursday, August 20, 2009 10:47 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-) I'm trying to play a wav-file on a channel. This is what I see in the asterisk debug console AGI Rx << STREAM FILE "test.wav" "12345" [Aug 20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: File test.wav does not exist in any format So it doesn't find the file, or it's in a wrong format? I can listen to it with windows media player. it's a wave-file. I even recorded it yesterday with asterisk recordFile as a wav-file. And it did play yesterday! :-) Weird! It's still in the same folder: /var/lib/asterisk/sounds/ But even then, I get this error message mentioned. Where should I search for the error? I'm out of ideas /Johan _______________ Johan Sandgren Svep Design Center AB Phone +46 46 192 722 Mobile +46 70 173 4152 Box 1233, 221 05 Lund, Sweden E-mail jsa at svep.se Website <http://www.svep.se/> www.svep.se -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090820/a9cc4fa8/attachment.htm
Steve Howes
2009-Aug-20 15:56 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
On 20 Aug 2009, at 16:47, Johan Sandgren wrote:> > I?m trying to play a wav-file on a channel. > > This is what I see in the asterisk debug console > > AGI Rx << STREAM FILE "test.wav" "12345" > [Aug 20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: > File test.wav does not exist in any format > > So it doesn?t find the file, or it?s in a wrong format? >Show us your dialplan. We need to know what you are putting in, rather than just what you are getting out. Chances are you are putting '.wav' in your filename in the dialplan rather than missing it off. Steve
Miguel Molina
2009-Aug-20 16:13 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
Johan Sandgren escribi?:> > > > I'm trying to play a wav-file on a channel. > > > > This is what I see in the asterisk debug console > > > > AGI Rx << STREAM FILE "test.wav" "12345" > > [Aug 20 16:10:19] WARNING[25219]: file.c:602 ast_openstream_full: File > test.wav does not exist in any format > > > > So it doesn't find the file, or it's in a wrong format? > > > > I can listen to it with windows media player... it's a wave-file. > > I even recorded it yesterday with asterisk recordFile as a wav-file. > > And it did play yesterday! J > > Weird! > > > > It's still in the same folder: /var/lib/asterisk/sounds/ > > > > But even then, I get this error message mentioned. > > > > Where should I search for the error? > > > > I'm out of ideas > > > > /Johan > > > > *_______________* > > *Johan Sandgren* > > Svep Design Center AB > > Phone +46 46 192 722 > > Mobile +46 70 173 4152 > > Box 1233, 221 05 Lund, Sweden > > E-mail jsa at svep.se > > Website www.svep.se <http://www.svep.se/> >Hi, Try specifying the file without the extension on your AGI: AGI Rx << STREAM FILE "test" "12345" Just like the Playback() application, asterisk should look for the filename in any compatible format that it supports. Cheers, -- Ing. Miguel Molina Grupo de Tecnolog?a Millenium Phone Center -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090820/0646a41b/attachment.htm
Steve Edwards
2009-Aug-21 00:36 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
On Fri, 21 Aug 2009, Lee, John (Sydney) wrote:> How can I check what format my channels are using?Format? Format is the "envelope." Codec is the algorithm used to encode and decode. Try "sip show peer <peer-name>" to see which codecs are configured (allowed) for that peer. Some variant of "show channel <channel-name>" will show you what codecs are being used by an in-progress call. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Lee, John (Sydney)
2009-Aug-21 00:47 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
Is this the one you are talking about? Do you mean that if I play MOH using any of the formats below, then there will be no CPUs wasted for translation purposes? *CLI> core show codecs Disclaimer: this command is for informational purposes only. It does not indicate anything about your configuration. INT BINARY HEX TYPE NAME DESC ------------------------------------------------------------------------ -------- 1 (1 << 0) (0x1) audio g723 (G.723.1) 2 (1 << 1) (0x2) audio gsm (GSM) 4 (1 << 2) (0x4) audio ulaw (G.711 u-law) 8 (1 << 3) (0x8) audio alaw (G.711 A-law) 16 (1 << 4) (0x10) audio g726aal2 (G.726 AAL2) 32 (1 << 5) (0x20) audio adpcm (ADPCM) 64 (1 << 6) (0x40) audio slin (16 bit Signed Linear PCM) 128 (1 << 7) (0x80) audio lpc10 (LPC10) 256 (1 << 8) (0x100) audio g729 (G.729A) 512 (1 << 9) (0x200) audio speex (SpeeX) 1024 (1 << 10) (0x400) audio ilbc (iLBC) 2048 (1 << 11) (0x800) audio g726 (G.726 RFC3551) 4096 (1 << 12) (0x1000) audio g722 (G722) 65536 (1 << 16) (0x10000) image jpeg (JPEG image) 131072 (1 << 17) (0x20000) image png (PNG image) 262144 (1 << 18) (0x40000) video h261 (H.261 Video) 524288 (1 << 19) (0x80000) video h263 (H.263 Video) 1048576 (1 << 20) (0x100000) video h263p (H.263+ Video) 2097152 (1 << 21) (0x200000) video h264 (H.264 Video)
Tzafrir Cohen
2009-Aug-21 09:52 UTC
[asterisk-users] Cannot play soundfile, doesnt find it or wrong format? Weird, worked yesterday! :-)
On Thu, Aug 20, 2009 at 05:36:47PM -0700, Steve Edwards wrote:> On Fri, 21 Aug 2009, Lee, John (Sydney) wrote: > > > How can I check what format my channels are using? > > Format? Format is the "envelope." Codec is the algorithm used to encode > and decode. > > Try "sip show peer <peer-name>" to see which codecs are configured > (allowed) for that peer. > > Some variant of "show channel <channel-name>" will show you what codecs > are being used by an in-progress call.sip show channels iax2 show channels Will also show you the codecs actually used by SIP/IAX channels ("calls"). -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Seemingly Similar Threads
- Same number for each caller, but should reach different zap-channels, how?
- originate problem
- Incoming caller presentation doesn't work - out of ideas
- Error checking asterisk method - suggestions?
- Asterisk V10, SIP MESSAGE fails for unknown reason, missing DNS-lookup?