Modify CID before every inbound route

image

image

You can put the trunk in a custom COS and run your own dialplan there.

Also, this would be another great example where Dynamic Destinations would be useful.