<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Arial'; font-size: 12pt; color: #000000}</style></head><body><P>Hello all,</P>
<P> </P>
<P>I am trying to play .wav file using asterisk 1.8.7.1. I tried playing the wav files having different properties. </P>
<P>The properties of the file can be seen using 'file' command or 'ffmpeg -i <filename>'</P>
<P> </P>
<P>1. Filname: miss_audio.wav</P>
<P> </P>
<P>[root@localhost en]# file miss_audio.wav </P>
<P><STRONG>miss_audio.wav: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono 8000 Hz</STRONG></P>
<P> </P>
<P>[root@localhost en]# ffmpeg -i miss_audio.wav</P>
<P>Stream #0:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, 1 channels, s16, 64 kb/s</P>
<P> </P>
<P>I am getting the following warning in this case.</P>
<P> </P>
<P><FONT color=#3333ff>[Dec 24 15:08:47] WARNING[26513]: format_wav.c:92 check_header_fmt: Not a wav file 7<BR>[Dec 24 15:08:47] WARNING[26513]: file.c:376 fn_wrapper: Unable to open format wav</FONT></P>
<P> </P>
<P>2. Filename: msg0000.wav </P>
<P> </P>
<P>[root@localhost en]# file msg0000.wav <BR><STRONG>msg0000.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz</STRONG></P>
<P> </P>
<P>[root@localhost en]# ffmpeg -i msg0000.wav</P>
<P>Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s</P>
<P><BR>And in this case asterisk is trying to play the file in slin format.</P>
<P> </P>
<P> <FONT color=#3333ff>-- <SIP/phone1-00000000> Playing 'msg0000.slin' (language 'en')<BR>[Dec 24 15:14:10] WARNING[26566]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/phone1-00000000 for msg0000<BR> -- Auto fallthrough, channel 'SIP/phone1-00000000' status is 'UNKNOWN'</FONT></P>
<P><FONT color=#3333ff>[Dec 24 15:14:10] DEBUG[26566]: channel.c:2679 ast_softhangup_nolock: Soft-Hanging up channel 'SIP/phone1-00000000'</FONT></P>
<P>Why does asterisk start playing the file in slin format. </P>
<P> </P>
<P>I would be thankful if someone can guide me to the steps for playing the wav file in asterisk.</P>
<P> </P>
<P>Regards,</P>
<P>Shalu </P>
<P> </P>
<P> </P></body></html>