WAV plays great in Windows but Asterisk doesn't recognize it

I have a bunch of WAV files that Asterisk refuses to recognize/play. They were made on a Mac and play great in Windows, i.e. Windows Media Player.

If I convert them to GSM Asterisk plays them but they sound horrible so I’d like to keep them WAV.

I’m running Asterisk 1.8.

In my sip.conf file I do have the following lines:

[general] ... ;disallow=all ; First disallow all codecs allow=ulaw ; Allow codecs in order of preference allow=alaw allow=gsm

The errors Asterisk reports are:

[Dec 29 14:18:43] WARNING[2565]: format_wav.c:108 check_header: Does not say fmt [Dec 29 14:18:43] WARNING[2565]: file.c:371 fn_wrapper: Unable to open format wav

I guess my questions are:

  • How do I know what kind of WAV files I have?
  • I do have the Linux program “sox” but the amount of options you can specify are mind boggling. Is there a specific format I can give “sox” that Asterisk will definitely recognize?

Thanks in advance!

viewtopic.php?f=13&t=72973&p=141687&hilit=sox&sid=5e004db2500a99c05d3bf5933a5c5cfd#p141687

Refer to the last post :wink:

Worked great, thank you!