VM cannot record message to file

I dail to a numbert and this number is unavailable and transfer to VM.
I leave message to VM and I can review it .Then accept to save message .
But I cannot see the message in the VM inbox …

why??

Below is the date …

Asterisk 1.6.2.11

Verbosity was 3 and is now 17
Core debug was 0 and is now 17
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/20001000-00000007”, “exten-vm,20001001,20001001”) in new stack
– Executing [[email protected]:1] Macro(“SIP/20001000-00000007”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/20001000-00000007”, “AMPUSER=20001000”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/20001000-00000007”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/20001000-00000007”, “1?Set(REALCALLERIDNUM=20001000)”) in new stack
– Executing [[email protected]:4] Set(“SIP/20001000-00000007”, “AMPUSER=20001000”) in new stack
– Executing [[email protected]:5] Set(“SIP/20001000-00000007”, “AMPUSERCIDNAME=20001000”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/20001000-00000007”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/20001000-00000007”, “AMPUSERCID=20001000”) in new stack
– Executing [[email protected]:8] Set(“SIP/20001000-00000007”, “CALLERID(all)=“20001000” <20001000>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/20001000-00000007”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“SIP/20001000-00000007”, “__TTL=64”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/20001000-00000007”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] NoOp(“SIP/20001000-00000007”, “Using CallerID “20001000” <20001000>”) in new stack
– Executing [[email protected]:2] Set(“SIP/20001000-00000007”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/20001000-00000007”, “VMBOX=20001001”) in new stack
– Executing [[email protected]:4] Set(“SIP/20001000-00000007”, “EXTTOCALL=20001001”) in new stack
– Executing [[email protected]:5] Set(“SIP/20001000-00000007”, “CFUEXT=”) in new stack
– Executing [[email protected]:6] Set(“SIP/20001000-00000007”, “CFBEXT=”) in new stack
– Executing [[email protected]:7] Set(“SIP/20001000-00000007”, “RT=15”) in new stack
– Executing [[email protected]:8] Macro(“SIP/20001000-00000007”, “record-enable,20001001,IN”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/20001000-00000007”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“SIP/20001000-00000007”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/20001000-00000007”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,16)
– Executing [[email protected]:16] GotoIf(“SIP/20001000-00000007”, “1?IN”) in new stack
– Goto (macro-record-enable,s,21)
– Executing [[email protected]:21] ExecIf(“SIP/20001000-00000007”, “1?MacroExit()”) in new stack
– Executing [[email protected]:9] Macro(“SIP/20001000-00000007”, “dial,15,tr,20001001”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/20001000-00000007”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [[email protected]:3] AGI(“SIP/20001000-00000007”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is ‘20001000’ number is ‘20001000’
> dialparties.agi: USE_CONFIRMATION: ‘FALSE’
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 20001001 to extension map
– dialparties.agi: Extension 20001001 cf is disabled
– dialparties.agi: Extension 20001001 do not disturb is disabled
> dialparties.agi: extnum 20001001 has: cw: 1; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 4 (UNAVAILABLE)
– dialparties.agi: dbset CALLTRACE/20001001 to 20001000
– dialparties.agi: Filtered ARG3: 20001001
– <SIP/20001000-00000007>AGI Script dialparties.agi completed, returning 0
– Executing [[email protected]:7] Dial(“SIP/20001000-00000007”, “SIP/20001001,15,tr”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:8] Set(“SIP/20001000-00000007”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:9] GosubIf(“SIP/20001000-00000007”, “0?CHANUNAVAIL,1”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/20001000-00000007”, “0?exit,return”) in new stack
– Executing [[email protected]:11] Set(“SIP/20001000-00000007”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/20001000-00000007”, “0?docfu,1”) in new stack
– Executing [[email protected]:13] GosubIf(“SIP/20001000-00000007”, “0?docfb,1”) in new stack
– Executing [[email protected]:14] Set(“SIP/20001000-00000007”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:15] NoOp(“SIP/20001000-00000007”, “Voicemail is ‘20001001’”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/20001000-00000007”, “0?s-CHANUNAVAIL,1”) in new stack
– Executing [[email protected]:17] NoOp(“SIP/20001000-00000007”, “Sending to Voicemail box 20001001”) in new stack
– Executing [[email protected]:18] Macro(“SIP/20001000-00000007”, “vm,20001001,CHANUNAVAIL,”) in new stack
– Executing [[email protected]:1] Macro(“SIP/20001000-00000007”, “user-callerid,SKIPTTL”) in new stack
– Executing [[email protected]:1] Set(“SIP/20001000-00000007”, “AMPUSER=20001000”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/20001000-00000007”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/20001000-00000007”, “0?Set(REALCALLERIDNUM=20001000)”) in new stack
– Executing [[email protected]:4] Set(“SIP/20001000-00000007”, “AMPUSER=20001000”) in new stack
– Executing [[email protected]:5] Set(“SIP/20001000-00000007”, “AMPUSERCIDNAME=20001000”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/20001000-00000007”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/20001000-00000007”, “AMPUSERCID=20001000”) in new stack
– Executing [[email protected]:8] Set(“SIP/20001000-00000007”, “CALLERID(all)=“20001000” <20001000>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/20001000-00000007”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] NoOp(“SIP/20001000-00000007”, “Using CallerID “20001000” <20001000>”) in new stack
– Executing [[email protected]:2] Set(“SIP/20001000-00000007”, “VMGAIN=”"") in new stack
– Executing [[email protected]:3] GotoIf(“SIP/20001000-00000007”, “1?vmx,1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing [[email protected]:1] Set(“SIP/20001000-00000007”, “MEXTEN=20001001”) in new stack
– Executing [[email protected]:2] Set(“SIP/20001000-00000007”, “MMODE=CHANUNAVAIL”) in new stack
– Executing [[email protected]:3] Set(“SIP/20001000-00000007”, “RETVM=”) in new stack
– Executing [[email protected]:4] Set(“SIP/20001000-00000007”, “MODE=unavail”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/20001000-00000007”, “0?chknomsg”) in new stack
– Executing [[email protected]:6] Set(“SIP/20001000-00000007”, “VM_OPTS=”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/20001000-00000007”, “0?s-CHANUNAVAIL,1”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/20001000-00000007”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,10)
– Executing [[email protected]:10] NoOp(“SIP/20001000-00000007”, “Checking if ext 20001001 is enabled: enabled”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/20001000-00000007”, “0?s-CHANUNAVAIL,1”) in new stack
– Executing [[email protected]:12] Macro(“SIP/20001000-00000007”, “get-vmcontext,20001001”) in new stack
– Executing [[email protected]:1] Set(“SIP/20001000-00000007”, “VMCONTEXT=default”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/20001000-00000007”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [[email protected]:300] NoOp(“SIP/20001000-00000007”, “”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/20001000-00000007”, “0?tmpgreet”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/20001000-00000007”, “1?nofile”) in new stack
– Goto (macro-vm,vmx,66)
– Executing [[email protected]:66] NoOp(“SIP/20001000-00000007”, “File for mode: unavail does not exist, SYSTEMSTATUS: , going to normal voicemail”) in new stack
– Executing [[email protected]:67] Goto(“SIP/20001000-00000007”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-vm,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] Macro(“SIP/20001000-00000007”, “get-vmcontext,20001001”) in new stack
– Executing [[email protected]:1] Set(“SIP/20001000-00000007”, “VMCONTEXT=default”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/20001000-00000007”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing [[email protected]:300] NoOp(“SIP/20001000-00000007”, “”) in new stack
– Executing [[email protected]:2] VoiceMail(“SIP/20001000-00000007”, “[email protected],u”"") in new stack
– <SIP/20001000-00000007> Playing ‘vm-theperson.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/2.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/0.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/0.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/0.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/1.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/0.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/0.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘digits/1.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘vm-isunavail.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘vm-intro.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘beep.ulaw’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/20001001/tmp/O0xglr format: wav49, 0x8b2ab38
– x=1, open writing: /var/spool/asterisk/voicemail/default/20001001/tmp/O0xglr format: wav, 0x8b86b88
– User ended message by pressing #
– <SIP/20001000-00000007> Playing ‘auth-thankyou.ulaw’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘vm-review.ulaw’ (language ‘en’)
– Reviewing the message
– <SIP/20001000-00000007> Playing ‘/var/spool/asterisk/voicemail/default/20001001/tmp/O0xglr.slin’ (language ‘en’)
– <SIP/20001000-00000007> Playing ‘vm-review.ulaw’ (language ‘en’)
– Saving message as is
– <SIP/20001000-00000007> Playing ‘vm-msgsaved.ulaw’ (language ‘en’)
– Executing [[email protected]:3] Goto(“SIP/20001000-00000007”, “exit-SUCCESS,1”) in new stack
– Goto (macro-vm,exit-SUCCESS,1)
– Executing [[email protected]:1] GotoIf(“SIP/20001000-00000007”, “0?exit-RETURN,1”) in new stack
– Executing [[email protected]:2] Playback(“SIP/20001000-00000007”, “goodbye”) in new stack
– <SIP/20001000-00000007> Playing ‘goodbye.gsm’ (language ‘en’)
– Executing [[email protected]:3] Hangup(“SIP/20001000-00000007”, “”) in new stack
== Spawn extension (macro-vm, exit-SUCCESS, 3) exited non-zero on ‘SIP/20001000-00000007’ in macro ‘vm’
== Spawn extension (macro-exten-vm, s, 18) exited non-zero on ‘SIP/20001000-00000007’ in macro ‘exten-vm’
== Spawn extension (from-internal, 20001001, 1) exited non-zero on ‘SIP/20001000-00000007’
– Executing [[email protected]:1] Macro(“SIP/20001000-00000007”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/20001000-00000007”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] GotoIf(“SIP/20001000-00000007”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] GotoIf(“SIP/20001000-00000007”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]:9] Hangup(“SIP/20001000-00000007”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/20001000-00000007’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/20001000-00000007’
localhost*CLI>

[[email protected] INBOX]# pwd
/var/spool/asterisk/voicemail/default/20001001/INBOX
[[email protected] INBOX]# ls
[[email protected] INBOX]#
[[email protected] tmp]# pwd
/var/spool/asterisk/voicemail/default/20001001/tmp
[[email protected] tmp]# ls
[[email protected] tmp]#

sip.conf

[20001000]
type=peer
host=dynamic
allow=all
videosupport=yes

[20001001]
type=peer
host=dynamic
allow=all
videosupport=yes

Are the permissions set correctly? Is the directory owned by asterisk?

hi,
the permission alreayd 777 , they are own by asterisk and asterisk grp…

Please adivce why the VM cannot record to the file and in gui , there is no
vm stored …I have already review the voice message from VM before save it …
It have been record in tmp directory already …

Please advice …

Hi,
The current verions of asterisk I use is asterisk 1.6.2.11,Freepbx 2.7.0.0 .
If I set the extension in GUI ,delete voicemail option to “yes” ,
OR
in /etc/sterisk/voicemail.conf ,
set
20001002 => 123456,20001002,attach=no|saycid=no|envelope=no|delete=no

set delete= yes for the voicemail account.

Then the VM cannot store message to the directory /var/spool/asterisk/voicemail…

You must set above to “no” in order to store the VM to INBOX directory …
otheriwse, no wav file record in the VM account…

So, is it a bug for this version , or there is another definition for "delete voicemail " in extensions of GUI …

Please advice …