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

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to