[asterisk-users] Voicemail hangs up

Alan Murrell lists at murrell.ca
Mon Jan 24 09:39:03 CST 2011


Hello.

I am running Asterisk v1.6 on Ubuntu 10.10 with FreePBX v2.8.

When I call the voicemail for any of my extensions, the call just dies.  On a softphone, I get no sound whatsoever; it just hangs up after a couple of seconds.  On my handset attached to my SPA-3102, it get a sound like when you leave an analogue phone off the hook.  I have three extensions setup and they all do the same thing.

Everything was configured through FreePBX.  It did work, initially, but I think I changed something and now it is not.  Here is the asterisk log:

--- START ---
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [*97 at from-internal:1] Answer("SIP/203-00000003", "") in new stack
    -- Executing [*97 at from-internal:2] Wait("SIP/203-00000003", "1") in new stack
    -- Executing [*97 at from-internal:3] Macro("SIP/203-00000003", "user-callerid,") in new stack
    -- Executing [s at macro-user-callerid:1] Set("SIP/203-00000003", "AMPUSER=203") in new stack
    -- Executing [s at macro-user-callerid:2] GotoIf("SIP/203-00000003", "0?report") in new stack
    -- Executing [s at macro-user-callerid:3] ExecIf("SIP/203-00000003", "1?Set(REALCALLERIDNUM=203)") in new stack
    -- Executing [s at macro-user-callerid:4] Set("SIP/203-00000003", "AMPUSER=203") in new stack
    -- Executing [s at macro-user-callerid:5] Set("SIP/203-00000003", "AMPUSERCIDNAME=Test") in new stack
    -- Executing [s at macro-user-callerid:6] GotoIf("SIP/203-00000003", "0?report") in new stack
    -- Executing [s at macro-user-callerid:7] Set("SIP/203-00000003", "AMPUSERCID=203") in new stack
    -- Executing [s at macro-user-callerid:8] Set("SIP/203-00000003", "CALLERID(all)="Test" <203>") in new stack
    -- Executing [s at macro-user-callerid:9] GotoIf("SIP/203-00000003", "0?continue") in new stack
    -- Executing [s at macro-user-callerid:10] Set("SIP/203-00000003", "__TTL=64") in new stack
    -- Executing [s at macro-user-callerid:11] GotoIf("SIP/203-00000003", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,18)
    -- Executing [s at macro-user-callerid:18] NoOp("SIP/203-00000003", "Using CallerID "Test" <203>") in new stack
    -- Executing [*97 at from-internal:4] Macro("SIP/203-00000003", "get-vmcontext,203") in new stack
    -- Executing [s at macro-get-vmcontext:1] Set("SIP/203-00000003", "VMCONTEXT=default") in new stack
    -- Executing [s at macro-get-vmcontext:2] GotoIf("SIP/203-00000003", "0?200:300") in new stack
    -- Goto (macro-get-vmcontext,s,300)
    -- Executing [s at macro-get-vmcontext:300] NoOp("SIP/203-00000003", "") in new stack
    -- Executing [*97 at from-internal:5] Set("SIP/203-00000003", "VMBOXEXISTSSTATUS=SUCCESS") in new stack
    -- Executing [*97 at from-internal:6] GotoIf("SIP/203-00000003", "1?mbexist") in new stack
    -- Goto (from-internal,*97,106)
    -- Executing [*97 at from-internal:106] VoiceMailMain("SIP/203-00000003", "203 at default") in new stack
    -- Executing [*97 at from-internal:107] GotoIf("SIP/203-00000003", "0?playret") in new stack
    -- Executing [*97 at from-internal:108] Macro("SIP/203-00000003", "hangupcall,") in new stack
    -- Executing [s at macro-hangupcall:1] GotoIf("SIP/203-00000003", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s at macro-hangupcall:4] GotoIf("SIP/203-00000003", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s at macro-hangupcall:7] GotoIf("SIP/203-00000003", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s at macro-hangupcall:9] Hangup("SIP/203-00000003", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/203-00000003' in macro 'hangupcall'
  == Spawn extension (from-internal, *97, 108) exited non-zero on 'SIP/203-00000003'
    -- Executing [h at from-internal:1] Macro("SIP/203-00000003", "hangupcall") in new stack
    -- Executing [s at macro-hangupcall:1] GotoIf("SIP/203-00000003", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s at macro-hangupcall:4] GotoIf("SIP/203-00000003", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s at macro-hangupcall:7] GotoIf("SIP/203-00000003", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s at macro-hangupcall:9] Hangup("SIP/203-00000003", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/203-00000003' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/203-00000003'
--- END ---

Here is my sip_additional.conf entry for the extension I used above (302):

--- START ---
[203]
deny=0.0.0.0/0.0.0.0
secret=XXXXXXXX (blanked for security reasons)
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/203
mailbox=203 at default
permit=0.0.0.0/0.0.0.0
callerid=device <203>
callcounter=yes
faxdetect=no
--- END ---

Here is the entry for extension 203 in extensions_additional.conf:

--- START ---
exten => 203,1,Macro(exten-vm,203,203)
exten => 203,n,Goto(vmret,1)
exten => 203,hint,SIP/203
exten => ${VM_PREFIX}203,1,Macro(vm,203,DIRECTDIAL,${IVR_RETVM})
exten => ${VM_PREFIX}203,n,Goto(vmret,1)
exten => vmb203,1,Macro(vm,203,BUSY,${IVR_RETVM})
exten => vmb203,n,Goto(vmret,1)
exten => vmu203,1,Macro(vm,203,NOANSWER,${IVR_RETVM})
exten => vmu203,n,Goto(vmret,1)
exten => vms203,1,Macro(vm,203,NOMESSAGE,${IVR_RETVM})
exten => vms203,n,Goto(vmret,1)
--- END ---

and here is the entry for extension 203 in voicemail.conf:

--- START ---
203 => 12345,Test,,,attach=no|saycid=no|envelope=no|delete=no
--- END ---

Hopefully the above helps?  Please advise if there is any further info you might need, or what you would like me to try.

Thanks! :-)

-Alan



More information about the asterisk-users mailing list