You can use the Get Call Contact Info step to get the calling number of the triggering contact, after that you can use a java method to take from the calling number just the area code, or you can use and if step with the ".StartsWith(String)" method to catch the area code.
Thanks for the tips guys but I'm still not having much luck. Essentially, what I would like to do is redirect a call coming from a certain area code and exchange (817-282-****). I have a switch string in place that is working if I put in an entire number but I have not been able to make it work the way you guys have suggested. Basically, if the callingnumber is 817-282-**** where the stars are wildcards, it will redirect the call. What am I missing here?
It's not so difficult, both the suggestions you've been given above are valid and pretty clear - basically in the 'Switch Value' field of the switch step, put in one of the fucntions suggested above. So if your variable containing the calling number is a String 'callingnumber', and it has no hyphens or other formatting, and you just want to switch based on a match of the first 6 digits:
callingnumber.substring(0,5) <--- match the digits from positions 0 to 5
Then under 'whatever-you-like' add your redirect steps, and under default your default routing steps.
Perhaps have a go and post up your non-working script if you don't have any luck.
Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!
SIP traces provide key information in troubleshooting SIP Trunks, SIP
endpoints and other SIP related issues. Even though these traces are in
clear text, these texts can be gibberish unless you understand fully
what they mean. This document attempts to br...
Please find the attached HTML document, download and open it on your PC.
This provides an easy to use form where you simply answer a few
questions and it will render the proper jabber-config.xml file for you
to copy/paste. There is built in logic to verif...
CUCM Database Replication is an area in which Cisco customers and
partners have asked for more in-depth training in being able to properly
assess a replication problem and potentially resolve an issue without
involving TAC. This document discusses the bas...