Hi guys,
Trouble here getting the regex operator “:” (colon) to work in extensions.conf
The lines of code are:
exten => s,n,Set(Diversion="${SIP_HEADER(Diversion)}")
exten => s,n,GotoIf($[ "${Diversion}" : "123456789" = 9 ]?MY_CONTEXT,s,1)
Where ${Diversion} contains the usual Diversion header like this:
Although the header does contain the string being searched, it never matches.
Also tried that without “= 9” and without double quotes - to no avail.
What gives?
Asterisk version: 1.6.2.17.2