cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

711
Views
0
Helpful
5
Replies

UCCX SCRIPT Transfer Calls

Hi dears!

 

I have a question about an option in my custumer´s script.

The caller have the option to call an extension typing the extension´s number.

There is the possibility to block some extension in the script?

 

For example: The caller is able to transfer to exensions 8000 to 8999 but he can´t transfer to extensions 1000 to 7999 and 9000 to 9999.

Can i use wildcard in the IF option after Get Digit String to compare the extension´s numbers?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

Hi,If you have exact

Hi,

If you have exact requirement as you have mentioned. you can use If condition to check the number as below screen shoot.

Hope this will help you.

 

5 REPLIES 5
Beginner

Hi,If you have exact

Hi,

If you have exact requirement as you have mentioned. you can use If condition to check the number as below screen shoot.

Hope this will help you.

 

Advocate

Hey! Strings are supposed to

Hey! Strings are supposed to be Strings, not integers! ;-)

Beginner

Hi Gergely, Get digit

Hi Gergely,

 

Get digit stingnode will collect the number as string but we cant below condition on stings , so converted to integer and putting the condition. 

"if 7999< numberint && numberint<8999 "

Advocate

I know. But it's not

I know. But it's not recommended to do such type shuffling. Strings should remain Strings, Dates should remain Dates, integers should remain integers. I would agree that the solution presented by you works without doubt - and I endorsed it as you see - but it's "not nice".

A better solution would be to use the matches(String regex) method on the String variable containing the collected digits. But again, you could argue that casting to integer would still require less CPU overhead than doing the regex matching ;-)

G.

Highlighted

Hi everyone!I will try to

Hi everyone!

I will try to make it and I will post the results here.

Thanks a lot for you help.

Best regards!!!

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards