Hi Anna.
Check the calling search space associated with phones and/or directory numbers having the issue and see if there is any overlapping DN or Patterns.
Suggest the use of route plan report through Call Routing menu of CUCM Administration Page and Dialed Number Analyzer through Cisco Unified Serviceability --> Tools Menu
HTH
Regards
Carlo
Please rate all helpful posts
"The more you help the more you learn"