I think the OP is thinking of real-time CTI monitoring. Unfortunately, there's no way to figure this out then and there.. the number you see in (J)TAPI is already translated. Perhaps using the originally dialed number and if there's no translation of the calling number you could check available patterns in the SQL DB, but it would be one heck of a job to get it done seeing that there can be multiple patterns that can apply (in CCM7 you could have transformation patterns, translation patterns and route patterns). Internally, I'm sure CCM has a way to do all this since it's what is needed to route calls, but that functionality isn't exposed.
Now I guess it comes down to how much you need to know this information - is it worth spending considerable effort to replicate what is basically a dialed number analyzer or not?
I'm not able to access my old voice mail messages all of a sudden. The recording says something like 'the message is currently not available'. This has never happened before in all the years I have been using this system. I have t...