I need to direct calls from an 800 number to different extensions, not agents, based upon area code. I can see how to use "get call contact info" to get the calling number, but how do I take apart the calling id string to get the area code. Once I have the area code only I can go against a database and get the extension.
Is there another way to get the area code only of the calling number?
Assuming two string variables, 'callerID' which contains the calling number from your Get Call Contact Info step, and 'areacode', which will store the area code computed from this step. Add an Execute Java Method step to your script. Get the properties. On the Explore tab, set the variable to 'callerID'. On the Explore Class Information tab, on the Method drop-down select 'public String substring(int,int)'. Make sure you select the variant with two int parameters. Set argument 0 to 0, and argument 1 to 2. For assign to variable, pick your 'areacode' variable. This stores the first three characters of 'callerID' into 'areacode' (character numbering starts with 0).
When you are finished, your App Editor should show you a line that looks like: "AC = callerID.substring(0,2)".
To anticipate another possible question, if your database stores the area code as an integer instead of a string: do all of the above, and then create an Integer-type destination variable, and call the parseInt(string) method on it to convert the AC variable using the same steps we went through above.
You have reached the Cisco Logistics Support Center.. To Check Status of
your RMA, visit Product Returns & Replacements (RMA). Need help? Contact
us by Phone or Email. North Americas Phone: 1800 553 2447 Option 4
Email: email@example.com Europe Phone: +3...
The short answer is that you don't.... That isn't entirely true while at
the same time it kind of is, but for the most part you don't configure
the softkeys. You enable or disable them via TCL. Here is the long
answer. Be sure to read the whole thing or e...
Topology: IP Phone > Switches > Microsoft NPS setup to forward 802.1x
proxy to > ISE 2.1 patch 3 Authentication: EAP-TLS using Cisco MIC SANs
Phone Models 802.1X support? 802.1x flavor Addtl Comment EAP-MD5 EAP-TLS
Cisco 3905 Y Y N Cisco 6911 Y Y N Cisco ...