When I call into Asterisk (from an FXO), I want to play back a message and let user enter their target extension… so I use the following:
exten => _11111,1,Answer()
exten => _11111,n,Background(enter-ext-of-person)
exten => _11111,n,Goto(new_name,s,1)
exten => _11111,n,hangup
include => new_name
This works fine as long as the caller starts typing at least one number before the message expires. However, that message isn’t very long, and if they don’t type a digit before that, it times out and fails. I’ve tried extending the timeout via various means such as:
[incoming]
exten => _11111,1,Set(TIMEOUT(response)=10)
exten => _11111,2,Answer()
exten => _11111,n,Background(enter-ext-of-person)
exten => _11111,n,Goto(new_name,s,1)
exten => _11111,n,hangup
include => new_name
But none of the timeout settings have any effect on this; as soon as the ‘enter-ext-of-person’ message ends, if no digit was typed, it jumps to new_name with invalid ‘s’, and fails.
How do I get this function to wait a little longer??