[Resolved] Unable to open file (format g729): No such file

I just imported new message files into a system I am setting up and the server doesn’t seem to be able to find the files. I imported these same files to another server and they seem to work fine. Here are the details.

First the CLI messages.

May 17 19:56:59 WARNING[30298]: file.c:509 ast_openstream_full: File iti-911 does not exist in any format
May 17 19:56:59 WARNING[30298]: file.c:821 ast_streamfile: Unable to open iti-911 (format g729): No such file or directory
May 17 19:56:59 WARNING[30298]: app_playback.c:132 playback_exec: ast_streamfile failed on SIP/scotthenderson-3a43 for iti-911

Extensions.conf entry

exten => 911,1,Playback(iti-911)
exten => 911,n,Hangup

A partial listing of /usr/share/asterisk/sounds

-rw-r–r-- 1 root root 3960 2006-02-25 22:00 dir-nomatch.gsm
-rw-r–r-- 1 root root 4950 2006-02-25 22:00 dir-nomore.gsm
-rw-r–r-- 1 root root 2838 2006-02-25 22:00 hello-world.gsm
-rw-r–r-- 1 root root 7128 2006-02-25 22:00 invalid.gsm
-rwxr–r-- 1 root root 93484 2006-05-17 15:59 iti-900.wav
-rwxr–r-- 1 root root 84012 2006-05-17 15:59 iti-901.wav
-rwxr–r-- 1 root root 115244 2006-05-17 15:59 iti-902.wav
-rwxr–r-- 1 root root 127020 2006-05-17 15:59 iti-911.wav
drwxr-xr-x 2 root root 4096 2006-02-25 22:23 letters
-rw-r–r-- 1 root root 6864 2006-02-25 22:00 pbx-invalid.gsm

A few more details:

  • I can play any ot the other sounds in the directory.
  • The .wav sound files were prepaired by thevoice.digium.com
  • The .wav files work fine on another test system I tried them on.

Any thoughts or ideas would be welcome. I Have checked everything I know to check.

I found the problem, it seems that I have the sound files installed in both /usr/share/asterisk/sounds and /var/lib/asterisk/sounds.

The sound files need to be in /var/lib/asterisk/sounds.