Freddi Hansen
2003-Oct-19 03:47 UTC
[Asterisk-Users] Feedback request: AGI GET DATA change termination digits
Hi, this is my 1.st response to this list, i hope this will work. I tend to agree with Steven since just allowing other termination digits probaly wont solve your upcoming the issues anyway. I use a wrapper around the 'get digit' which allows me to specify that the * digit repeats the menu but maxium 3 times and if the * star digit is used twice in sequence (without other digits inbetween ) then it means 'go to the menulevel above current level'. This was todays 'noise' from me. Freddi Subject: Re: [Asterisk-Users] Feedback request: AGI GET DATA change - termination digits From: Steven Critchfield <critch@basesys.com> To: asterisk-users@lists.digium.com Date: Sat, 18 Oct 2003 19:14:14 -0500 Reply-To: asterisk-users@lists.digium.com While that change is fine, you could also just write the same functionality with get digit and deal with it inside the AGI app. On Sat, 2003-10-18 at 16:50, Paul Crick wrote:>> ** REPOST: A week later and no feedback - am I the only one >> ** who'd find this functionality useful? No other AGI stuff >> ** out there needing something similar? >> >> I'd like some feedback on potentially submitting a request (and probably a >> patch too) to change the way the AGI command GET DATA works. >> >> Right now, # terminates the entry, which is then returned with the # >> stripped off the end. What I'd like is to allow user configurable >> termination digits, which are not stripped off the end. >> >> Reasoning: Some entries you'd like to terminate with #. Right now it's fine, >> you can tell if # was pressed or not by looking for the lack of a (timeout) >> entry in the returned result. You may want to allow * to cancel an entry. >> This is not possible right now. Systems I've coded previously allow # to >> terminate and complete a digit entry, * to correct an incorrect entry >> (playing the prompt again and restarting digit collection). Pressing * with >> no prior digit entry cancels the step and returns to the previous menu. >> >> I guess there's a compatibility issue with stuff that's out there already >> but if it was an optional 4th parameter this would be backwards compatible. >> >> Proposed new syntax: >> GET DATA <filename> <timeout> <maxdigits> <terminator> >> >> If terminator is specified (and it may be multicharacter, like "*#" to give >> me the functionality above), return the digit string collected so far, >> including the terminating digit. The calling app can strip the trailing >> character if needed. >> >> Thoughts? >> >> Cheers >> Paul >> >> _______________________________________________ >> Asterisk-Users mailing list >> Asterisk-Users@lists.digium.com >> http://lists.digium.com/mailman/listinfo/asterisk-users > >-- Steven Critchfield <critch@basesys.com>