I am trying to create a new script where we want to accept dtmf keypad options (similar to IVR/Menu). In the script, we have something similar to:
exten => s,1,Answer
exten => s,n,Playback(${recording})
exten => s,n,WaitExten
...
exten => 1,1,Wait(2)
exten => 1,n,{Do something here}
...
exten => i,1,Wait(2)
exten => i,n,{Invalid Handler Here}
...
However, when running the script and the caller presses a key, asterisk will fall back to the invalid (i) handler of the top-most context, not the context of this script. How do you create a script where key entries are handled within the script context?
We are running Asterisk 1.6.2.9 with Thirdlane MTE 6.0.1.81.
Read()