10-15-2014 07:11 PM - edited 03-14-2019 01:59 PM
Hi,
Very simple issue, I have "get digit string" in my script, the caller can enter 1 or 2 digits.
When I set the "input length" to 1, when I set it to 2, only caller can enter two digits. If caller enters 1
it does not go to successful, unsuccessful nor timeout. It just step over it!
If I set it to one, Caller only can enter the 1 digits!! does not work for two digits.
Thanks,
HM
10-15-2014 11:43 PM
Hi Hamed,
If you are putting input length to 2 and entering only 1 the system will not take it.
so select a termination digit ( like * or #) and press 1 and that termination digit.
then system will correctly take 1.
10-16-2014 03:37 PM
You can enter only one digit into a Get Digit String node that is configured with an Input Length of two and still accept input with a length of one without a terminating digit. If you have the terminating digit and the caller presses it you will go into the Successful branch. If the caller does not press the terminating digit (#) and the input length is less than expected it will fall down the Timeout branch. If you don't have anything in that branch it could appear to skip it. If you don’t want the caller to have to press # after they have made their selection you can build your logic for single digit option in the Timeout branch and all of your logic for two digits under the Successful branch.
If you have the Terminating digit set this will expedite processing the input when the length is less than the set value and see the entry as successful. If you don't have a terminating digit it will have a delay equal to the Inter digit Timeout (3 seconds by default.)
I would also recommend setting the Maximum Retries to '0'.
I regularly use this step to allow the caller to enter an extension OR an menu option.
Single digit input WITHOUT pressing #:
234470333: Oct 16 17:01:44.905 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : Start
234470334: Oct 16 17:01:44.905 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : Accept (--Triggering Contact--)
234470430: Oct 16 17:01:44.923 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : userInput = Get Digit String (--Triggering Contact--)
234470432: Oct 16 17:01:44.923 CDT %MIVR-STEP_MEDIA_CONTROL-7-UNK:Task:50000104004 GetDigitStringStep (ParseInputStep): myExecute
234470692: Oct 16 17:01:48.228 CDT %MIVR-SS_TEL-7-UNK:CallID:41279 MediaId:6721501/3 Task:50000104004 Digit received: 1
234470697: Oct 16 17:01:51.244 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : /* timeout */
234470698: Oct 16 17:01:51.244 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : emailContact = Create eMail (userInput)
234470700: Oct 16 17:01:51.245 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : Send eMail (emailContact to "")
234470701: Oct 16 17:01:51.266 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : /* email success */
234470702: Oct 16 17:01:51.266 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : Terminate (--Triggering Contact--)
234470709: Oct 16 17:01:51.270 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000104004 : End
Single digit input WITH pressing #:
234456468: Oct 16 16:59:26.076 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : Start
234456469: Oct 16 16:59:26.076 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : Accept (--Triggering Contact--)
234456608: Oct 16 16:59:26.095 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : userInput = Get Digit String (--Triggering Contact--)
234456752: Oct 16 16:59:27.375 CDT %MIVR-SS_TEL-7-UNK:CallID:41273 MediaId:6721495/3 Task:50000103999 Digit received: 3
234456753: Oct 16 16:59:28.103 CDT %MIVR-SS_TEL-7-UNK:CallID:41273 MediaId:6721495/3 Task:50000103999 Digit received: #
234456755: Oct 16 16:59:28.103 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : /* success */
234456756: Oct 16 16:59:28.103 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : emailContact = Create eMail (userInput)
234456758: Oct 16 16:59:28.104 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : Send eMail (emailContact to "")
234456759: Oct 16 16:59:28.113 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : Terminate (--Triggering Contact--)
234456769: Oct 16 16:59:28.116 CDT %MIVR-ENG-7-UNK:Execute step of Task 50000103999 : End
DJ
10-16-2014 12:09 AM
Hi,
get digit string-->property-->filter--.terminating Digit
By default its #, so if you have set the length to 2 and after entering 1 digit then press # , it will successfully execute.
Record your prompt which will give this info, so that after user will press one digit it will press # .
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide