Yes you can do this. The first thing to do is strip off the first three digits so you can use that for the XPath query. The easiest way to do this is with the .substring() method and assign the resulting value to a new variable. Once you have the three-digit string that you want to search for, use that in an XPath statement of a Get XML Document Data step. Your XPath query would look like this: "/SITE/NUMBER[@prefix='" + callerPrefix + "']/NAME" Note that the attribute value you want is contained withing single quotes which are passed to the XML parser after the Get XML Document Data step concatinates the strings together and inserts the variable value at runtime.
Generally speaking, the entire script is Java with a pretty UI layed on top of it. Most Java expressions/coding rules apply. In the more basic versions you have to be careful how advanced you get because you do not have a "Java license" and certain things can throw an exception.
Anyways, for .substring() you could just use it in a Set step for simplicity. Set callerPrefix = callingNumber.substring(1,3). You may need to play with those integer values; I can never remember the char selection rules for this method.
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...