Hi,
I’m trying to match everything that begins with the word “soins” followed by a number.
I will have many extension that will be reached like so:
soins1
soins2
soins3
and so on
I have tried the following without success:
exten => _soinsX,1,NoOp(Appel soins)
same => n,Playback(hello)
same => n,Hangup()
Can you do pattern match with non digits characters?
I believe that should work, although, to be safe, use [s][o][i][n][s]
Thanks a lot it’s working. I use this now:
;Match soins followed by 00 to 99
exten => _[s][o][i][n][s]XX,1,NoOp(${EXTEN})
same => n,Playback(hello)
same => n,Hangup()
1 Like
You only need to bracket the [n]