Hi, When using GET DATA in an AGI it seems that the # key ends the input. So if say I want the user to input 123#456 the system will return 123. I did not see this in the documentation. Is this a bug, lack of documentation or do I have a bug in my AGI? TIA. Dovid -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220227/870a668b/attachment.html>
I believe that # in the default terminator for GET DATA and I don’t think that can be disabled. But I’m not a 100% as I’ve always used # as the terminator. From: asterisk-users <asterisk-users-bounces at lists.digium.com> On Behalf Of Dovid Bender Sent: Sunday, February 27, 2022 11:01 AM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: [asterisk-users] GET DATA on AGI Hi, When using GET DATA in an AGI it seems that the # key ends the input. So if say I want the user to input 123#456 the system will return 123. I did not see this in the documentation. Is this a bug, lack of documentation or do I have a bug in my AGI? TIA. Dovid -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220227/9fc38a11/attachment.html>
On Sun, 27 Feb 2022, Dovid Bender wrote:> When using GET DATA in an AGI it seems that the # key ends the input. So > if say I want the user to input 123#456 the system will return 123. I > did not see this in the documentation. Is this a bug, lack of > documentation or do I have a bug in my AGI?AFAIK, # is it. I use 'wait for digit' in a loop to accumulate digits so I can terminate entry based on the number of digits or a specific key. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281