Alaw format and dir not working

Hi all,

I am new to the forum but have been using asterisk for year’s, now I’m not a hard line terminal fan but I now know what I need to get what I need to be done using the code if I have to use it and let’s just say youtube can be a blessing sometimes.

Now, my dear friend is this where I am stuck and been at this for weeks and weeks and don’t know what to do is there anyone out there who can help or point me in the right road to go to fix this.

I keep getting this me message in the logs and I can seem to find any way of fixing this listed below can anyone help

2018-04-29 13:01:32] WARNING[3498][C-00000016] format_wav.c: Does not begin with RIFF
[2018-04-29 13:01:32] WARNING[3498][C-00000016] file.c: Unable to open format wav
[2018-04-29 13:01:32] WARNING[3498][C-00000016] file.c: Unable to open custom/verybusy1 (format (alaw)): No such file or directory
[2018-04-29 13:01:32] WARNING[3498][C-00000016] app_playback.c: ast_streamfile failed on SIP/voicehist-00000006 for custom/verybusy1,

Your .wav file is not a .wav file.

Hi David551,

I Updated the file as a wav file tho so how can that be ?

Look at the first four bytes. All .wav files start with “RIFF”

od -c /usr/share/games/flightgear/Sounds/coughing.wav | head
0000000   R   I   F   F 221 024  \0  \0   W   A   V   E   f   m   t    
0000020 020  \0  \0  \0 001  \0 001  \0   @ 037  \0  \0   @ 037  \0  \0

The diagnostic you are getting is saying that is does not start that way. In that case it cannot possibly be a .wav file.