[cisco-voip] Get Digit Step not working correctly?
Matthew Loraditch
MLoraditch at heliontechnologies.com
Thu Feb 25 11:31:45 EST 2010
Yes that makes sense and looks a h*** of a lot easier than what I was looking at from netpro
Matthew Loraditch, CCNA
1965 Greenspring Drive
Timonium, MD 21093
support at heliontechnologies.com
(p) (410) 252-8830
(F) (443) 541-1593
Visit us at www.heliontechnologies.com
Support Issue? Email support at heliontechnologies.com for fast assistance!
-----Original Message-----
From: Tanner Ezell [mailto:tanner.ezell at gmail.com]
Sent: Thursday, February 25, 2010 11:29 AM
To: Mathew Miller
Cc: Matthew Loraditch; cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] Get Digit Step not working correctly?
Ahh, I understand. You could try something like this:
int MaxTicketLength = 6 /* make this a parameter for easy changing */ String digits = ""
CollectDigits:
if (digits.length() >= MaxTicketLength)
True:
Goto DigitHandling
False:
digits = digits + Get Digit Step (P[], collect 1 digit, timeout = 4 seconds) /* change timeout to whatever you want */
Success:
Goto CollectDigits
Timeout:
Goto DigitHandling /* we assume it timed out because they stopped inputting digits */
DigitHandling:
/* do stuff */
On Thu, Feb 25, 2010 at 11:21 AM, Mathew Miller <miller.mathew at gmail.com> wrote:
> Get digit step has a field called something like expected digits. If
> it is set to 5 for example and you only type in 4 digits it will ignore the input.
> On Feb 25, 2010, at 11:14 AM, Tanner Ezell wrote:
>
> Sorry, I must be confused.
> If you are not handling them based on their length, why are you
> checking for their length?
>
> On Thu, Feb 25, 2010 at 11:09 AM, Matthew Loraditch
> <MLoraditch at heliontechnologies.com> wrote:
>>
>> I am not handling them based on their length but now that my boss has
>> requested that I add an additional single digit option (I only had 1
>> before and it went to the same as my timeout so I never knew it was
>> broken I also did not write the original script) and my ticket
>> number length is going to be increasing soon I will need the script
>> to understand inputs of various length.
>>
>>
>>
>> Hopefully I answered what you are asking?
>>
>>
>>
>> Matthew Loraditch, CCNA
>> 1965 Greenspring Drive
>>
>> Timonium, MD 21093
>> support at heliontechnologies.com
>> (p) (410) 252-8830
>> (F) (443) 541-1593
>>
>> Visit us at www.heliontechnologies.com Support Issue? Email
>> support at heliontechnologies.com for fast assistance!
>>
>>
>>
>> From: Tanner Ezell [mailto:tanner.ezell at gmail.com]
>> Sent: Thursday, February 25, 2010 10:32 AM
>> To: Matthew Loraditch
>> Cc: Robben, John; cisco-voip at puck.nether.net
>> Subject: Re: [cisco-voip] Get Digit Step not working correctly?
>>
>>
>>
>> Curious,
>>
>>
>>
>> How are you handling them based on their length and why are you
>> handling them like that?
>>
>> On Thu, Feb 25, 2010 at 10:26 AM, Matthew Loraditch
>> <MLoraditch at heliontechnologies.com> wrote:
>>
>> Thanks, it appears that if I set my length for the get digit to 5 it
>> only collects the digits to memory if there are 5.
>>
>> In searching the netpro forums it appears people have to had to
>> create successive get digit steps and then concantenate the digits to
>> deal with situations like this.
>>
>> https://supportforums.cisco.com/message/345208#345208 They are
>> referring CUE scripting but it's same basic principles AFAIK
>>
>> I guess I'm going to have to figure that out since my ticket system
>> is going roll over to 100000 and 6 digit ticket numbers soon
>>
>>
>>
>> <image001.jpg>
>>
>> Matthew Loraditch, CCNA
>> 1965 Greenspring Drive
>>
>> Timonium, MD 21093
>> support at heliontechnologies.com
>> (p) (410) 252-8830
>> (F) (443) 541-1593
>>
>> Visit us at www.heliontechnologies.com Support Issue? Email
>> support at heliontechnologies.com for fast assistance!
>>
>>
>>
>> From: Robben, John [mailto:JRobben at naic.org]
>> Sent: Thursday, February 25, 2010 10:11 AM
>> To: Matthew Loraditch
>> Subject: RE: [cisco-voip] Get Digit Step not working correctly?
>>
>>
>>
>> <image002.jpg>
>>
>>
>> ________________________________
>>
>> From: cisco-voip-bounces at puck.nether.net
>> [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Matthew
>> Loraditch
>> Sent: Thursday, February 25, 2010 8:27 AM
>> To: cisco-voip at puck.nether.net
>> Subject: [cisco-voip] Get Digit Step not working correctly?
>>
>> I am using a get digit step as a menu since I need to take variable
>> length input. Users can pick an option or enter a ticket number (up
>> to 5 digits), the single digit options are not working. I am using
>> nested Ifs to handle the single digits.
>>
>> My comparison is If TicketNum == "1" and so on for other options
>>
>> Is that correct?
>>
>> When I do a reactive debug and enter either of my single digits
>> instead of going to those options I go to the timeout option.
>>
>> Has anyone else seen this? What could I be missing?
>>
>> Thanks!
>>
>>
>>
>>
>> Matthew Loraditch, CCNA
>> 1965 Greenspring Drive
>>
>> Timonium, MD 21093
>> support at heliontechnologies.com
>> (p) (410) 252-8830
>> (F) (443) 541-1593
>>
>> Visit us at www.heliontechnologies.com Support Issue? Email
>> support at heliontechnologies.com for fast assistance!
>>
>>
>> ________________________________
>>
>> CONFIDENTIALITY NOTICE This message and any attachments are from the
>> NAIC and are intended only for the addressee. Information contained
>> herein is confidential, and may be privileged or exempt from
>> disclosure pursuant to applicable federal or state law. This message
>> is not intended as a waiver of the confidential, privileged or
>> exempted status of the information transmitted. Unauthorized
>> forwarding, printing, copying, distribution or use of such
>> information is strictly prohibited and may be unlawful. If you are
>> not the addressee, please promptly delete this message and notify the
>> sender of the delivery error by e-mail or by calling the NAIC Help Desk at (816)783-8500.
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>>
>> --
>> Regards,
>> Tanner Ezell
>
>
> --
> Regards,
> Tanner Ezell
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
--
Regards,
Tanner Ezell
More information about the cisco-voip
mailing list