cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
478
Views
0
Helpful
1
Replies

CUE Script Question.

spodonnell
Level 1
Level 1

Is there a way to check how many digits where collected from a "Get Digit String" step? I'm trying to use a "Get Digit String" instead of a menu step.

If the user presses 1 digit , then I can assume it is a menu option; if the user enters 4 digits, I can assume it's an extension.

1 Reply 1

Markus Schneider
Cisco Employee
Cisco Employee

You need to collect exactly one digit from the Get Digit String; then (assuming one was entered) incrememnt a counter. Then have another Get Digit String step. If that one collects a digit, then you're dealing with an extension (keep collecting digits), otherwise if collectedDigits=1 then it's a menu option and you can determine what to do based on what that digit was.

You can look at the attached example. It does not handle extensions that overlap with menu choices (see the README), but you could do that, too, if you wanted to.