Matching the entered number is not the problem, it's triggering the
matching without having to wait for the timeout that we are trying to
accomplish.

In situations where the number being entered is quite long and
complicated you need to have a long timeout to give people the ability
to look back and forth between the keypad and the number while entering
it.

The problem is this means when they are done entering they have to wait
quite a long time before the system times out.

John

On Wed, 2007-08-01 at 12:31 -0400, Remzi Semsettin Turer wrote:
> I usually use a PHP script, along with phpagi class, then use:
> 
> $result = $agi->get_data('wavfile',3000,1);
> 
> You can set the timeout and max length, then process the number entered and 
> redirect the user to proper extension.
> 
> -----Original Message-----
> From: John Lange [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 01, 2007 12:03 PM
> To: Asterisk Users Group
> Subject: [on-asterisk] How can you capture a variable length DTMF with a 
> terminator digit?
> 
> Here is an interesting problem that I have never been able to solve.
> 
> How can you build a extension string that allows the caller to enter a
> number followed by the "#" key when the number is a variable length?
> 
> So for example:
> 
> exten => _X.#,1, ....
> 
> Except that doesn't work because everything after the "." is ignored and
> Asterisk just sits there waiting for the digit-timeout even after the
> caller presses "#".
> 
> The only solution I've found is to create every possibility.
> 
> _X#
> _XX#
> _XXX#
> _XXXX#
> 
> etc. but this isn't a real answer since you could never create every
> possibility if the input length was truly unknown.
> 
> The idea is to have the caller enter an unknown number of digits and
> then press "#" so they don't have to wait for the digit timeout.
> 
> John
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to