[asterisk-users] Why does it take several seconds to interpret DTMF-input ?
Matthew J. Roth
mroth at imminc.com
Tue Jun 11 11:26:13 CDT 2013
Jonas Kellens wrote:
>
> Even if there *can* be more than 1 digit, in case there is only 1 digit it
> should go faster.
Jonas,
Use the TIMEOUT function to set the maximum amount of time permitted between
digits when the user is typing in DTMF. As you've discovered, the default is 5
seconds.
The following example reduces it to 2 seconds:
exten => ivr,1,NoOp()
exten => ivr,n,Set(TIMEOUT(digit)=2)
exten => ivr,n(restartprompt),Background(/var/lib/asterisk/sounds/vprompts/${KNUMMER}/${ASTPROMPT})
exten => ivr,n,NoOp(${BACKGROUNDSTATUS})
exten => ivr,n,WaitExten(15)
exten => ivr,n,GoTo(restartprompt)
Enter 'core show function TIMEOUT' at the Asterisk CLI for more information about
the TIMEOUT function.
Regards,
Matthew Roth
InterMedia Marketing Solutions
Software Engineer and Systems Developer
More information about the asterisk-users
mailing list