Inbound Route based on TRUNK name?

For some reason a lot of my incoming calls have an EMPTY DID field in the CDR logs. And everyone of these calls also fails to be routed to the appropriate extension. Some calls do get routed properly – and upon checking the CDR log, those calls had valid info in the DID field.

So is there someway for an inbound route to operate based on which trunk the call came in on?

What type trunks?

You could build a custom context from that trunk.