*97 and *98 Missing/Inaccessible/Corrupted Audio Files

Continuing the discussion from Freepbx 2.3.1 & Asterisk 1.4.13 voicemails have permissions set incorrectly:

I tried to get in touch with Dave but it doesn’t look like he’s a member anymore. Although at first blush this might appear a post for the Asterisk forums. Following previous updates to FreePBX (I haven’t done the latest round of updates), the Voicemail module stopped working. I am running the old AsteriskNOW for now as i’m concerned about the downtime migrating and I don’t have the time at the moment to undertake it. I am asking in here as i’m wondering if anybody has had the same issues and knows of a fix for the time being to get the voicemail on *97 and *98 back up and working.

The Asterisk debug is as follows: http://pastebin.com/nJsgcpa1

I am emphasising relevance on the following (lines 53 - 57):

– Goto (from-internal,*97,106)
– Executing [*[email protected]:106] VoiceMailMain(“SIP/048665-00000b1b”, “[email protected]”) in new stack
[2015-04-13 12:20:51] WARNING[17037][C-00002126]: file.c:701 ast_openstream_full: File vm-password does not exist in any format
[2015-04-13 12:20:51] WARNING[17037][C-00002126]: file.c:1017 ast_streamfile: Unable to open vm-password (format (ulaw)): No such file or directory
[2015-04-13 12:20:51] WARNING[17037][C-00002126]: app_voicemail.c:10576 vm_authenticate: Unable to stream password file

A quick search on the Server and the following emerges:

[[email protected] ~]# locate vm-password
[[email protected] ~]#

So they are there, try and run them and the following happens (I found this out by accident when I was trying to copy the locate command output from the Command line:

[[email protected] ~]# /usr/share/asterisk/sounds/vm-password.gsm
-bash: /usr/share/asterisk/sounds/vm-password.gsm: Permission denied
[[email protected] ~]# /usr/share/asterisk/sounds/vm-password.ulaw
-bash: /usr/share/asterisk/sounds/vm-password.ulaw: Permission denied
[[email protected] ~]# /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm
-bash: /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm: Permission denied
[[email protected] ~]#

A cursory look at the file permissions produces the following information:

[[email protected] ~]# ls -l /usr/share/asterisk/sounds/vm-password.gsm
-rw-r–r-- 1 root root 1386 Apr 29 2013 /usr/share/asterisk/sounds/vm-password.gsm
[[email protected] ~]# ls -l /usr/share/asterisk/sounds/vm-password.ulaw
-rw-r–r-- 1 root root 6640 Apr 29 2013 /usr/share/asterisk/sounds/vm-password.ulaw
[[email protected] ~]# ls -l /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm
-rw-rw-r–. 1 asterisk asterisk 3762 Apr 27 2010 /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm

Any ideas please on how to fix? Is there a quick way without having to reinstall the whole lot?

Thanks and Kind Regards,


You are getting permission denied because you are trying to execute an audio file as if it’s an executable. its not.

chown -R asterisk:asterisk /usr/share/asterisk/sounds