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]