Voicemail FAILURE FreePBX 2.9RC 1.3|Asterisk 1.8|Core 2.9.0rc1.4|Voicemail 2.9.0.5

I have FreePBX 2.9RC 1.3|Asterisk 1.8|Core 2.9.0rc1.4|Voicemail 2.9.0.5

I have had many problems with voicemail since upgrade to Freepbx 2.9
i don’t know at exactly which upgrade after 2.9 it started failing, but when the voicemail module was 2.9.0.4 it was not saving the voicemails but it was not failing the behavior was normal.

After i upgraded the voicemail module to 2.9.0.5 voicemail fails immediately after the phone rings 5 times (i specified 5 times).
So after the 5 rings it says " i’m sorry an error has occurred"

– Nobody picked up in 20000 ms
– Executing [s@macro-dial-one:43] ExecIf(“SIP/21964-00000006”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [s@macro-dial-one:44] GosubIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [s@macro-dial-one:45] MacroExit(“SIP/21964-00000006”, “”) in new stack
– Executing [s@macro-exten-vm:8] GotoIf(“SIP/21964-00000006”, “0?exit”) in new stack
– Executing [s@macro-exten-vm:9] Set(“SIP/21964-00000006”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:10] GosubIf(“SIP/21964-00000006”, “0?docfu,1”) in new stack
– Executing [s@macro-exten-vm:11] GosubIf(“SIP/21964-00000006”, “0?docfb,1”) in new stack
– Executing [s@macro-exten-vm:12] Set(“SIP/21964-00000006”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [s@macro-exten-vm:13] ExecIf(“SIP/21964-00000006”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:14] GotoIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [s@macro-exten-vm:15] Macro(“SIP/21964-00000006”, “vm,21000,NOANSWER,”) in new stack
– Executing [s@macro-vm:1] Macro(“SIP/21964-00000006”, “user-callerid,SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/21964-00000006”, “AMPUSER=21964”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/21964-00000006”, “14?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/21964-00000006”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/21964-00000006”, “CALLERID(number)=21964”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/21964-00000006”, “CALLERID(name)=Wassim Zaarour”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/21964-00000006”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-vm:2] Set(“SIP/21964-00000006”, “VMGAIN=”"") in new stack
– Executing [s@macro-vm:3] Macro(“SIP/21964-00000006”, “blkvm-check,”) in new stack
– Executing [s@macro-blkvm-check:1] Set(“SIP/21964-00000006”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-check:2] MacroExit(“SIP/21964-00000006”, “”) in new stack
– Executing [s@macro-vm:4] GotoIf(“SIP/21964-00000006”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [vmx@macro-vm:1] Set(“SIP/21964-00000006”, “MEXTEN=21000”) in new stack
– Executing [vmx@macro-vm:2] Set(“SIP/21964-00000006”, “MMODE=NOANSWER”) in new stack
– Executing [vmx@macro-vm:3] Set(“SIP/21964-00000006”, “RETVM=”) in new stack
– Executing [vmx@macro-vm:4] Set(“SIP/21964-00000006”, “MODE=unavail”) in new stack
– Executing [vmx@macro-vm:5] GotoIf(“SIP/21964-00000006”, “1?chknomsg”) in new stack
– Goto (macro-vm,vmx,8)
– Executing [vmx@macro-vm:8] GotoIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [vmx@macro-vm:9] GotoIf(“SIP/21964-00000006”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,11)
– Executing [vmx@macro-vm:11] NoOp(“SIP/21964-00000006”, “Checking if ext 21000 is enabled: “) in new stack
– Executing [vmx@macro-vm:12] GotoIf(“SIP/21964-00000006”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-vm:1] Macro(“SIP/21964-00000006”, “get-vmcontext,21000”) in new stack
– Executing [s@macro-get-vmcontext:1] Set(“SIP/21964-00000006”, “VMCONTEXT=default”) in new stack
– Executing [s@macro-get-vmcontext:2] GotoIf(“SIP/21964-00000006”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [s@macro-get-vmcontext:300] NoOp(“SIP/21964-00000006”, “”) in new stack
– Executing [s-NOANSWER@macro-vm:2] VoiceMail(“SIP/21964-00000006”, “21000@default,u”””) in new stack
– Executing [s-NOANSWER@macro-vm:3] Goto(“SIP/21964-00000006”, “exit-FAILED,1”) in new stack
– Goto (macro-vm,exit-FAILED,1)
– Executing [exit-FAILED@macro-vm:1] Playback(“SIP/21964-00000006”, “im-sorry&an-error-has-occured”) in new stack
– <SIP/21964-00000006> Playing ‘im-sorry.gsm’ (language ‘en’)
– <SIP/21964-00000006> Playing ‘an-error-has-occured.gsm’ (language ‘en’)
– Executing [exit-FAILED@macro-vm:2] GotoIf(“SIP/21964-00000006”, “0?exit-RETURN,1”) in new stack
– Executing [exit-FAILED@macro-vm:3] Hangup(“SIP/21964-00000006”, “”) in new stack
== Spawn extension (macro-vm, exit-FAILED, 3) exited non-zero on ‘SIP/21964-00000006’ in macro ‘vm’
== Spawn extension (macro-exten-vm, s, 15) exited non-zero on ‘SIP/21964-00000006’ in macro ‘exten-vm’
== Spawn extension (from-internal, 21000, 2) exited non-zero on ‘SIP/21964-00000006’
– Executing [h@from-internal:1] Hangup(“SIP/21964-00000006”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/21964-00000006’

This is usually caused by permissions or some other condition that prevents Asterisk from writing and/or reading to the voicemail files.