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

Ethy H. Brito ethy.brito at inexo.com.br
Mon Jan 18 12:09:17 CST 2016


On Mon, 18 Jan 2016 09:38:52 -0800 (PST)
Steve Edwards <asterisk.org at sedwards.com> 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 is an odd solution but i'll give it a try.

Thanx;

Ethy


> 
> -- 
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> 
> -- 
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


-- 

Ethy H. Brito         /"\
InterNexo Ltda.       \ /  CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3797-6860     X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil   / \ 
 
PGP key: http://www.inexo.com.br/~ethy/0xC3F222A0.asc



More information about the asterisk-users mailing list