cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
935
Views
0
Helpful
4
Replies

UCCX Scripting

rodneygonsalves
Level 1
Level 1

Hello All,

Can we use a wild entry to use a state based call routing i,e callers with ANI starting with "02" or "03" to get a seperate routing treatments

4 Replies 4

Chawki Salhi
Level 1
Level 1

Hello,

Yes you can! what you have to do is to collect the ANI and then do a switch on the different values it can take. Don't forget to add a default treatment. Each branch can then be routed specifically.

With best regards,

Chawki

Thanks Chawki.

But I was not sure the way the ANI collection should be used i,e

Use the "call contact info" and get the calling number, however should the value (i.e the ANI) can be written as a whole number i,e "0282314000" or "02xxxxxxxx" for all the number starting with 02.

Chris Deren
Hall of Fame
Hall of Fame

Absolutely, you can callect ANI, and then use IF statemnt such as (ANI.beginswith("02") and ANI.length() = 10) OR (ANI.beginswith("03") and ANI.length() = 10). I may be off on the method syntax, but that's the idea.

HTH,

Chris

Thanks Chris.

I was looking for the syntax for the above and unable to get into the scripting guide.

Are then are any other docs that can be referred ?

Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: