[asterisk-users] Read one or X DTMF
Ruddy Gbaguidi
plugworld at micnes.com
Fri Sep 12 12:24:21 CDT 2008
Hi thanks for the hint.
That will works I think.
But now, if I'm in an AGI script and I want to stay in there and don't
want to jump from an extension to other in the dialplan,
how can I do it ??
Tony Mountifield wrote:
> In article <48CA84AA.70601 at micnes.com>,
> Ruddy Gbaguidi <plugworld at micnes.com> wrote:
>
>> 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 ??
>>
>
> One possibility:
>
> [getnumber]
> exten => s,1,Background(please-enter-num-or-star)
> exten => s,n,Waitexten(30)
>
> exten => *,1,Goto(register,s,1)
> exten => _X*,1,Goto(register,s,1)
> exten => _XX*,1,Goto(register,s,1)
> exten => _XXX*,1,Goto(register,s,1)
> exten => _XXXX*,1,Goto(register,s,1)
> exten => _XXXXX*,1,Goto(register,s,1)
> exten => _XXXXXX*,1,Goto(register,s,1)
> exten => _XXXXXXX*,1,Goto(register,s,1)
> exten => _XXXXXXXX*,1,Goto(register,s,1)
> exten => _XXXXXXXXX*,1,Goto(register,s,1)
>
> exten => _XXXXXXXXXX,1,Do whatever
> exten => _XXXXXXXXXX,n,You want to do with
> exten => _XXXXXXXXXX,n,A 10-digit customer number
>
> [register]
> exten => s,1,Start registration process
>
>
> Hope that helps
> Cheers
> Tony
>
> ------------------------------------------------------------------------
>
>
> 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