using ${EXTEN} with waitexten

Home » Asterisk Users » using ${EXTEN} with waitexten
Asterisk Users 1 Comment


Some of the people who dial into to our system will press the pound key
when entering an extension for the directory key. When waitexten gets
that, I get an error messages as, for example 123# doesn’t match any

I was going to use ${EXTEN} to just use the first three numbers, but I’m
not sure how to use this with WaitExten.

so I have

exten => 4349701010,1,Answer()
exten => 4349701010,2,ringing
exten => 4349701010,3,wait(8)
exten => 4349701010,4,Background(asterisk-recording)
exten => 4349701010,5,WaitExten(9,m)
exten => 4349701010,6,Dial(SIP/100&SIP/123&SIP/132&SIP/134&SIP/149,20)
exten => 4349701010,7,VoiceMail(100@default,u)
exten => 4349701010,8,Playback(vm-goodbye)
exten => 4349701010,9,Hangup()

Where could I check for the extra # keystroke?

Thanks for your help.


One thought on - using ${EXTEN} with waitexten