Voice mail system not answering

The system was working before and sent voice massages via mailing,
suddenly is not working, I can access it but can’t record massages or greatings.

Here is the cli output :

Connected to Asterisk 1.2.24 svn rev 62362 currently running on CentPBX (pid = 18297)
Verbosity is at least 5
– Remote UNIX connection
– Starting simple switch on ‘Zap/4-1’
– Executing Macro(“Zap/4-1”, “vm|233|DIRECTDIAL|”) in new stack
– Executing Macro(“Zap/4-1”, “user-callerid|SKIPTTL”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing ExecIf(“Zap/4-1”, “1|Set|REALCALLERIDNUM=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCIDNAME=Eyal Levy”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCID=233”) in new stack
– Executing Set(“Zap/4-1”, “CALLERID(all)=“Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “REALCALLERIDNUM=233”) in new stack
– Executing ExecIf(“Zap/4-1”, “0|Set|LANGUAGE()=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing NoOp(“Zap/4-1”, “Using CallerID “Eyal” <233>”) in new stack
– Executing Set(“Zap/4-1”, “VMGAIN=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?vmx|1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing GotoIf(“Zap/4-1”, “0?s-DIRECTDIAL|1”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?notdirect”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing NoOp(“Zap/4-1”, "Checking if ext 233 is enabled: ") in new stack
– Executing GotoIf(“Zap/4-1”, “1?s-DIRECTDIAL|1”) in new stack
– Goto (macro-vm,s-DIRECTDIAL,1)
– Executing NoOp(“Zap/4-1”, “DIRECTDIAL voicemail”) in new stack
– Executing Macro(“Zap/4-1”, “get-vmcontext|233”) in new stack
– Executing Set(“Zap/4-1”, “VMCONTEXT=default”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing NoOp(“Zap/4-1”, “”) in new stack
– Executing VoiceMail(“Zap/4-1”, “[email protected]|u”) in new stack
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’ in macro ‘vm’
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’
– Starting simple switch on ‘Zap/4-1’
– Executing Macro(“Zap/4-1”, “vm|233|DIRECTDIAL|”) in new stack
– Executing Macro(“Zap/4-1”, “user-callerid|SKIPTTL”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing ExecIf(“Zap/4-1”, “1|Set|REALCALLERIDNUM=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCIDNAME=Eyal Levy”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCID=233”) in new stack
– Executing Set(“Zap/4-1”, “CALLERID(all)=“Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “REALCALLERIDNUM=233”) in new stack
– Executing ExecIf(“Zap/4-1”, “0|Set|LANGUAGE()=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing NoOp(“Zap/4-1”, “Using CallerID “Eyal” <233>”) in new stack
– Executing Set(“Zap/4-1”, “VMGAIN=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?vmx|1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing GotoIf(“Zap/4-1”, “0?s-DIRECTDIAL|1”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?notdirect”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing NoOp(“Zap/4-1”, "Checking if ext 233 is enabled: ") in new stack
– Executing GotoIf(“Zap/4-1”, “1?s-DIRECTDIAL|1”) in new stack
– Goto (macro-vm,s-DIRECTDIAL,1)
– Executing NoOp(“Zap/4-1”, “DIRECTDIAL voicemail”) in new stack
– Executing Macro(“Zap/4-1”, “get-vmcontext|233”) in new stack
– Executing Set(“Zap/4-1”, “VMCONTEXT=default”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing NoOp(“Zap/4-1”, “”) in new stack
– Executing VoiceMail(“Zap/4-1”, “[email protected]|u”) in new stack
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’ in macro ‘vm’
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’

the logs above don’t really show anything except that it calls VM and then hangs up.

Please check that you are running asterisk as the asterisk user and NOT as root. If you can do amportal stop followed by amportal start which is the proper way to start things.

and as a quick last check do amportal chown

this will reset the permissions on all the folders to the right ownership and group setting.

One reason that VM cal fail is that it doesn’t have correct permissions to access the files and storage locations.

no success

Any idea how to debug?

by which user to activate them?

I used them under root and they don’t help

root is the correct user to run them as.

Increase the verbose level, try 5 or higher if you are already at 5.
at the asterisk cli type: set verbose 5

You need it to produce more info between these two lines.

-- Executing VoiceMail("Zap/4-1", "[email protected]|u") in new stack == Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on 'Zap/4-1' in macro 'vm'

basically we need some output to know why it is exiting non-zero.

-- Reloading module 'app_queue.so' (True Call Queueing)

== Parsing ‘/etc/asterisk/queues.conf’: Found
== Parsing ‘/etc/asterisk/queues_general_additional.conf’: Found
== Parsing ‘/etc/asterisk/queues_custom_general.conf’: Found
== Parsing ‘/etc/asterisk/queues_custom.conf’: Found
== Parsing ‘/etc/asterisk/queues_additional.conf’: Found
== Parsing ‘/etc/asterisk/queues_post_custom.conf’: Found
– Reloading module ‘cdr_manager.so’ (Asterisk Call Manager CDR Backend)
– Reloading module ‘app_hasnewvoicemail.so’ (Indicator for whether a voice mailbox has messages in a given folder.)
– Reloading module ‘app_meetme.so’ (MeetMe conference bridge)
== Parsing ‘/etc/asterisk/meetme.conf’: Found
== Parsing ‘/etc/asterisk/meetme_additional.conf’: Found
– Reloading module ‘codec_adpcm.so’ (Adaptive Differential PCM Coder/Decoder)
– Reloading module ‘codec_zap.so’ (Generic Zaptel Transcoder Codec Translator)
== Manager ‘admin’ logged off from 127.0.0.1
– Starting simple switch on ‘Zap/4-1’
– Executing Macro(“Zap/4-1”, “exten-vm|232|232”) in new stack
– Executing Macro(“Zap/4-1”, “user-callerid”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing ExecIf(“Zap/4-1”, “1|Set|REALCALLERIDNUM=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCIDNAME=Eyal Levy”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCID=233”) in new stack
– Executing Set(“Zap/4-1”, “CALLERID(all)=“Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “REALCALLERIDNUM=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?continue”) in new stack
– Executing Set(“Zap/4-1”, “__TTL=64”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing NoOp(“Zap/4-1”, “Using CallerID “Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “RingGroupMethod=none”) in new stack
– Executing Set(“Zap/4-1”, “VMBOX=232”) in new stack
– Executing Set(“Zap/4-1”, “EXTTOCALL=232”) in new stack
– Executing Set(“Zap/4-1”, “CFUEXT=”) in new stack
– Executing Set(“Zap/4-1”, “CFBEXT=”) in new stack
– Executing Set(“Zap/4-1”, “RT=30”) in new stack
– Executing Macro(“Zap/4-1”, “record-enable|232|IN”) in new stack
– Executing MacroExit(“Zap/4-1”, “”) in new stack
– Executing Macro(“Zap/4-1”, “dial|30|trT|232”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing AGI(“Zap/4-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘Eyal Levy’ number is '233’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 232 to extension map
– dialparties.agi: Extension 232 cf is disabled
– dialparties.agi: Extension 232 do not disturb is disabled
dialparties.agi: Extension 232 has ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 232
– dialparties.agi: dbset CALLTRACE/232 to 233
– dialparties.agi: Filtered ARG3: 232
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Zap/4-1”, “ZAP/1|30|trT”) in new stack
– Called 1
– Zap/1-1 is ringing
– Zap/1-1 is ringing
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
== Manager ‘admin’ logged off from 127.0.0.1
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Nobody picked up in 30000 ms
– Hungup ‘Zap/1-1’
– Executing Set(“Zap/4-1”, “DIALSTATUS=NOANSWER”) in new stack
– Executing GosubIf(“Zap/4-1”, “0?NOANSWER|1”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?exit|return”) in new stack
– Executing Set(“Zap/4-1”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing GosubIf(“Zap/4-1”, “0?docfu|1”) in new stack
– Executing GosubIf(“Zap/4-1”, “0?docfb|1”) in new stack
– Executing Set(“Zap/4-1”, “DIALSTATUS=NOANSWER”) in new stack
– Executing NoOp(“Zap/4-1”, “Voicemail is 232”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?s-NOANSWER|1”) in new stack
– Executing NoOp(“Zap/4-1”, “Sending to Voicemail box 232”) in new stack
– Executing Macro(“Zap/4-1”, “vm|232|NOANSWER|”) in new stack
– Executing Macro(“Zap/4-1”, “user-callerid|SKIPTTL”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing ExecIf(“Zap/4-1”, “0|Set|REALCALLERIDNUM=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCIDNAME=Eyal Levy”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCID=233”) in new stack
– Executing Set(“Zap/4-1”, “CALLERID(all)=“Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “REALCALLERIDNUM=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing NoOp(“Zap/4-1”, “Using CallerID “Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “VMGAIN=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?vmx|1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing GotoIf(“Zap/4-1”, “0?s-NOANSWER|1”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?notdirect”) in new stack
– Goto (macro-vm,vmx,5)
– Executing NoOp(“Zap/4-1”, "Checking if ext 232 is enabled: ") in new stack
– Executing GotoIf(“Zap/4-1”, “1?s-NOANSWER|1”) in new stack
– Goto (macro-vm,s-NOANSWER,1)
– Executing Macro(“Zap/4-1”, “get-vmcontext|232”) in new stack
– Executing Set(“Zap/4-1”, “VMCONTEXT=default”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing NoOp(“Zap/4-1”, “”) in new stack
– Executing VoiceMail(“Zap/4-1”, “[email protected]|u”) in new stack
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘Zap/4-1’ in macro ‘vm’
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘Zap/4-1’ in macro ‘exten-vm’
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’
– Starting simple switch on ‘Zap/4-1’
– Executing Macro(“Zap/4-1”, “vm|232|DIRECTDIAL|”) in new stack
– Executing Macro(“Zap/4-1”, “user-callerid|SKIPTTL”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing ExecIf(“Zap/4-1”, “1|Set|REALCALLERIDNUM=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSER=233”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCIDNAME=Eyal Levy”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?report”) in new stack
– Executing Set(“Zap/4-1”, “AMPUSERCID=233”) in new stack
– Executing Set(“Zap/4-1”, “CALLERID(all)=“Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “REALCALLERIDNUM=233”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing NoOp(“Zap/4-1”, “Using CallerID “Eyal Levy” <233>”) in new stack
– Executing Set(“Zap/4-1”, “VMGAIN=”) in new stack
– Executing GotoIf(“Zap/4-1”, “1?vmx|1”) in new stack
– Goto (macro-vm,vmx,1)
– Executing GotoIf(“Zap/4-1”, “0?s-DIRECTDIAL|1”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?notdirect”) in new stack
– Executing Set(“Zap/4-1”, “MODE=unavail”) in new stack
– Executing NoOp(“Zap/4-1”, "Checking if ext 232 is enabled: ") in new stack
– Executing GotoIf(“Zap/4-1”, “1?s-DIRECTDIAL|1”) in new stack
– Goto (macro-vm,s-DIRECTDIAL,1)
– Executing NoOp(“Zap/4-1”, “DIRECTDIAL voicemail”) in new stack
– Executing Macro(“Zap/4-1”, “get-vmcontext|232”) in new stack
– Executing Set(“Zap/4-1”, “VMCONTEXT=default”) in new stack
– Executing GotoIf(“Zap/4-1”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing NoOp(“Zap/4-1”, “”) in new stack
– Executing VoiceMail(“Zap/4-1”, “[email protected]|u”) in new stack
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’ in macro ‘vm’
== Spawn extension (macro-vm, s-DIRECTDIAL, 3) exited non-zero on ‘Zap/4-1’
– Hungup ‘Zap/4-1’

I added **** marks to the section I find helpful
I it explain it please advise how to fix it.
I made amportal chown many times it’s no help.

Jan 28 18:35:14 DEBUG[30010] chan_zap.c: DTMF digit: # on Zap/4-1
Jan 28 18:35:14 DEBUG[30010] chan_zap.c: DTMF digit: 2 on Zap/4-1
Jan 28 18:35:14 DEBUG[30010] chan_zap.c: DTMF digit: 3 on Zap/4-1
Jan 28 18:35:14 DEBUG[30010] chan_zap.c: DTMF digit: 2 on Zap/4-1
Jan 28 18:35:14 DEBUG[30010] chan_zap.c: Enabled echo cancellation on channel 4
Jan 28 18:35:14 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:14 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:14 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Not taking any branch
Jan 28 18:35:14 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:14 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:14 DEBUG[30010] app_macro.c: Executed application: ExecIf
Jan 28 18:35:14 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:14 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:14 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is 'Eyal Levy’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Not taking any branch
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is '1’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is '233’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is '“Eyal Levy” <233>'
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Noop
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Macro
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is ''
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 WARNING[30010] func_db.c: DB requires an argument, DB(/)
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is ''
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Not taking any branch
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is 'unavail’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Not taking any branch
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is 'unavail’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] db.c: Unable to find key ‘232/vmx/unavail/state’ in family 'AMPUSER’
Jan 28 18:35:15 DEBUG[30010] func_db.c: DB: AMPUSER/232/vmx/unavail/state not found in database.
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is ''
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Noop
Jan 28 18:35:15 DEBUG[30010] db.c: Unable to find key ‘232/vmx/unavail/state’ in family 'AMPUSER’
Jan 28 18:35:15 DEBUG[30010] func_db.c: DB: AMPUSER/232/vmx/unavail/state not found in database.
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is ''
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '1’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: NoOp
Jan 28 18:35:15 DEBUG[30010] pbx.c: Function result is 'default’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Set
Jan 28 18:35:15 DEBUG[30010] pbx.c: Expression result is '0’
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: GotoIf
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: NoOp
Jan 28 18:35:15 DEBUG[30010] app_macro.c: Executed application: Macro
Jan 28 18:35:15 DEBUG[30010] chan_zap.c: Took Zap/4-1 off hook


Jan 28 18:35:15 WARNING[30010] app_voicemail.c: mkdir ‘/var/spool/asterisk/voicemail/default//’ failed: No such file or directory
Jan 28 18:35:15 WARNING[30010] app_voicemail.c: mkdir ‘/var/spool/asterisk/voicemail/default//’ failed: No such file or directory
Jan 28 18:35:15 WARNING[30010] app_voicemail.c: Failed to make directory (/var/spool/asterisk/voicemail/default/232/temp)


Jan 28 18:35:15 DEBUG[30010] chan_zap.c: Hangup: channel: 4 index = 0, normal = 19, callwait = -1, thirdcall = -1
Jan 28 18:35:15 DEBUG[30010] chan_zap.c: disabled echo cancellation on channel 4
Jan 28 18:35:15 DEBUG[30010] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/4-1
Jan 28 18:35:15 DEBUG[30010] chan_zap.c: Updated conferencing on 4, with 0 conference users
Jan 28 18:35:15 DEBUG[30010] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Jan 28 18:35:15 DEBUG[30010] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2009-01-28 18:35:14’,’“Eyal Levy” <233>’,‘233’,’#232’,‘from-internal’, ‘Zap/4-1’,’’,‘VoiceMail’,‘[email protected]|u’,1,0,‘ANSWERED’,3,’’,‘1233160511.2162’)
Jan 28 18:35:18 DEBUG[3608] chan_zap.c: disabled echo cancellation on channel 4
Jan 28 18:35:33 NOTICE[3605] chan_iax2.c: No registration for peer ‘iaxmodem’ (from 127.0.0.1)
Jan 28 18:35:33 NOTICE[3605] chan_iax2.c: No registration for peer ‘1100’ (from 127.0.0.1)
Jan 28 18:35:58 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found
Jan 28 18:35:58 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found
Jan 28 18:35:59 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found
Jan 28 18:36:28 NOTICE[3605] chan_iax2.c: No registration for peer ‘iaxmodem’ (from 127.0.0.1)
Jan 28 18:36:28 NOTICE[3605] chan_iax2.c: No registration for peer ‘1100’ (from 127.0.0.1)
Jan 28 18:36:58 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found
Jan 28 18:36:58 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found
Jan 28 18:36:59 DEBUG[3607] chan_sip.c: Stopping retransmission on ‘[email protected]’ of Request 102: Match Found

ok this helps. Does the directory /var/spool/asterisk/voicemail/default/232/ exist? there should be at least one file in it and a INBOX directory.
and the user and group permissions for /var/spool/asterisk/voicemail/default and all files under is should be asterisk:asterisk

Voicemail for a extension will not work until a greeting has been recorded to it or it has been accessed at least once by the phone user so that it creates the directories it needs.

Is the a box build from a distro or hand built? Details please.

I have got no /var/spool/asterisk/voicemail!!
I had it before!

[[email protected] asterisk]# ls -l
total 88
drwxrw-r-- 2 asterisk asterisk 4096 Apr 4 2008 fax
drwxrwx— 2 asterisk asterisk 4096 Oct 2 2007 meetme
drwxrwxr-x 2 asterisk asterisk 61440 Jan 23 13:53 monitor
drwx-w---- 2 asterisk asterisk 4096 Apr 4 2008 outgoing
drwxrwxr-x 2 asterisk asterisk 4096 Apr 4 2008 tmp

How could it be?
Plese help

Well that solves the why it is not working. The code is looking for that directory path and if it is not there it will not work.

As to why it’s gone I have no idea.

You’ve not said how this was built so it’s hard to start guessing. You can make it again easly…

mkdir /var/log/spool/asterisk/voicemail
mkdir /var/log/spool/asterisk/voicemail/default

Then you’ll have to re-rouch all the extensions so that they re-create all the directories, re-record the voicemail recordings, etc… You don’t happen to have a backup do you with it including the voicemail’s…