Extension naming

This could be a feature, but some of you may have already solved this problem by building alternate numbering schemes.

If I have a T1 with 10,000 DID numbers and I name the extension the same as the DID number, outbound routing sends the call to the PSTN instead of to the logged in extension.

Any ideas?