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 [[email protected]:43] ExecIf(“SIP/21964-00000006”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [[email protected]:44] GosubIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [[email protected]:45] MacroExit(“SIP/21964-00000006”, “”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/21964-00000006”, “0?exit”) in new stack
– Executing [[email protected]:9] Set(“SIP/21964-00000006”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:10] GosubIf(“SIP/21964-00000006”, “0?docfu,1”) in new stack
– Executing [[email protected]:11] GosubIf(“SIP/21964-00000006”, “0?docfb,1”) in new stack
– Executing [[email protected]:12] Set(“SIP/21964-00000006”, “DIALSTATUS=NOANSWER”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/21964-00000006”, “0?MacroExit()”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [[email protected]:15] Macro(“SIP/21964-00000006”, “vm,21000,NOANSWER,”) in new stack
– Executing [[email protected]:1] Macro(“SIP/21964-00000006”, “user-callerid,SKIPTTL”) in new stack
– Executing [[email protected]:1] Set(“SIP/21964-00000006”, “AMPUSER=21964”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/21964-00000006”, “14?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing [[email protected]:13] GotoIf(“SIP/21964-00000006”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/21964-00000006”, “CALLERID(number)=21964”) in new stack
– Executing [[email protected]:27] Set(“SIP/21964-00000006”, “CALLERID(name)=Wassim Zaarour”) in new stack
– Executing [[email protected]:28] Set(“SIP/21964-00000006”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/21964-00000006”, “VMGAIN=”"") in new stack
– Executing [[email protected]:3] Macro(“SIP/21964-00000006”, “blkvm-check,”) in new stack
– Executing [[email protected]:1] Set(“SIP/21964-00000006”, “GOSUB_RETVAL=”) in new stack
– Executing [[email protected]:2] MacroExit(“SIP/21964-00000006”, “”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/21964-00000006”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [[email protected]:1] Set(“SIP/21964-00000006”, “MEXTEN=21000”) in new stack
– Executing [[email protected]:2] Set(“SIP/21964-00000006”, “MMODE=NOANSWER”) in new stack
– Executing [[email protected]:3] Set(“SIP/21964-00000006”, “RETVM=”) in new stack
– Executing [[email protected]:4] Set(“SIP/21964-00000006”, “MODE=unavail”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/21964-00000006”, “1?chknomsg”) in new stack
– Goto (macro-vm,vmx,8)
– Executing [[email protected]:8] GotoIf(“SIP/21964-00000006”, “0?s-NOANSWER,1”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/21964-00000006”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,11)
– Executing [[email protected]:11] NoOp(“SIP/21964-00000006”, “Checking if ext 21000 is enabled: “) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/21964-00000006”, “1?s-NOANSWER,1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing [[email protected]:1] Macro(“SIP/21964-00000006”, “get-vmcontext,21000”) in new stack
– Executing [[email protected]:1] Set(“SIP/21964-00000006”, “VMCONTEXT=default”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/21964-00000006”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [[email protected]:300] NoOp(“SIP/21964-00000006”, “”) in new stack
– Executing [[email protected]:2] VoiceMail(“SIP/21964-00000006”, “[email protected],u”””) in new stack
– Executing [[email protected]:3] Goto(“SIP/21964-00000006”, “exit-FAILED,1”) in new stack
– Goto (macro-vm,exit-FAILED,1)
– Executing [[email protected]: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 [[email protected]:2] GotoIf(“SIP/21964-00000006”, “0?exit-RETURN,1”) in new stack
– Executing [[email protected]: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 [[email protected]: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.