10-07-2008 09:56 PM - edited 03-14-2019 03:01 AM
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
10-08-2008 05:15 AM
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
10-08-2008 01:17 PM
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.
10-08-2008 06:13 AM
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
10-08-2008 03:24 PM
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
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