[OpenSIPS-Users] Documentation problem in regex module

Pete Kelly pkelly at gmail.com
Thu Jul 1 16:29:51 CEST 2010


Hi

I've done a quick search of the mailing list and can't see this
already reported...

The documentation for the regex module shows an example of how to use
the pcre_match_group function:

if (pcre_match_group("$rU", 2)) {...

However, if you call it like this you get this error when starting opensips:

"numbers used as parameters - they should be quoted"

To fix this you need to put both parameters in quotes, e.g.:

if (pcre_match_group("$rU", "2")) {...

This had me confused for a while - it happens on trunk and on the 1.6 branch.

Pete



More information about the Users mailing list