09-21-2017 12:05 PM - edited 03-19-2019 12:48 PM
I am building a production script in which I need to identify the location of the calling number by the NPA of the ANI so the reports show how many calls are coming from specific states. I have the ANI String value set to "" so each call populates the calling number. I have the Get Call Contact Info set so the Calling Number populates the ANI and the Called Number populates the trigger of the IVR script. I have the Set Enteprise Call Info to send the ANI and DNIS with the next step going to a Switch where the switch value is based on the ANI. I am having difficulty entering the correct wild card synatx so I can route the call. If the test number is written entirely as a value, the call routes where the call needs to go. The questions is, what is the correct syntax, if there is one, to route the call. For example the NPA for Alabama is 205, 251, 256 and 334. I have tried a single wild card and the following group wild cards:
"205*,251*,256*,334*,928*"
"205XXXXXXX,251XXXXXXX,256XXXXXXX,334XXXXXXX,938XXXXXXX"
"205TG,251TG,256TG,334TG,928TG"
"205>?,251>?,256>?,334>?,928>?"
Looking forward for help.
Solved! Go to Solution.
09-22-2017 07:14 AM
Problem solved
I am using UCCX 10.6
Transferring data to CAD
Made headway but all found calls are now showing up as Arizona
Researching proper break command syntax
Variables used:
ANI "" String
Location "" String
added a do step
{
switch (ANI,substring(0, 3))
{
case "205": case "251": case "256": case "334": case "938":Location = "Alabama";
break;
case "904":Location = "Alaska";
break;
case "303": case "719": case "720": case "970:Location = "Arizona";
}
}
Changed Switch properties to Location
Result calls are processing into the Switch to the correct locations
09-22-2017 06:53 AM
I am using UCCX 10.6
Transferring data to CAD
Made headway but all found calls are now showing up as Arizona
Researching proper break command syntax
Variables used:
ANI "" String
Location "" String
added a do step
{
switch (ANI,substring(0, 3))
{
case "205": case "251": case "256": case "334": case "938":Location = "Alabama";
case "904":Location = "Alaska";
case "303": case "719": case "720": case "970:Location = "Arizona";
}
}
Changed Switch properties to Location
Result calls are processing into the Switch, but showing up as Arizona.
09-22-2017 07:14 AM
Problem solved
I am using UCCX 10.6
Transferring data to CAD
Made headway but all found calls are now showing up as Arizona
Researching proper break command syntax
Variables used:
ANI "" String
Location "" String
added a do step
{
switch (ANI,substring(0, 3))
{
case "205": case "251": case "256": case "334": case "938":Location = "Alabama";
break;
case "904":Location = "Alaska";
break;
case "303": case "719": case "720": case "970:Location = "Arizona";
}
}
Changed Switch properties to Location
Result calls are processing into the Switch to the correct locations
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