<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>&nbsp;</P>
<P>I am trying to play .wav file using asterisk 1.8.7.1.&nbsp; 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 &lt;filename&gt;'</P>
<P>&nbsp;</P>
<P>1.&nbsp; Filname: miss_audio.wav</P>
<P>&nbsp;</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>&nbsp;</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>&nbsp;</P>
<P>I am getting the following warning in this case.</P>
<P>&nbsp;</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>&nbsp;</P>
<P>2. Filename: msg0000.wav </P>
<P>&nbsp;</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>&nbsp;</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&nbsp; asterisk is trying to play the file in slin format.</P>
<P>&nbsp;</P>
<P>&nbsp;<FONT color=#3333ff>-- &lt;SIP/phone1-00000000&gt; 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>&nbsp;&nbsp;&nbsp; -- 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>&nbsp;</P>
<P>I would be thankful if someone can guide me to the steps for playing the wav file in asterisk.</P>
<P>&nbsp;</P>
<P>Regards,</P>
<P>Shalu </P>
<P>&nbsp;</P>
<P>&nbsp;</P></body></html>