App Monitor & MixMonitor make corrupt wav files

core show version
Asterisk 11.2.1 built by root @ office on a x86_64 running Linux on 2013-01-30 10:29:28 UTC

uname -a
Linux office 2.6.31.14-0.8-desktop #1 SMP PREEMPT 2011-04-06 18:09:24 +0200 x86_64 x86_64 x86_64 GNU/Linux

extension.conf
exten => _XXX,1,Set(mon_data=${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)})
exten => _XXX,2,mixmonitor(${CALLERID(num)}-${EXTEN}-${mon_data}.wav,W(1))

exten => _XXX,1,Set(mon_data=${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)})
exten => _XXX,2,monitor(wav,${CALLERID(num)}-${EXTEN}-${mon_data},mb)

All work ok without: wav files are not zero length but corrupt, and not recognized by audio players like vls,quick time etc, please help me !
VLC report :
Media Type 0:

Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_WAVE {E436EB8B-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0

That are header of corrupt file : od -x 311-312-20130201-044643.wav | more
0000000 4952 4646 0000 0000 4157 4556 6d66 2074
0000020 0010 0000 0001 0001 1f40 0000 3e80 0000
0000040 0002 0010 6164 6174 0000 0000 0030 0030
0000060 fff0 0030 0010 ffd0 ffd0 ffd0 ffd0 ffb0
0000100 ffd0 ffd0 ffd0 ffd0 fff0 fff0 0010 0030
0000120 0010 0050 0030 fff0 0010 0010 0010 fff0
0000140 fff0 fff0 ffd0 ffd0 ffd0 ffd0 ffd0 ffd0
0000160 ffd0 0010 0010 0010 0010 0030 0010 0010
0000200 0010 0010 fff0 0010 0010 fff0 fff0 ffd0
0000220 ffd0 fff0 fff0 ffd0 0010 0010 fff0 0010
0000240 0010 0010 0010 0010 fff0 0010 0010 fff0
0000260 fff0 0010 fff0 fff0 0010 0010 0010 fff0
0000300 fff0 fff0 fff0 fff0 fff0 fff0 0030 fff0
0000320 fff0 0030 fff0 fff0 0030 fff0 fff0 0010
0000340 fff0 0010 0010 fff0 fff0 ffd0 ffd0 ffb0
0000360 ffd0 0010 0010 0010 0030 0010 0010 0010
0000400 fff0 fff0 0030 0010 ffd0 0010 0010 ffb0
0000420 ffd0 fff0 ffd0 fff0 0010 fff0 0010 0030
0000440 fff0 0010 0030 0010 ffd0 0010 0010 ffd0
0000460 fff0 0010 fff0 ffd0 0010 fff0 ffd0 0010
0000500 ffd0 fff0 0050 0010 fff0 0030 0030 fff0
0000520 0010 0010 ffb0 ffd0 0010 fff0 fff0 0010
0000540 ffd0 ffd0 fff0 fff0 ff90 fff0 0020 0020
0000560 0060 0060 0020 0020 0040 ffe0 ffe0 ffc0
0000600 ffc0 ffc0 0000 ffc0 ffc0 ffc0 ffc0 ffa0
0000620 0000 0020 0000 0040 0060 0020 0040 0020
0000640 ffe0 ffe0 0000 ffe0 ffa0 0000 ffe0 ffa0
0000660 0000 0000 ffc0 ffe0 0020 0000 0000 0040

What format does the Unix “file” command think they are?

file 911-300-20130201-180302-out.wav
911-300-20130201-180302-out.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz

Hi david55 !
Thanks for your question ! Now I find solution for that - after convert that wav files with “lame” to mp3 format like
lame -f --silent 911-300-20130201-180302-out.wav 911-300-20130201-180302.mp3
All players gets that files without problem !
Many many thanks for you ! :smile: