Even though “core show functions like REGEX” say it is installed
REGEX(“regular expression” string) Check string against a regular expression.
1 matching custom functions installed.
I suspect I am missing a module but I haven’t been able to figure out which one?
[Oct 17 03:37:46] ERROR[7042][C-00000007]: pbx_functions.c:608 ast_func_read: Function <REGEX not registered
– Executing [18666458767@outbound_calls:2] Verbose(“PJSIP/12172238767-00000006”, “”) in new stack
I’ve tried dozens of different permutations and haven’t been able to hit the correct syntax. Searched the web high & low. Trying to find out if the NPA of the dialed number is toll free.
;All other US numbers
exten => _1NXXNXXXXXX,1,Gotoif(REGEX(“8(00|33|44|55|66|77|88” ${EXTEN:1:3}))?tollfree