Voice Mail troubles

This is a new install and out of the box version (2.4.0 trixbox)(2.3.1.3 FreePBX) If I try to leave a VM on an extension the system goes through the greeting and allows me to leave a message then I press the # key then 1 to save. At that point the VM lady says " I am sorry an error has occurred."

Any help would be greatly appreciated

Hoksibish

Check that the Directory path on your box exists…

/var/spool/asterisk/voicemail/default

yes the folder structure is there.
heres the permissions as well
/var/spool/asterisk/
drwxrwx— 10 asterisk asterisk 4096 Jan 8 05:40 .
drwxr-xr-x 14 root root 4096 Jan 8 05:41 …
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 dictate
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 fax
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 meetme
drwxrwxr-x 2 asterisk asterisk 4096 Jan 7 23:19 monitor
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 outgoing
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 system
drwxrwx— 2 asterisk asterisk 4096 Dec 19 03:03 tmp
drwxrwx— 4 asterisk asterisk 4096 Jan 8 05:51 voicemail

/var/spool/asterisk/voicemail
drwxrwx— 4 asterisk asterisk 4096 Jan 8 05:51 .
drwxrwx— 10 asterisk asterisk 4096 Jan 8 05:40 …
drwxrwx— 5 asterisk asterisk 4096 Jan 8 08:42 default
drwxrwx— 2 asterisk asterisk 4096 Jan 8 08:42 device

could there be any other reasons? thanks in advance

I am using pbx-in-a-flash (1.1) which includes FreePBX, although there may be slight differences.

I was able to resolve the same problem, here are the steps I took:

run the asterisk command line "asterisk -r"
place a call to the extension, let it ring to voicemail
leave a message, hangup (or press # then 1)
watch the debug output in the CLI

I noticed that the “an error has occurred” message plays after the the duration of the recording is checked. I called back and left a message of me counting to four, and that saved correctly.

To change the default recording minimum edit the “/etc/asterisk/vm_general.inc” file and set “minmessage” to a shorter duration (I am using 1). You then need to restart asterisk. In the CLI the command is “restart now”, but there are other restart options if you are in production.

One note: my pbx-in-a-flash installation was not able to connect to the asterisk CLI until I modified “/etc/asterisk/asterisk.conf” to set “astrundir => /var/run/asterisk” (it was previously /var/run which does not have the right permissions).