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



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to