System says "<REGEX not registered"

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?

You should show the actual console output, because “<REGEX” is not the same as “REGEX”.

[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

Then that would make it appear as though your written dialplan logic is incorrect and is using “<REGEX” instead of “REGEX”.

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

I’d do this with dialplan patterns (multiple patterns for the same priority), but functions need the same ${…} wrapper as variables.

There is an unbalanced “(” in your regular expression. I’d need to do some checking up to see if it was otherwise correct.

I found the solution on dslreports from when I was trying to do this before. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.