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: *97 and *98 Missing/Inaccessible/Corrupted Audio Files - Pastebin.com
I am emphasising relevance on the following (lines 53 - 57):
– Goto (from-internal,*97,106)
– Executing [*97@from-internal:106] VoiceMailMain(“SIP/048665-00000b1b”, “048665@default”) 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:
[root@80 ~]# locate vm-password
/usr/share/asterisk/sounds/vm-password.gsm
/usr/share/asterisk/sounds/vm-password.ulaw
/var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm
[root@80 ~]#
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:
[root@80 ~]# /usr/share/asterisk/sounds/vm-password.gsm
-bash: /usr/share/asterisk/sounds/vm-password.gsm: Permission denied
[root@80 ~]# /usr/share/asterisk/sounds/vm-password.ulaw
-bash: /usr/share/asterisk/sounds/vm-password.ulaw: Permission denied
[root@80 ~]# /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm
-bash: /var/lib/asterisk/sounds/en/pls-enter-vm-password.gsm: Permission denied
[root@80 ~]#
A cursory look at the file permissions produces the following information:
[root@80 ~]# 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
[root@80 ~]# 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
[root@80 ~]# 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,
Beanie.