cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2687
Views
5
Helpful
18
Replies

UCCX 8 - Looking for script that redirects based on area code

kwaldecker
Level 1
Level 1

Hello All,

I am looking to do a script that takes the callerid of the inbound caller and routes it to 3 different groups (east, west, central) based on the area code the call is from.

Anyone have any samples i could look at?

I know i can get a list of area codes for each state on the web.

How would i do the reference in the script.  Will it need to check a prebuilt database?

thanks!

18 Replies 18

Strange, the issue occurs on mine as well. No worries, simply change the line to:

"/AreaCodes/AreaCode[@area=" + AreaCode +]"

I tested it locally and it works fine.

HTH

Tanner

Tanner Ezell www.ctilogic.com

I just tried it bit when i click OK or apply after changing it i get this message

Unable to parse expression; Couldn't repair and continue parsing on token #RBRACKET "]" (line 1: col:42)

I figured it out.  was missing a " in there after the AreaCode +

it looks like it works!!

thanks for the help.  Now going to try different area codes as well

Hi,

I have tried creating the XML file as

     LongIsland

When i type the line as

"/AreaCodes/AreaCode[@area=" + AreaCode +"]"

I get the error.

Can you please help?