Below dial plan is not working as expected. After waiting 4 seconds in WaitExten it supposed to go timeout (t) exten if no DTMF pressed in the mentioned time but its going limit_exceed exten.
GotoIf is inside the While loop, this could be the reason or my logic is wrong? Please help to identify.
You have set the same name on two different priorities, twice.
WaitExten drops through when the timeout parameter is exceeded. If you want to goto the t extension you will need to follow it with a Goto that extension.
Thank you for your response. Would you please make me clarify what is “Goto tot hat extension”? I’m newbie in asterisk, unable to understand that what you said. Or please give me an example if possible.
I’m going to go with that WaitExten is just waiting, it doesn’t “timeout” as in jump to the t extension. It waits for x seconds for inputs then continues. Even the example https://wiki.asterisk.org/wiki/display/AST/Background+and+WaitExten+Applications shows a GoTo running after the WaitExten to handle timeouts. Try using Set(Timeout(response)=4) before the playback/waitexten.
Also is this a GoSub() or a Macro()? WaitExten doesn’t function properly in a Macro(), you should use READ() if this is a Macro().
Thank you for your response. I have already resolved my issue by following David’s instruction. Your instruction also should work as you said in below. Thank you very much. Set(Timeout(response)=4)