<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you have a large amount of area code, and have premium, database lookup is probably more efficient.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:black'>Dennis Heim | Solution Architect (Collaboration)</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:black'>World Wide Technology, Inc. | 314-212-1814<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><b><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00007F'>PS Engineering: </span></i></b><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#00007F'> Innovate & Ignite.</span></i><span style='font-size:13.5pt;font-family:"Calibri","sans-serif";color:black'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> cisco-voip [mailto:cisco-voip-bounces@puck.nether.net] <b>On Behalf Of </b>Anthony Holloway<br><b>Sent:</b> Monday, September 30, 2013 10:00 PM<br><b>To:</b> Chase Mergenthal<br><b>Cc:</b> cisco-voip@puck.nether.net<br><b>Subject:</b> Re: [cisco-voip] Implement UCCX Geographic Inbound Call Routing using callers area code<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Chase,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>That XPATH can be condense like so:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>"//[@number='" + ani + "']/csq"</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You could also condense the XML to:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'><?xml version="1.0" encoding="utf-8"?></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><triggers></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><trigger number="17631112222">CSQ</trigger></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'></triggers></span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>And then your XPATH is simply:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>"//[@number='" + ani + "']"</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>However, Grace is looking for a solution based on caller's area code, which would involve at least one more step: pulling the area code out of the calling number.  So Grace, this is how you pull an area code from the calling number.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>ani = Get Call Contact Info (Calling Number)</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Set area_code = ani.substring(0, 3)</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>And now at this point, one could use the XML file approach as Chase has pointed out.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'><?xml version="1.0" encoding="utf-8"?></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><areas></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><area code="612">Midwest_CSQ</area></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><area code="305">East_CSQ</area></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'></areas></span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Of course that can be a large file considering there are almost 300 area codes in use today, and that number is growing towards its current maximum potential of 800 numbers.  In an effort to shrink that document, you could compress the data yourself like this:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'><?xml version="1.0" encoding="utf-8"?></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><a><b c="612">0</b><b c="305">1</b></a></span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>We're just using single characters to represent the tag names, and numeric values for the CSQ names.  You will need a String Array to convert the digit value of the CSQ into the actual CSQ like this:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Variable<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>String[] csq_map = new String[] {"Midwest_CSQ", "East_CSQ"}</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Script<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>result = Get XML Document Data(xml_doc, "//[@c='" + ani + "']")</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Set csq = csq_map[Integer.parseInt(result)]</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If you haven't worked with String Arrays yet, just know that each element in the array has an associated value, or index, and it starts with 0 on the left, and goes up incrementally from there to the right.  So in the above example, Midwest_CSQ is 0 and East_CSQ is 1.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>At this point, your csq variable holds the name of the CSQ, and you saved yourself some amount of JVM heap usage.  The reason this saves space is because if you have 150 area codes for which CSQ NorthCentralSupport_CSQ (a 23 character name) serves, then without the trick you need at least 150 * length of CSQ Name, which is 3.4KB.  With the trick I used, you get the text alone down to 150Bytes (the character "0" used 150 times).  That's a 96% decrease.  Now, the String Array doesn't come for free, and there is a formula to figure it out, but I'd wager you're fine doing without the compression at all, therefore compression is just icing on the cake.  Just use RTMT perfmon counters to watch your JVM heap usage.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You could alternatively use a java switch block and keep all dependencies right inside the script, but I don't know if the XML functionality is a requirement for you or not.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Example:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>Do {</span><o:p></o:p></p></div></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>switch (area_code) {</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>case "612": case "763": case "651":</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = "Midwest_CSQ";</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>break;</span><o:p></o:p></p></div></blockquote></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>case "305": case "786":</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = "East_CSQ";</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>break;</span><o:p></o:p></p></div></blockquote></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>default:</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = "Default_CSQ";</span><o:p></o:p></p></div></blockquote></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>}</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>}</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>This has the advantage of not having to assign the csq variable for each area code in the US, rather you do it for blocks of csq's rather easily, as I have demonstrated.  If you needed this to be available to a few other scripts, consider making it a sub flow which takes 1 input mapping of the ani, and provides 1 output mapping of the mapped csq name like so:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>area_code_lookup.aef<o:p></o:p></p></div><div><p class=MsoNormal>Variables<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>String csq = ""</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>String ani = ""</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Script<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>Start</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>On Exception (WFExecutionException) Goto End of Script</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Do {</span><o:p></o:p></p></div></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>switch (ani.substring(0, 3)) {</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>case "612": case "763": case "651":</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = "Midwest_CSQ":</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>break;</span><o:p></o:p></p></div></blockquote></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>case "305": case "786":</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = "East_CSQ";</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>break; </span><o:p></o:p></p></div></blockquote></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>}</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>}</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>End of Script:</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>End</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>main_aa.aef<o:p></o:p></p></div><div><p class=MsoNormal>Variables<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>String csq = ""</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>String ani = ""</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Script<o:p></o:p></p></div><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>Start</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Accept(--Triggering Contact--)</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>ani = Get Call Contact Info (Calling Number)</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>csq = Call Subflow (SCRIPT[area_code_lookup.aef], Input: ani, Output: csq)</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Set csq (csq == null || csq.trim() == "") ? "Default_CSQ" : csq</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>Select Resource (--Triggering Contact-- from csq)</span><o:p></o:p></p></div></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>Connected</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>End</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>Queued</span><o:p></o:p></p></div></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>...queue logic...</span><o:p></o:p></p></div></blockquote></blockquote></blockquote><blockquote style='margin-left:30.0pt;margin-right:0in'><div><p class=MsoNormal><span style='font-family:"Courier New"'>End</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>There's many different ways to solve for this requirement.  Which one you pick should meet the objective first, and then be easy to troubleshoot and administer second.  The rest is subjective.  In my opinion...of course!  Haha.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Good luck.<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Sep 30, 2013 at 3:29 PM, Chase Mergenthal <<a href="mailto:cmergenthal@digitalriver.com" target="_blank">cmergenthal@digitalriver.com</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Conceptually this is how you could do it:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img border=0 width=744 height=69 id="_x0000_i1025" src="cid:image002.png@01CEBE90.0B169340"><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Xml doc:</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><triggers></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><trigger number="17631112222”></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><csq>CSQ</csq></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'></trigger></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'></triggers></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#4BACC6'>Chase Mergenthal </span><b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'>|</span></b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'> </span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#404040'>Digital River</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#4BACC6'>p: </span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#404040'><a href="tel:%2B1%20952%20225%203202" target="_blank">+1 952 225 3202</a> </span><b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'>|</span></b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'> </span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="mailto:cmergenthal@digitalriver.com" target="_blank">cmergenthal@digitalriver.com</a></span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#404040'> </span><b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'>|</span></b><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#92D050'> </span><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.digitalriver.com/" target="_blank">digitalriver.com</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Calibri","sans-serif"'>10380 Bren Road West, Minnetonka, MN 55343, United States</span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> cisco-voip [mailto:<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>] <b>On Behalf Of </b>Grace Maximuangu<br><b>Sent:</b> Monday, September 30, 2013 3:14 PM<br><b>To:</b> Anthony Holloway; Ryan LaFountain (rlafount); <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br><b>Subject:</b> [cisco-voip] Implement UCCX Geographic Inbound Call Routing using callers area code</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi all,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have a customer requirement, when a call is placed into the call center, the script needs to query an xml file using Xpath (they do not want to do a database lookup at this time)  to determine what CSQ to place the call in.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Has anyone done this before?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Or does anyone have a sample code that can be modified to satisfy this requirement?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>:-:gm</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Grace Maximuangu</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Voice Solutions Engineer</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Black Box Network Services</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'>Cell: <a href="tel:213.268.6342" target="_blank">213.268.6342</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><a href="mailto:grace.maximuangu@blackbox.com" target="_blank">grace.maximuangu@blackbox.com</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><a href="http://www.blackbox.com/" target="_blank">www.blackbox.com</a> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#17365D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=284 height=57 id="_x0000_i1026" src="cid:image003.jpg@01CEBE90.0B169340" alt="bbox logo.JPG"></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>This email and any files transmitted with it are confidential and are intended for the sole use of the individual to whom they are addressed. Black Box Corporation reserves the right to scan all e-mail traffic for restricted content and to monitor all e-mail in general. If you are not the intended recipient or you have received this email in error, any use, dissemination or forwarding of this email is strictly prohibited. If you have received this email in error, please notify the sender by replying to this email.</span><o:p></o:p></p></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>