Issue with uploaded System recordings, Please Help

Good Evening all,

I have a New FreePBX 32bit version running: 2.210.62-7.

The issue I have is when I upload system recordings I get the following error;

[2013-04-03 17:40:12] WARNING[2193]: format_wav.c:94 check_header_fmt: Not a wav file 49
[2013-04-03 17:40:12] WARNING[2193]: file.c:391 fn_wrapper: Unable to open format wav
[2013-04-03 17:40:12] WARNING[2193]: file.c:957 ast_streamfile: Unable to open custom/AfterHours (format 0x4 (ulaw)): No such file or directory
[2013-04-03 17:40:12] WARNING[2193]: pbx.c:10055 pbx_builtin_background: ast_streamfile failed on SIP/079294000-0000000a for custom/AfterHours

when I go look in the /var/lib/asterisk/sounds/custom directory all files are there and the case is correct…

Also I can “play” the recordings from within the system recordings web page.

If I record via the phone all seems to work fine. I have checked rights and compared to manually recorded file and they seem to match.

I have also checked and the recording are definitely WAV files PCM , 16bit at 8000Hz.

I’m a little lost as to where to look now???

any ideas???

Are the files owned by the asterisk user?

/var/lib/asterisk/sounds/custom
[root@oncrd1wu8260k5x custom]# ls -la
total 316
drwxrwxr-x 2 asterisk asterisk 4096 Apr 3 18:31 .
drwxrwxr-x. 4 asterisk asterisk 4096 Mar 25 14:36 …
-rw-rw-r-- 1 asterisk asterisk 20848 Apr 2 14:47 AfterHours.wav
-rw-rw-r-- 1 asterisk asterisk 21043 Apr 2 14:52 CRV-HDAH.wav
-rw-rw-r-- 1 asterisk asterisk 17533 Apr 2 14:52 CRVHD.wav
-rw-rw-r-- 1 asterisk asterisk 18508 Apr 2 15:13 LogicalHeldesk.wav
-rw-rw-r-- 1 asterisk asterisk 20588 Apr 2 14:49 LS-AfterHoursPubHol.wav
-rw-rw-r-- 1 asterisk asterisk 18638 Apr 2 14:51 LS-ConfirmAHratePub.wav
-rw-rw-r-- 1 asterisk asterisk 18443 Apr 2 14:50 LS-ConfirmAH.wav
-rw-rw-r-- 1 asterisk asterisk 11098 Apr 2 14:53 LS-DirectCall.wav
-rw-rw-r-- 1 asterisk asterisk 20718 Apr 2 14:53 LS-HDStatus.wav
-rw-rw-r-- 1 asterisk asterisk 18508 Apr 2 14:54 LS-Heldesk.wav
-rw-rw-r-- 1 asterisk asterisk 17013 Apr 2 14:54 LS-ServiceEmail.wav
-rw-rw-r-- 1 asterisk asterisk 8823 Apr 2 14:54 LS-ThanksForCalling.wav
-rw-rw-r-- 1 asterisk asterisk 52044 Apr 3 15:44 test.wav
-rw-r–r-- 1 asterisk asterisk 8823 Apr 17 2012 Thanks.wav
[root@oncrd1wu8260k5x custom]#

ormat_wav.c:94 check_header_fmt: Not a wav file 49, this error (I missed it earlier) clearly shows that Asterisk can’t identify file.

Are you sure it is mono and not stereo.

1 Like