Manipulate inbound route at a trunk level

The trunk dial rules in the GUI are only for outbound calls. To normalize CID/DID on inbound calls requires a block of custom code. There are several threads here describing how people have done this. This is not exactly what you need, but the basics are here: DID from provider breaks incoming routes (DID matching)