Re: [asterisk-users] how to flush user input before READ()

2016-01-19 Thread Ethy H. Brito
On Mon, 18 Jan 2016 16:09:17 -0200 "Ethy H. Brito" wrote: > On Mon, 18 Jan 2016 09:38:52 -0800 (PST) > Steve Edwards wrote: > > > On Mon, 18 Jan 2016, Ethy H. Brito wrote: > > > > >> how to flush user input before READ()? > > > > How about

Re: [asterisk-users] how to flush user input before READ()

2016-01-19 Thread Steve Edwards
On Tue, 19 Jan 2016 09:02:30 -0800 (PST) Steve Edwards wrote: How about a read() to a dummy variable with a 1 second timeout to consume the octothorpe and password? If 1 second is too long, you could write an AGI to use the 'wait for digit' AGI command which

Re: [asterisk-users] how to flush user input before READ()

2016-01-19 Thread D'Arcy J.M. Cain
On Tue, 19 Jan 2016 09:02:30 -0800 (PST) Steve Edwards wrote: > >>> How about a read() to a dummy variable with a 1 second timeout to > >>> consume the octothorpe and password? > > If 1 second is too long, you could write an AGI to use the 'wait for > digit' AGI

Re: [asterisk-users] how to flush user input before READ()

2016-01-19 Thread Steve Edwards
On Mon, 18 Jan 2016, Ethy H. Brito wrote: how to flush user input before READ()? On Mon, 18 Jan 2016 09:38:52 -0800 (PST) Steve Edwards wrote: How about a read() to a dummy variable with a 1 second timeout to consume the octothorpe and password? On Tue, 19

Re: [asterisk-users] how to flush user input before READ()

2016-01-18 Thread Ethy H. Brito
Hi All. No one ? Anyone? Cheers Ethy On Fri, 15 Jan 2016 15:37:51 -0200 "Ethy H. Brito" wrote: > > Hi > > how to flush user input before READ()? > > I wrote a small script to ask for user password before granting access to > outside, but some telefones memorize

Re: [asterisk-users] how to flush user input before READ()

2016-01-18 Thread Steve Edwards
On Mon, 18 Jan 2016, Ethy H. Brito wrote: how to flush user input before READ()? How about a read() to a dummy variable with a 1 second timeout to consume the octothorpe and password? -- Thanks in advance, - Steve

Re: [asterisk-users] how to flush user input before READ()

2016-01-18 Thread Ethy H. Brito
On Mon, 18 Jan 2016 09:38:52 -0800 (PST) Steve Edwards wrote: > On Mon, 18 Jan 2016, Ethy H. Brito wrote: > > >> how to flush user input before READ()? > > How about a read() to a dummy variable with a 1 second timeout to consume > the octothorpe and password? It

[asterisk-users] how to flush user input before READ()

2016-01-15 Thread Ethy H. Brito
Hi how to flush user input before READ()? I wrote a small script to ask for user password before granting access to outside, but some telefones memorize the full user input, including "#". So, when the user press redial, for instance 5556789#123, asterisk accepts the number and the password