cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
677
Views
0
Helpful
2
Replies

UCCX 10.6 Script Editor looking for correct wild card values of received ANI string to configure the switch to identify calls by NPA location

jstein
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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

 

View solution in original post

2 Replies 2

jstein
Level 1
Level 1

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.

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