Voicemail now not working...

talltrees

New Member
Joined
Oct 22, 2008
Messages
48
Reaction score
0
Here is a trace on ssh using asterisk -rvvv

-- dialparties.agi: DbDel CALLTRACE/1200 - Caller ID is not defined
-- dialparties.agi: Filtered ARG3: 1200
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/213.166.5.134-b7b7e8b0", "SIP/1200|15|trw") in new stack
-- Called 1200
-- SIP/1200-0912e4c0 is ringing
-- Nobody picked up in 15000 ms
-- Executing [s@macro-dial:8] Set("SIP/213.166.5.134-b7b7e8b0", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/213.166.5.134-b7b7e8b0", "0?NOANSWER|1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/213.166.5.134-b7b7e8b0", "0?exit|return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/213.166.5.134-b7b7e8b0", "SV_DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/213.166.5.134-b7b7e8b0", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/213.166.5.134-b7b7e8b0", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/213.166.5.134-b7b7e8b0", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/213.166.5.134-b7b7e8b0", "Voicemail is 1200") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/213.166.5.134-b7b7e8b0", "0?s-NOANSWER|1") in new stack
-- Executing [s@macro-exten-vm:17] NoOp("SIP/213.166.5.134-b7b7e8b0", "Sending to Voicemail box 1200") in new stack
-- Executing [s@macro-exten-vm:18] Macro("SIP/213.166.5.134-b7b7e8b0", "vm|1200|NOANSWER|") in new stack
-- Executing [s@macro-vm:1] Macro("SIP/213.166.5.134-b7b7e8b0", "user-callerid|SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/213.166.5.134-b7b7e8b0", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/213.166.5.134-b7b7e8b0", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/213.166.5.134-b7b7e8b0", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/213.166.5.134-b7b7e8b0", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/213.166.5.134-b7b7e8b0", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/213.166.5.134-b7b7e8b0", "Using CallerID "anonymous" <>") in new stack
-- Executing [s@macro-vm:2] Set("SIP/213.166.5.134-b7b7e8b0", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?vmx|1") in new stack
-- Goto (macro-vm,vmx,1)
-- Executing [vmx@macro-vm:1] Set("SIP/213.166.5.134-b7b7e8b0", "MEXTEN=1200") in new stack
-- Executing [vmx@macro-vm:2] Set("SIP/213.166.5.134-b7b7e8b0", "MMODE=NOANSWER") in new stack
-- Executing [vmx@macro-vm:3] Set("SIP/213.166.5.134-b7b7e8b0", "RETVM=") in new stack
-- Executing [vmx@macro-vm:4] Set("SIP/213.166.5.134-b7b7e8b0", "MODE=unavail") in new stack
-- Executing [vmx@macro-vm:5] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?chknomsg") in new stack
-- Goto (macro-vm,vmx,7)
-- Executing [vmx@macro-vm:7] GotoIf("SIP/213.166.5.134-b7b7e8b0", "0?s-NOANSWER|1") in new stack
-- Executing [vmx@macro-vm:8] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?notdirect") in new stack
-- Goto (macro-vm,vmx,10)
-- Executing [vmx@macro-vm:10] NoOp("SIP/213.166.5.134-b7b7e8b0", "Checking if ext 1200 is enabled: ") in new stack
-- Executing [vmx@macro-vm:11] GotoIf("SIP/213.166.5.134-b7b7e8b0", "1?s-NOANSWER|1") in new stack
-- Goto (macro-vm,s-NOANSWER,1)
-- Executing [s-NOANSWER@macro-vm:1] Macro("SIP/213.166.5.134-b7b7e8b0", "get-vmcontext|1200") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("SIP/213.166.5.134-b7b7e8b0", "VMCONTEXT=default") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/213.166.5.134-b7b7e8b0", "0?200:300") in new stack
-- Goto (macro-get-vmcontext,s,300)
-- Executing [s@macro-get-vmcontext:300] NoOp("SIP/213.166.5.134-b7b7e8b0", "") in new stack
-- Executing [s-NOANSWER@macro-vm:2] VoiceMail("SIP/213.166.5.134-b7b7e8b0", "1200@default|u") in new stack
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/213.166.5.134-b7b7e8b0' in macro 'vm'
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/213.166.5.134-b7b7e8b0' in macro 'exten-vm'
== Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/213.166.5.134-b7b7e8b0'
== End MixMonitor Recording SIP/213.166.5.134-b7b7e8b0
 
This is after using the backup and restore plugin…
here is another log…
What do I do now ?
2009-11-17 13:38:41] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'vm-options' (language 'en')
[2009-11-17 13:38:51] VERBOSE[1722] logger.c: -- Recording the message
[2009-11-17 13:38:51] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'vm-rec-name' (language 'en')
[2009-11-17 13:38:55] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'beep' (language 'en')
[2009-11-17 13:38:55] WARNING[1722] file.c: Unable to open file /var/spool/asterisk/voicemail/default/1200/greet.tmp.WAV: No such file or directory
[2009-11-17 13:38:55] VERBOSE[1722] logger.c: -- x=0, open writing: /var/spool/asterisk/voicemail/default/1200/greet.tmp format: wav49, (nil)
[2009-11-17 13:38:55] WARNING[1722] app.c: Error creating writestream '/var/spool/asterisk/voicemail/default/1200/greet.tmp', format 'wav49'
[2009-11-17 13:38:55] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'vm-review' (language 'en')
[2009-11-17 13:39:04] VERBOSE[1722] logger.c: -- Re-recording the message
[2009-11-17 13:39:04] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'vm-rec-name' (language 'en')
[2009-11-17 13:39:07] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'beep' (language 'en')
[2009-11-17 13:39:08] WARNING[1722] file.c: Unable to open file /var/spool/asterisk/voicemail/default/1200/greet.tmp.WAV: No such file or directory
[2009-11-17 13:39:08] VERBOSE[1722] logger.c: -- x=0, open writing: /var/spool/asterisk/voicemail/default/1200/greet.tmp format: wav49, (nil)
[2009-11-17 13:39:08] WARNING[1722] app.c: Error creating writestream '/var/spool/asterisk/voicemail/default/1200/greet.tmp', format 'wav49'
[2009-11-17 13:39:08] VERBOSE[1722] logger.c: -- <SIP/1200-b7b0a308> Playing 'vm-review' (language 'en')
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: == Spawn extension (from-internal, *97, 106) exited non-zero on 'SIP/1200-b7b0a308'
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Executing [h@from-internal:1] Macro("SIP/1200-b7b0a308", "hangupcall") in new stack
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1200-b7b0a308", "1?skiprg") in new stack
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Goto (macro-hangupcall,s,4)
[2009-11-17 13:39:09] DEBUG[1722] app_macro.c: Executed application: GotoIf
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/1200-b7b0a308", "1?skipblkvm") in new stack
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Goto (macro-hangupcall,s,7)
[2009-11-17 13:39:09] DEBUG[1722] app_macro.c: Executed application: GotoIf
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/1200-b7b0a308", "1?theend") in new stack
[2009-11-17 13:39:09] VERBOSE[1722] logger.c: -- Goto (macro-hangupcall,s,9)
[2009-11-17 13:39:09] DEBUG[1722] app_macro.c: Executed application: GotoIf
 
Do these directories exist?

/var/spool/asterisk/voicemail/default/1200/

Go to ext 1200, and edit the extension, click submit, then apply changes, then see if the directory exists.

It should now appear.

Repeat as necessary for all extensions.

Joe
 
odd all the directory structure from voicemail downwards was Missing !
I have just logged in on ssh and done
cd /var/spool/asterisk/
mkdir voicemail
cd voicemail
mkdir default
cd default
then a directory for each extension…

now Obviously I have permission issues what permissions do I need for the folders ?

Thanks...
 
the same, I believe, as the parent directories. most likely asterisk:asterisk.
 
so I go ….

>what command here< asterisk:asterisk voicemail

etc...
 
and to apply this to the top level "voicemail" directory I created and all below ?
 
That is what the '-R' flag does - it recursively applies the command to everything below (and including) voicemail.
 
Great all sorted…
Not sure why the folder structure is not there originally ???!!
the rest of he system is fine… (I Hope)
Voicemail workng now, I don't even need to add folders for extensions where there are no folders it seems to add them on it's own…
Great !
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top