Operator : (regex) not working

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:

Edited: re-read the post.

the regex is anchored to the beginning of the string, right? so you may need to do “.123456789.