[asterisk-users] Read one or X DTMF

Ruddy Gbaguidi plugworld at micnes.com
Fri Sep 12 20:38:41 CDT 2008


But user just needs to enter * instead of *#
We are doing this because 80% of the callers already have an account, 
so, instead of playing :
"If you have an account, press 1, if not press 2"

we prefer to play

"Enter you account now or press * if you don't have any"


Karsten Wemheuer wrote:
> 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
>   
> ------------------------------------------------------------------------
>
>
> Internal Virus Database is out of date.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 269.23.16/1448 - Release Date: 5/16/2008 7:42 PM
>   




More information about the asterisk-users mailing list