CRS Editor scripting - need to limit characters to 5

Answered Question
Nov 19th, 2008
User Badges:

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.

Correct Answer by david.macias about 8 years 6 months ago

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


david

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
Borkes1985 Thu, 11/20/2008 - 00:25
User Badges:

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

flyingduckdk Thu, 11/20/2008 - 00:34
User Badges:


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 Thu, 11/20/2008 - 05:15
User Badges:

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.


Correct Answer
david.macias Thu, 11/20/2008 - 08:25
User Badges:
  • Blue, 1500 points or more

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


david

flyingduckdk Thu, 11/20/2008 - 10:42
User Badges:

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

Actions

This Discussion