cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
862
Views
0
Helpful
9
Replies

mapping called number with a name

bphelps
Level 2
Level 2

I want to map called numbers with a name that can be displayed to in the enterprise data field on the agent desktop.

The client has ipcc expressed enhanced so I cannot query a database for the data. I could use the if and then set to match and then map. However, there are about 200 mappings I need to make. Totally unwieldy to do if-then statements. Plus, isn't there a tree depth limitation of 32 or something?

Is there a better way to do this?

9 Replies 9

adignan
Level 8
Level 8

You could store the information in an .xml file and use that as your "DB". Not sure of your CRS/XML scripting experience (much to in depth for me to walk you through creating this appplication) but it can easily be done.

http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_1/english/admn_app/step_ref/doc.htm

that looks like it might work really well. can you give any guidance on the format of the "XML Path" setting? Here is an example:

Information

I know the CALLER attribute number and I want to find the NAME associated with it. Here is the xml path I have tried, but it gives me a parse error:

/child::CALLER[attribute::number='81470']

I also tried to no avail:

/CALLER[@number=81470]/NAME/text()

and variations thereof...

Hi,

The following sample is extracted from Editor Step Reference Guide

http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/step.pdf -Pg.No:11-14

Example 11-2 A Sample XML File

58.0625

0.67114094

55.1875

56.25

0.375

31,973,600

0

02/21/2001

To extract data from an XML file, you must identify the exact XML path, as in

Example 11-3 Typical XML Path

/descendant::STOCKLIST/child::STOCK[attribute::symbol='CSCO']/child::LAST

As per your example XML file

Information

To extract the value of node "Name" the XML path should be specified as follows

"/descendant::CALLER[attribute::number='81470'] /child::NAME".

Hope it helps

Regards

Yogi

Thanks. That helped.

Hi Brandon,

One of my client has same requirement you have mentioned above.Can you pls let me know how you have acheived this requirement.Thanks in advance.

Regards,

Jagadish S

Here is what I did to successfully extract data from an xml file. This is an example that pulls the open and closed hours from an xml file. You can easily extend this to map names:

variable: systemTimeURL (type = document, value=URL[http:///file.xml])

variable: systemTime (type=document value=null)

variable: openHours (type=string value=null)

This is what the xml file looks like:

0600

2300

Steps:

Create XML Document (Source Document=systemTimeURL Result Document=systemTime)

Extract XML Document Data (Document=systemTime, XML Path=/descendant::times/child::open, Result Data=openHours)

That gives you your name. Replace the "/descendant::times/child::open" path with "/descendant::times/child::" when you extract the data from the xml file. To do that you might need to make a string variable that is the concatenation of "/descendant::times/child::" and "". I suspect there are more elegant ways to do it, but this is what I got to work.

attached is an example file that I made (it does something different, but the idea of extracting sml data is the same).

Nice post, has anyone done this for names yet ?

I created an XML file and a script that maps the customer name based on the dialed (called) number and selects a custom prompt specific to the customer.

I created a new post titled "Popping the Customer Name based on Called Number" posted on April 5, 2005.

Good luck - Rob.

Thanks Rob, Managed to figure this out, quite simple really.

I take a look at your post to double check.

James