I have several inbound routes:
1
DID 31299123456
CID _X.
goes to ringgroup
8
DID Any
CID _X.
goes to extension 1060
9
DID Any
CID Any
goes to IVR
If someone calls without CID the call routes to 9, which is okay
If someone with CID calls to 31299123456 the call routes to 1, which is okay.
If someone else with CID calls to 31299123456 the call routes to 9, which is false.
The only difference i see is that the first ( good )incoming call has a CID in the form: 0643214321 and the second ( false ) incoming call has a cid +31687654321 ( coming from a different cell provider who probably routes the call through anothe country )
Good:
Executing [31299123456@from-sip-external:1] NoOp(“SIP/80.252.84.190-11b77820”, “Received incoming SIP connection from unknown peer to 31299123456”) in new stack
Executing [31299123456@from-sip-external:2] Set(“SIP/80.252.84.190-11b77820”, “DID=31299123456”) in new stack
Executing [31299123456@from-sip-external:3] Goto(“SIP/80.252.84.190-11b77820”, “s|1”) in new stack
Goto (from-sip-external,s,1)
Executing [s@from-sip-external:1] GotoIf(“SIP/80.252.84.190-11b77820”, “1?from-trunk|31299123456|1”) in new stack
Goto (from-trunk,31299123456,1)
Executing [31299123456@from-trunk:1] NoOp(“SIP/80.252.84.190-11b77820”, “Catch-All DID Match - Found 31299123456 - You probably want a DID for this.”) in new stack
Executing [31299123456@from-trunk:2] Goto(“SIP/80.252.84.190-11b77820”, “ext-did|s|1”) in new stack
Goto (ext-did,s,1)
Executing [s@ext-did:5] Set(“SIP/80.252.84.190-11b77820”, “CALLERID(name)=+31687654321”) in new stack
Bad:
Executing [31299123456@from-sip-external:1] NoOp(“SIP/80.252.84.190-11c68510”, “Received incoming SIP connection from unknown peer to 31299123456”) in new stack
Executing [31299123456@from-sip-external:2] Set(“SIP/80.252.84.190-11c68510”, “DID=31299123456”) in new stack
Executing [31299123456@from-sip-external:3] Goto(“SIP/80.252.84.190-11c68510”, “s|1”) in new stack
Goto (from-sip-external,s,1)
Executing [s@from-sip-external:1] GotoIf(“SIP/80.252.84.190-11c68510”, “1?from-trunk|31299123456|1”) in new stack
Goto (from-trunk,31299123456,1)
Executing [31299123456@from-trunk:1] Set(“SIP/80.252.84.190-11c68510”, “__FROM_DID=31299123456”) in new stack
Executing [31299123456@from-trunk:2] Gosub(“SIP/80.252.84.190-11c68510”, “app-blacklist-check|s|1”) in new stack
Executing [s@app-blacklist-check:1] LookupBlacklist(“SIP/80.252.84.190-11c68510”, “”) in new stack
“CALLERID(name)=0643214321”) in new stack