[asterisk-users] Read one or X DTMF

Ruddy Gbaguidi plugworld at micnes.com
Fri Sep 12 12:22:52 CDT 2008


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

Karsten Wemheuer wrote:
> Hi,
>
> Am Freitag, den 12.09.2008, 11:03 -0400 schrieb Ruddy Gbaguidi:
>   
>> Hi all
>> I'm just having a problem now and I don't have any idea how to do this.
>>
>> It is pretty simple. When a customer calls, to speed up the navigation 
>> in the dialplan, I want something like
>>
>> "Welcome. Please enter your 10 digit customer number or press * to register"
>>
>> So, I want to read up to 10 digits, and if the user press *, I want to 
>> go to the next extension.
>>
>> Do you have an idea ??
>>     
>
> You can use the "read" application to get some digits. This application
> returns the number a user entered in a variable. If the user enters '*'
> the variable is set to an empty string. You can than proceed in Your
> dialplan. To distinguish the answers, You can use the function "len".
> The read application is able to play a audio file. (see the doc with
> 'core show application read')
>
> One little hint: If You start a new thread, create a new message instead
> of using an old one. Your question is now part of the thread "about
> application jack and its runtime", what is probably not what You want.
> Maybe some people ignore Your mail, because they are not interessted in
> "jack"...
>
> 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