Problem with Voicemail

rauldinho

Joined
May 26, 2009
Messages
13
Likes
0
Points
0
#1
Hi, i'm trying to activate the voicemail to my sip accounts but i'm having problems with it. I did exactly what the manual told me to do, i changed the status of the voicemail to enabled and put a password and saved. The problem is that when i call that extension and it doesn't answer, instead of the voicemail i get a 'there's been an error' message. Here i post the log from the asterisk command line. Thanks for any answer i may get.

Code:
elastix*CLI>
    -- Accepting AUTHENTICATED call from xx.xx.xx:
       > requested format = ulaw,
       > requested prefs = (ulaw|gsm),
       > actual format = gsm,
       > host prefs = (gsm|ulaw),
       > priority = mine
    -- Executing [8436@7-Libres:1] Macro("IAX2/myiax-16007", "exten-vm|8436|8436") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("IAX2/myiax-16007", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("IAX2/myiax-16007", "AMPUSER=8191") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/myiax-16007", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/myiax-16007", "1|Set|REALCALLERIDNUM=8191") in new stack
    -- Executing [s@macro-user-callerid:4] Set("IAX2/myiax-16007", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("IAX2/myiax-16007", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/myiax-16007", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("IAX2/myiax-16007", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("IAX2/myiax-16007", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("IAX2/myiax-16007", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("IAX2/myiax-16007", "Using CallerID "MY PHONE" <8191>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("IAX2/myiax-16007", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("IAX2/myiax-16007", "VMBOX=8436") in new stack
    -- Executing [s@macro-exten-vm:4] Set("IAX2/myiax-16007", "EXTTOCALL=8436") in new stack
    -- Executing [s@macro-exten-vm:5] Set("IAX2/myiax-16007", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("IAX2/myiax-16007", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("IAX2/myiax-16007", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("IAX2/myiax-16007", "record-enable|8436|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("IAX2/myiax-16007", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("IAX2/myiax-16007", "recordingcheck|20100204-084718|1265289438.3010") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100204-084718|1265289438.3010: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("IAX2/myiax-16007", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("IAX2/myiax-16007", "dial|15|tr|8436") in new stack
    -- Executing [s@macro-dial:1] GotoIf("IAX2/myiax-16007", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("IAX2/myiax-16007", "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 'MY PHONE' number is '8191'
  dialparties.agi: Methodology of ring is  'none'
    --  dialparties.agi: Added extension 8436 to extension map
    --  dialparties.agi: Extension 8436 cf is disabled
    --  dialparties.agi: Extension 8436 do not disturb is disabled
    --  dialparties.agi: dbset CALLTRACE/8436 to 8191
    --  dialparties.agi: Filtered ARG3: 8436
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("IAX2/myiax-16007", "SIP/8436|15|tr") in new stack
[Feb  4 08:47:19] NOTICE[23906]: app_dial.c:1147 dial_exec_full: Hey! chan IAX2/myiax-16007's context='macro-dial', and exten='s'
[Feb  4 08:47:19] WARNING[23906]: app_dial.c:1246 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dial:8] Set("IAX2/myiax-16007", "DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-dial:9] GosubIf("IAX2/myiax-16007", "0?CHANUNAVAIL|1") in new stack
    -- Executing [s@macro-exten-vm:10] GotoIf("IAX2/myiax-16007", "0?exit|return") in new stack
    -- Executing [s@macro-exten-vm:11] Set("IAX2/myiax-16007", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:12] GosubIf("IAX2/myiax-16007", "0?docfu|1") in new stack
    -- Executing [s@macro-exten-vm:13] GosubIf("IAX2/myiax-16007", "0?docfb|1") in new stack
    -- Executing [s@macro-exten-vm:14] Set("IAX2/myiax-16007", "DIALSTATUS=CHANUNAVAIL") in new stack
    -- Executing [s@macro-exten-vm:15] NoOp("IAX2/myiax-16007", "Voicemail is 8436") in new stack
    -- Executing [s@macro-exten-vm:16] GotoIf("IAX2/myiax-16007", "0?s-CHANUNAVAIL|1") in new stack
    -- Executing [s@macro-exten-vm:17] NoOp("IAX2/myiax-16007", "Sending to Voicemail box 8436") in new stack
    -- Executing [s@macro-exten-vm:18] Macro("IAX2/myiax-16007", "vm|8436|CHANUNAVAIL|") in new stack
    -- Executing [s@macro-vm:1] Macro("IAX2/myiax-16007", "user-callerid|SKIPTTL") in new stack
    -- Executing [s@macro-user-callerid:1] Set("IAX2/myiax-16007", "AMPUSER=8191") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("IAX2/myiax-16007", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("IAX2/myiax-16007", "0|Set|REALCALLERIDNUM=8191") in new stack
    -- Executing [s@macro-user-callerid:4] Set("IAX2/myiax-16007", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("IAX2/myiax-16007", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("IAX2/myiax-16007", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] GotoIf("IAX2/myiax-16007", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("IAX2/myiax-16007", "Using CallerID "MY PHONE" <8191>") in new stack
    -- Executing [s@macro-vm:2] Set("IAX2/myiax-16007", "VMGAIN=""") in new stack
[Feb  4 08:47:19] WARNING[23906]: func_db.c:58 function_db_read: DB requires an argument, DB(<family>/<key>)
    -- Executing [s@macro-vm:3] GotoIf("IAX2/myiax-16007", "1?vmx|1") in new stack
    -- Goto (macro-vm,vmx,1)
    -- Executing [vmx@macro-vm:1] GotoIf("IAX2/myiax-16007", "0?s-CHANUNAVAIL|1") in new stack
    -- Executing [vmx@macro-vm:2] Set("IAX2/myiax-16007", "MODE=unavail") in new stack
    -- Executing [vmx@macro-vm:3] GotoIf("IAX2/myiax-16007", "1?notdirect") in new stack
    -- Goto (macro-vm,vmx,5)
    -- Executing [vmx@macro-vm:5] NoOp("IAX2/myiax-16007", "Checking if ext 8436 is enabled: ") in new stack
    -- Executing [vmx@macro-vm:6] GotoIf("IAX2/myiax-16007", "1?s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-vm,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-vm:1] Macro("IAX2/myiax-16007", "get-vmcontext|8436") in new stack
    -- Executing [s@macro-get-vmcontext:1] Set("IAX2/myiax-16007", "VMCONTEXT=default") in new stack
    -- Executing [s@macro-get-vmcontext:2] GotoIf("IAX2/myiax-16007", "0?200:300") in new stack
    -- Goto (macro-get-vmcontext,s,300)
    -- Executing [s@macro-get-vmcontext:300] NoOp("IAX2/myiax-16007", "") in new stack
    -- Executing [s-CHANUNAVAIL@macro-vm:2] VoiceMail("IAX2/myiax-16007", "8436@default|u") in new stack
[Feb  4 08:47:19] WARNING[23906]: app_voicemail.c:3940 leave_voicemail: No entry in voicemail config file for '8436'
    -- Executing [s-CHANUNAVAIL@macro-vm:3] Goto("IAX2/myiax-16007", "exit-FAILED|1") in new stack
    -- Goto (macro-vm,exit-FAILED,1)
    -- Executing [exit-FAILED@macro-vm:1] Playback("IAX2/myiax-16007", "im-sorry&an-error-has-occured") in new stack
    -- <IAX2/myiax-16007> Playing 'im-sorry' (language 'en')
    -- <IAX2/myiax-16007> Playing 'an-error-has-occured' (language 'en')
    -- Executing [exit-FAILED@macro-vm:2] GotoIf("IAX2/myiax-16007", "0?exit-RETURN|1") in new stack
    -- Executing [exit-FAILED@macro-vm:3] Hangup("IAX2/myiax-16007", "") in new stack
  == Spawn extension (macro-vm, exit-FAILED, 3) exited non-zero on 'IAX2/myiax-16007' in macro 'vm'
  == Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'IAX2/myiax-16007' in macro 'exten-vm'
  == Spawn extension (7-Libres, 8436, 1) exited non-zero on 'IAX2/myiax-16007'
    -- Executing [h@7-Libres:1] Macro("IAX2/myiax-16007", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("IAX2/myiax-16007", "vw") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("IAX2/myiax-16007", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("IAX2/myiax-16007", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("IAX2/myiax-16007", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("IAX2/myiax-16007", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("IAX2/myiax-16007", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'IAX2/myiax-16007' in macro 'hangupcall'
  == Spawn extension (7-Libres, h, 1) exited non-zero on 'IAX2/myiax-16007'
    -- Hungup 'IAX2/myiax-16007'
 

hinzinho

Joined
Sep 18, 2009
Messages
461
Likes
0
Points
0
#2
I have came across this similar issue when somehow I lost all the settings in the voicemail.conf file. Check it and see if it has you mailbox in it.
 

rauldinho

Joined
May 26, 2009
Messages
13
Likes
0
Points
0
#3
Hi, i solved this problem and you were right, the problem was in the voicemail.conf file. The strange thing is that when i enabled the voicemail in freepbx it wasn't saving the changes in the file. I had to edit the file with VIM, leave it only with the default and include markup, and then it worked, when i created a new voicemail the changes were saved. I leave this in here so if anyone has a similar problem. Thanks!
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,900
Messages
130,884
Members
17,561
Latest member
marouen
Top