[asterisk-users] Read one or X DTMF
Karsten Wemheuer
kwem at gmx.de
Fri Sep 12 13:53:45 CDT 2008
Hi Ruddy,
Am Freitag, den 12.09.2008, 13:22 -0400 schrieb Ruddy Gbaguidi:
> Thanks for the hint. Sorry about that.
> If I use your soution, I cannot make any difference between a user
> pressing * and a user that reach the timeout because he didn't enter any
> digit.
> In both cases, I will have an empty string
You can use the variable EPOCH to get a timestamp before and after
execution of the read application. If the difference of the two values
evaluates to the timeout, the user enters nothing. Otherwise the user
enters '*#' or directly the #-key without anything more. I don't know
how to distinguish this two cases.
Regards,
Karsten
More information about the asterisk-users
mailing list