Hi:
I have a very simple custom context:
[from-other-custom]
exten => s, 1, Answer
exten => s,n,Set(CALLERID(name)=l00001
exten => s,n,Set(CALLERID(num)=100001)
exten => s,n,goto(from-trunk,s,1)
exten => s,n, Hangup()
I have an incoming route where
DID Number = 100001
Caller ID Number = 100001
Unfortunately the call is always routed to the default route:
pbx*CLI>
-- Executing [s@from-other-custom:1] Answer("SIP/DOORBELL-IN-00000007", " ") in new stack
-- Executing [s@from-other-custom:2] Set("SIP/DOORBELL-IN-00000007", "CAL LERID(name)=l00001") in new stack
-- Executing [s@from-other-custom:3] Set("SIP/DOORBELL-IN-00000007", "CAL LERID(num)=100001") in new stack
-- Executing [s@from-other-custom:4] Goto("SIP/DOORBELL-IN-00000007", "fr om-trunk,s,1") in new stack
-- Goto (from-trunk,s,1)
-- Executing [s@from-trunk:1] Set("SIP/DOORBELL-IN-00000007", "__FROM_DID=s" ) in new stack
-- Executing [s@from-trunk:2] Gosub("SIP/DOORBELL-IN-00000007", "app-blackli st-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/DOORBELL-IN-00000007", "0 ?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/DOORBELL-IN-00000007", "CALL ED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/DOORBELL-IN-00000007", "" ) in new stack
-- Executing [s@from-trunk:3] ExecIf("SIP/DOORBELL-IN-00000007", "0 ?Set(CAL LERID(name)=100001)") in new stack
-- Executing [s@from-trunk:4] Set("SIP/DOORBELL-IN-00000007", "__CALLINGPRES _SV=allowed_not_screened") in new stack
-- Executing [s@from-trunk:5] Set("SIP/DOORBELL-IN-00000007", "CALLERPRES()= allowed_not_screened") in new stack
-- Executing [s@from-trunk:6] Goto("SIP/DOORBELL-IN-00000007", "from-did-dir ect,201,1") in new stack
-- Goto (from-did-direct,201,1)
-- Executing [201@from-did-direct:1] Macro("SIP/DOORBELL-IN-00000007", "exte n-vm,201,201") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/DOORBELL-IN-00000007", "user-ca llerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/DOORBELL-IN-00000007", "AMPU SER=100001") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/DOORBELL-IN-00000007", "0 ?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/DOORBELL-IN-00000007", "1 ?Set(REALCALLERIDNUM=100001)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/DOORBELL-IN-00000007", "AMPU SER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/DOORBELL-IN-00000007", "AMPU SERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/DOORBELL-IN-00000007", "1 ?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/DOORBELL-IN-00000007", " 0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/DOORBELL-IN-00000007", "__T TL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/DOORBELL-IN-00000007", " 1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/DOORBELL-IN-00000007", "Us ing CallerID "l00001" <100001>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/DOORBELL-IN-00000007", "RingGroup Method=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/DOORBELL-IN-00000007", "VMBOX=201 ") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/DOORBELL-IN-00000007", "EXTTOCALL =201") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/DOORBELL-IN-00000007", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/DOORBELL-IN-00000007", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/DOORBELL-IN-00000007", "RT=20") i n new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/DOORBELL-IN-00000007", "record- enable,201,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/DOORBELL-IN-00000007", "1 ?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/DOORBELL-IN-00000007", "0 ?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/DOORBELL-IN-00000007", "0 ?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/DOORBELL-IN-00000007", " 1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/DOORBELL-IN-00000007", " 1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/DOORBELL-IN-00000007", "dial,20 ,tr,201") in new stack
Thanks,
Tim