Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

UCCX Scripting

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
New Member

Re: UCCX Scripting

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

New Member

Re: UCCX Scripting

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.

Hall of Fame Super Silver

Re: UCCX Scripting

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

New Member

Re: UCCX Scripting

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

523
Views
0
Helpful
4
Replies