Unless you are dealing with hundreds of different numbers that are all somehow routed to the same application, seems like a waste of time.
If you have a few different numbers, just direct them to different JTAPI triggers on the same application. It's pretty easy to figure out which trigger started the script with the Trigger pallette steps and then a Match step.
If you really want to evaluate the Original Called Number instead of the trigger, you can use some java methods to do this with set step and then a match step.