That depends on what version of CUCM you have. From 8.0 and forward it can be done with the route next hop based on calling number feature.
See more at this URL, https://supportforums.cisco.com/docs/DOC-18367
Please rate useful posts.
Sent from Cisco Technical Support iPhone App