Inbound Routes based on DID *and* CallerID String

I know how to route inbound calls based on their DID or their CallerID quite well–but how will FreePBX behave when I have multiple inbound paths with the same DID, but different CallerID strings… and then one more rule with the DID and “any” for CallerID?

Thanks!

The help text for the ‘CID priority route’ covers this. It looks like the priority is:
CID/DID
CID only with CID priority enabled
DID only
CID only

I wonder what happens when you throw patterns into the mix.

Most restrictive match first.