Problem inbound routing and DID call | IP based authentication

FreePBX 2.8.1.5

i Add a trunk for IP based authentication to generate calls from my other trunk

::Trunk settings::
disallow=all
allow=g729&gsm&ulaw&alaw
canreinvite=no
dtmfmode=rfc2833
host=—hostname—
insecure=very
port=5060
qualify=yes
type=friend


i add inbound routing to generate calls from my other trunks

ALL Calls
any DID / any CID

Set destination:
Trunk: my selected trunk.


My problem is that if i received call from friend trunk it is not dailing did/cid no. it didn’t dail anything… it try to dail s or blank…

Please tell me that how to configure inbound routing that it dail same as DID no.

You don’t have a context, try from-trunk

thank you for your reply
i add from-trunk but still same problem.

Please check the log and findout that why it dailing “DIAL_NUMBER=s” ???

-------- LOG ------------

[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [XXXXXXX@from-trunk:1] NoOp(“SIP/server1-000006b3”, “Catch-All DID Match - Found XXXXXXX - You probably want a DID for this.”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [XXXXXXX@from-trunk:2] Goto(“SIP/server1-000006b3”, “ext-did,s,1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Goto (ext-did,s,1)
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:1] Set(“SIP/server1-000006b3”, “__FROM_DID=s”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:2] Gosub(“SIP/server1-000006b3”, “app-blacklist-check,s,1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/server1-000006b3”, “0?blacklisted”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@app-blacklist-check:2] Set(“SIP/server1-000006b3”, “CALLED_BLACKLIST=1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@app-blacklist-check:3] Return(“SIP/server1-000006b3”, “”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:3] ExecIf(“SIP/server1-000006b3”, “1 ?Set(CALLERID(name)=waqas)”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:4] Set(“SIP/server1-000006b3”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:5] Set(“SIP/server1-000006b3”, “CALLERPRES()=allowed_not_screened”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [s@ext-did:6] Goto(“SIP/server1-000006b3”, “ext-trunk,8,1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Goto (ext-trunk,8,1)
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [8@ext-trunk:1] Set(“SIP/server1-000006b3”, “TDIAL_STRING=SIP/GOP_1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [8@ext-trunk:2] Set(“SIP/server1-000006b3”, “DIAL_TRUNK=8”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [8@ext-trunk:3] Goto(“SIP/server1-000006b3”, “ext-trunk,tdial,1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Goto (ext-trunk,tdial,1)
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:1] Set(“SIP/server1-000006b3”, “OUTBOUND_GROUP=OUT_8”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:2] GotoIf(“SIP/server1-000006b3”, “1?nomax”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Goto (ext-trunk,tdial,4)
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:4] ExecIf(“SIP/server1-000006b3”, “1?Set(CALLERPRES()=allowed_not_screened)”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:5] Set(“SIP/server1-000006b3”, “DIAL_NUMBER=s”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:6] GosubIf(“SIP/server1-000006b3”, “0?sub-flp-8,s,1”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:7] Set(“SIP/server1-000006b3”, “OUTNUM=s”) in new stack
[Sep 12 14:21:54] VERBOSE[14454] pbx.c: – Executing [tdial@ext-trunk:8] Dial(“SIP/server1-000006b3”, “SIP/GOP_1/s,300,”) in new stack