Hello,
I am trying to make a rule in extensions.conf that should behave like this:
- play a dial tone
- when the user starts dialing, stop the dialtone after the first digit (like the behavior of your standard phone)
- when the user finishes dialing (by either timeout or the user dialing #), dial that number.
What I have did is:
[extdial]
exten => s,1,Answer()
exten => s,2,Playtones(440)
exten => s,3,Set(TIMEOUT(digit)=4)
exten => s,4,WaitExten(600)
exten => _0XZ.,1,Dial(SIP/${EXTEN}@gateway)
The problem is that Playtones does not stop after the first digit dialed, and that WaitExten does not consider the digit collecting process ended by #.
Is it possible to make the dialtone stop after the first digit dialed?
And the more important thing: is it possible to configure the digit collection somehow to be ended by #, like on a Cisco gateway or most of the IVR systems? I have tried:
exten => _0XZ.#,1,Dial(SIP/${EXTEN}@gateway)
but nothing changed.