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

Quick UCCX Script question

Hi,

Have been asked to make a small change to our CC script. Basically we need all calls from local numbers to go to a set hunt group - I have the "Get call contact Info" setup and assigned a String paramenter & then "If" command setup.I know under the "If" i can put String=="14123456" and it matches ANI exactly but i want to match all numbers that start with 14. What expression can i use for that?

Thanks in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Quick UCCX Script question

Actually, my apologies

if (String.charAt(0) == '1' && String.charAt(1) == '4') then..

you might also be able to do:

if(String.substr(0,1) == "14") then

Cheers

On Thu, Mar 4, 2010 at 5:45 PM, rchaseling

Tanner Ezell www.ctilogic.com

Re: Quick UCCX Script question

What about:

.startsWith("14")
Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
7 REPLIES

Re: Quick UCCX Script question

if (String[0] == '1' && String[1] == '4') then..

On Thu, Mar 4, 2010 at 5:45 PM, rchaseling

Tanner Ezell www.ctilogic.com

Re: Quick UCCX Script question

Actually, my apologies

if (String.charAt(0) == '1' && String.charAt(1) == '4') then..

you might also be able to do:

if(String.substr(0,1) == "14") then

Cheers

On Thu, Mar 4, 2010 at 5:45 PM, rchaseling

Tanner Ezell www.ctilogic.com

Re: Quick UCCX Script question

What about:

.startsWith("14")
Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: Quick UCCX Script question

Thanks guys......both do the trick but i'll go with Anthony's as it looks easier

New Member

Quick UCCX Script question

Hello!

I just tried to do this at Cisco UNITY EXPRESS editor v7 and it shows me a parse error ...

i have a string1 that is a result of "get digit string" step

then at IF step i put string1==".startsWith("4")"  - and got an error

also tried  string1.charAt(0) == '4' - the same

is it working only at UCCX editor ? or there is syntaxis misconfiguration ?

thanks!

Quick UCCX Script question

This was specific to UCCX.  A disclaimer hsould be made that UCCX Standard cannot do the .startsWith() method  call or many other method call for that matter.  You would need Enhanced, Premium or IP-IVR for those.  Standard would be limited to the simple properties provided in the script editor's expression editor.

I know that with CUE there's two main levels of licensing: AA and IVR, and it's likely that you have AA which does not allow these types of advanced features.

Do you know which you have?

Here's a few points found on the CUE Datasheet:

"The optional IVR provides local integration to a  broad set of databases, an intuitive scripting environment, and  extensive reporting capabilities, for a comprehensive self-service  solution."

Table 5. Optional IVR Features

If it's the case that you are limited to what you can do with an AA only license, then I'm not sure what you can do to overcome the method call limitation to check if a string begins with a specific sequence.  I'll continue to think about it, but I don't have access to a CUE AA system to test anything.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Quick UCCX Script question

Hello again!

Thanks for answer.

I tried another version of Editor 8.0.2 (previous was v7) - seems like these commands are acceptable here...

We have AIM-CUE modules  (as I know it supports up to CUE v 7.X software)- for it we use CUE Editor 7

we also have AIM2-CUE and ISM-SRE modules - that is OK for v8.0 CUE and apropriate aditor

1120
Views
9
Helpful
7
Replies
CreatePlease to create content