Depends on how the direct lines are configured. Check your translation patterns (Call Routing > Translation Pattern in CUCM admin). You may have one pattern for each DID. You may have a wildcard pattern that matches multiple DIDs such as 1234567XXX. Click on the translation pattern and look at the Called Party Transform Mask. This will tell you which DN the pattern is translated to. This translation could also be done with a translation rule on your gateway. Multiple places it can be done. Will have to start narrowing down. Also may need to check with your carrier regarding which DIDs you own.