cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
484
Views
0
Helpful
5
Replies

CRS Editor scripting - need to limit characters to 5

flyingduckdk
Level 1
Level 1

Hi

I have a script

where i use GetDigitString.

in the fourth pane i can define the length of the DigitString. [Input Length:]

I need it to be exactly 5 characters long

composed by 4 digits and a trailing #

What is the best way to do this.

1 Accepted Solution

Accepted Solutions

I've not used CRS in a long time, but wont your formula allow 123# to go through?

david

View solution in original post

5 Replies 5

Borkes1985
Level 1
Level 1

I assume you probably have 4 and 5 digits dialpans, maybe you should use timeout option of GetDigitString, when only 4 digit are sent.

For example the SendDigits object in the case of timeout..

I was kinda of hoping i could solve this by

(im new at this) Changing the value of InputLength to something like InputLength = 5 chracters

flyingduckdk
Level 1
Level 1

Solved it by

adding a new IF sentence under the Succesfull criteria, containing a string variable, with the condition like this:

strNewClose.length() ==4

if true, then continue, if false play error message and go back to step before :)

i got help from my local cisco expert.

I've not used CRS in a long time, but wont your formula allow 123# to go through?

david

allmost ... i want it to allow 1234 and to end it by # :) bu i got it working :) lik i said above

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: