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

CRS Editor scripting - need to limit characters to 5

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

Re: CRS Editor scripting - need to limit characters to 5

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

david

5 REPLIES
New Member

Re: CRS Editor scripting - need to limit characters to 5

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..

New Member

Re: CRS Editor scripting - need to limit characters to 5

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

New Member

Re: CRS Editor scripting - need to limit characters to 5

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.

Re: CRS Editor scripting - need to limit characters to 5

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

david

New Member

Re: CRS Editor scripting - need to limit characters to 5

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

163
Views
0
Helpful
5
Replies