07-24-2014 12:05 AM - edited 03-14-2019 01:39 PM
dear all
i need your help in configuring custom scripts of UCCX, we need to priotise some numbers so that when customer calls it should give priority to the customer call and send that call to an agent directly, i have created XML file and store that numbers in it and save it in database of UCCX, here i have attached some screenshots of my configuration please advise me where i am wrong, becasue its not matching the number.
07-24-2014 12:37 AM
Hi,
please use this XML instead:
<?xml version="1.0" encoding="UTF-8" ?>
<numbers>
<number>03214689910</number>
<number>03444467297</number>
<number>1234</number>
<number>3333</number>
</numbers>
save it as numbers.xml into your Document Repository.
Adjust your script as follows:
Change the name of the variable named DOC to doc to avoid confusion.
Then use the following steps:
doc = Create XML Document (DOC[numbers.xml])
priority_number = GET XML Document Data (doc, "//number[contains(.,"+in_Calling_number+")]")
If ((priority_number!=null) Then
- True: /* Calling number found in XML */
- False: /* Calling number not found in XML */
I will post a screenshot as well.
The XPath expression is formulated so that 3, 33, 333 and 3333 will match, but 33333, 333333 etc won't. So you don't need an exact match. Just make sure that the numbers within the number XML elements are in E.164 format.
G.
07-24-2014 01:05 AM
Thanks for the brief explanation, i will use E 14 number it was my extension for testing purpose,
and see priority_number = GET XML Document Data (doc, "//number[contains(.,"+in_Calling_number+")]"// it is accepting this line as it is, added "// in the last then accepted so its correct?
also tell me the placement of these lines is correct in my script it should be after day of week check ?
07-24-2014 01:14 AM
Hi,
yes, after the day of week check.
Here's a screenshot of the steps I used in my script:
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide