Hi
This is sort of related to my previous post found at:
http://www.freepbx.org/forum/freepbx/users/voicemail-callerid-and-ampuser-app-vmmain
I am having trouble accessing voicemail - using *98 - when I set the context to a different name other than ‘default’. Note: I changed an existing extension from “default”.
However, voicemail access using *97 is OK.
From the debug when using *98 it seems the context returned is ‘default’:
-- Executing Answer("SIP/2570-093d74d8", "") in new stack
-- Executing Wait("SIP/2570-093d74d8", "1") in new stack
-- Executing VoiceMailMain("SIP/2570-093d74d8", "") in new stack
-- Playing 'vm-login' (language 'en')
-- Playing 'vm-password' (language 'en')
-- Incorrect password '2570' for user '2570' (context = default)
-- Playing 'vm-incorrect-mailbox' (language 'en')
Debug for *97 is getting the correct context of ‘qicomm’:
-- Executing Answer("SIP/2570-09459640", "") in new stack
-- Executing Wait("SIP/2570-09459640", "1") in new stack
-- Executing Macro("SIP/2570-09459640", "user-callerid|") in new stack
-- Executing NoOp("SIP/2570-09459640", "user-callerid: Monideth Pen - WiFi 2570") in new stack
-- Executing Set("SIP/2570-09459640", "AMPUSER=2570") in new stack
-- Executing GotoIf("SIP/2570-09459640", "0?report") in new stack
-- Executing GotoIf("SIP/2570-09459640", "0?start") in new stack
-- Executing Set("SIP/2570-09459640", "REALCALLERIDNUM=2570") in new stack
-- Executing NoOp("SIP/2570-09459640", "REALCALLERIDNUM is 2570") in new stack
-- Executing Set("SIP/2570-09459640", "AMPUSER=2570") in new stack
-- Executing Set("SIP/2570-09459640", "AMPUSERCIDNAME=Monideth Pen - Nokia") in new stack
-- Executing GotoIf("SIP/2570-09459640", "0?report") in new stack
-- Executing Set("SIP/2570-09459640", "AMPUSERCID=2570") in new stack
-- Executing Set("SIP/2570-09459640", "CALLERID(all)="Monideth Pen - Nokia" <2570>") in new stack
-- Executing Set("SIP/2570-09459640", "REALCALLERIDNUM=2570") in new stack
-- Executing NoOp("SIP/2570-09459640", "TTL: ARG1: ") in new stack
-- Executing GotoIf("SIP/2570-09459640", "0?continue") in new stack
-- Executing Set("SIP/2570-09459640", "__TTL=64") in new stack
-- Executing GotoIf("SIP/2570-09459640", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing NoOp("SIP/2570-09459640", "Using CallerID "Monideth Pen - Nokia" <2570>") in new stack
-- Executing Macro("SIP/2570-09459640", "get-vmcontext|2570") in new stack
-- Executing Set("SIP/2570-09459640", "VMCONTEXT=qicomm") in new stack
-- Executing GotoIf("SIP/2570-09459640", "0?200:300") in new stack
-- Goto (macro-get-vmcontext,s,300)
-- Executing NoOp("SIP/2570-09459640", "") in new stack
-- Executing MailboxExists("SIP/2570-09459640", "2570@qicomm") in new stack
-- Executing VoiceMailMain("SIP/2570-09459640", "2570@qicomm") in new stack
-- Playing 'vm-password' (language 'en')
-- Playing 'vm-youhave' (language 'en')
The two voicemail functions found in extension_additional.conf are as such:
[app-dialvm]
include => app-dialvm-custom
exten => *98,1,Answer
exten => *98,n,Wait(1)
exten => *98,n,VoiceMailMain()
exten => *98,n,Macro(hangupcall,)
exten => _*98.,1,Answer
exten => _*98.,n,Wait(1)
exten => _*98.,n,Macro(get-vmcontext,${EXTEN:3})
exten => _*98.,n,VoiceMailMain(${EXTEN:3}@${VMCONTEXT})
exten => _*98.,n,Macro(hangupcall,)
; end of [app-dialvm]
[app-vmmain]
include => app-vmmain-custom
exten => *97,1,Answer
exten => *97,n,Wait(1)
exten => *97,n,Macro(user-callerid,)
exten => *97,n,Macro(get-vmcontext,${AMPUSER})
exten => *97,n(check),MailBoxExists(${AMPUSER}@${VMCONTEXT})
exten => *97,n,GotoIf($["${VMBOXEXISTSSTATUS}" = “SUCCESS”]?mbexist)
exten => *97,n,VoiceMailMain()
exten => *97,n,Macro(hangupcall,)
exten => *97,check+101(mbexist),VoiceMailMain(${AMPUSER}@${VMCONTEXT})
exten => *97,n,Macro(hangupcall,)
; end of [app-vmmain]
I noticed with [app-dialvm] that the last 5 exten entries has “_*98.” instead of “*98” - what does this mean?
Please advise why the context detection is not working for *98.
Note: I asm using device and user mode.
Regards,
Mon