[asterisk-dev] Does Asterisk 'queue' DTMFs?
Steven S. Critchfield
critch at basesys.com
Wed Jul 23 12:58:55 CDT 2008
----- "Saúl Ibarra" <saghul at gmail.com> wrote:
> Hi all,
>
> I'm thinking of using Asterisk to control a game-like application
> with
> DTMF key presses, but I've noticed that if I press the keys very
> quickly, Asterisk 'queues' the DTMF tones and they are passed to
> Asterisk delayed.
>
> To test this I made an AGi with an infinite loop and used read
> function to read just one digita an after I made it sleep for 0,5
> secs. I spected the DTMFs to get 'lost', but they aren't.
>
> Does asterisk queue the DTMF tones? If so, can anyone point me to the
> code part where this is done? I'm thinking of not buffering them,
> because for this applcation they don't need to be...
You are using a buffered IO pipe when you use AGI. So yes, the responses are "queued". The response was placed in the pipe and was awaiting your return to read it. This is not a feature of asterisk but rather of pipes.
--
Steven Critchfield critch at basesys.com
More information about the asterisk-dev
mailing list