Phillipe,
I saw you had released a new version of the Voicemail module - 2.0.3.3. I don;t know if this new versions is meant to fix my problem or not.
However, I notice the [vm-vmmain] function has been changed to:
[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]
The new change being the line:
exten => *97,check+101(mbexist),VoiceMailMain(${AMPUSER}@${VMCONTEXT})
Previously, in 2.0.3.2 it was:
exten => *97,check+101(mbexist),VoiceMailMain(${CALLERID(num)}@${VMCONTEXT})
Thus, CALLERID(num) has been replaced by AMPUSER.
However, this still has not fixed my particular problem because this functions is still looking for AMPUSER instead of CALLERID.
This is the console log:
asterisk1*CLI>
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “Received incoming SIP connection from unknown peer to 979797”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “DID=979797”) in new stack
– Executing Goto(“SIP/demo50443-b7a3ef18”, “s|1”) in new stack
– Goto (from-sip-external,s,1)
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “1?from-trunk|979797|1”) in new stack
– Goto (from-trunk,979797,1)
– Executing Set(“SIP/demo50443-b7a3ef18”, “__FROM_DID=979797”) in new stack
– Executing Gosub(“SIP/demo50443-b7a3ef18”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“SIP/demo50443-b7a3ef18”, “”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0?blacklisted”) in new stack
– Executing Return(“SIP/demo50443-b7a3ef18”, “”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0 ?cidok”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “CALLERID(name)=442071771077”) in new stack
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “CallerID is “442071771077” <442071771077>”) in new stack
– Executing Goto(“SIP/demo50443-b7a3ef18”, “ext-miscdests|1|1”) in new stack
– Goto (ext-miscdests,1,1)
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “MiscDest: My Voicemail”) in new stack
– Executing Goto(“SIP/demo50443-b7a3ef18”, “from-internal|*97|1”) in new stack
– Goto (from-internal,97,1)
– Executing Answer(“SIP/demo50443-b7a3ef18”, “”) in new stack
– Executing Wait(“SIP/demo50443-b7a3ef18”, “1”) in new stack
– Executing Macro(“SIP/demo50443-b7a3ef18”, “user-callerid|”) in new stack
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “user-callerid: 442071771077 442071771077”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “AMPUSER=442071771077”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0?report”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0?start”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “REALCALLERIDNUM=442071771077”) in new stack
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “REALCALLERIDNUM is 442071771077”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “AMPUSER=”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “1?report”) in new stack
– Goto (macro-user-callerid,s,13)
– Executing NoOp(“SIP/demo50443-b7a3ef18”, "TTL: ARG1: ") in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0?continue”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “__TTL=64”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing NoOp(“SIP/demo50443-b7a3ef18”, “Using CallerID “442071771077” <442071771077>”) in new stack
– Executing Macro(“SIP/demo50443-b7a3ef18”, “get-vmcontext|”) in new stack
– Executing Set(“SIP/demo50443-b7a3ef18”, “VMCONTEXT=”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “1?200:300”) in new stack
– Goto (macro-get-vmcontext,s,200)
– Executing Set(“SIP/demo50443-b7a3ef18”, “VMCONTEXT=default”) in new stack
– Executing MailboxExists(“SIP/demo50443-b7a3ef18”, “@default”) in new stack
– Executing GotoIf(“SIP/demo50443-b7a3ef18”, “0?mbexist”) in new stack
– Executing VoiceMailMain(“SIP/demo50443-b7a3ef18”, “”) in new stack
– Playing ‘vm-login’ (language ‘en’)
asterisk1CLI>
As you can see the following two lines state AMPUSER as blank:
-- Executing Set("SIP/demo50443-b7a3ef18", "AMPUSER=") in new stack
-- Executing Set("SIP/demo50443-b7a3ef18", "AMPUSERCIDNAME=") in new stack
As stated previously, [app-vmmain] function in pre 2.0.2 versions used CALLERID(num) instead of AMPUSER in the following lines:
exten => *97,n,Macro(get-vmcontext,${CALLERID(num)})
exten => *97,n(check),MailBoxExists(${CALLERID(num)}@${VMCONTEXT})
The current two lines uses AMPUSER instead:
exten => *97,n,Macro(get-vmcontext,${AMPUSER})
exten => *97,n(check),MailBoxExists(${AMPUSER}@${VMCONTEXT})
When these two lines are using CALLERID(num) it works for me. When it uses AMPUSER it does not work.
Regards,
Mon