<div dir="ltr"><div dir="ltr">Hello why not regexp not working for you. I give you my example that works fine.(but with 1.11)<div>to reload i use command opensipsctl fifo regex_reload</div><div><br></div><div>[config]</div><div>#### REGEX<br>loadmodule "regex.so"<br>modparam("regex", "file", "/usr/out_isp/etc/opensips/regex_groups")<br></div></div><div><br></div><div>...</div><div>if (pcre_match_group("$fU", "0")) {<br></div><div>}</div><div>...</div><div><br></div><div>[content regex_group file]</div><div>[0]<br><br>^1000<br>^1001<br>^1003<br>^50065<br>^anyname_from_start<br></div><div>anyname_in_anywhere of $fU</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 2 июл. 2019 г. в 10:33, Alexey Kazantsev via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list,<br>
<br>
is it possible to filter REGISTER requests with permissions.so [1] module,<br>
based on username?<br>
<br>
It's written " Main purpose of the function is to prevent registration of<br>
"prohibited" IP addresses. " When speaking about IP filtering,<br>
I'd rather use check_address or check_source_address functions.<br>
<br>
But now I'd like to filter by userame, because users may register from random<br>
addresses.<br>
<br>
I tried to create pairs of regexps in register.allow and register.deny files,<br>
but no success. Maybe I've done something wrong.<br>
<br>
<br>
[1] <a href="https://opensips.org/html/docs/modules/3.0.x/permissions.html#sec-registration-permissions" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/permissions.html#sec-registration-permissions</a><br>
<br>
-----------------------------------------------<br>
BR, Alexey<br>
<a href="http://alexeyka.zantsev.com/" rel="noreferrer" target="_blank">http://alexeyka.zantsev.com/</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>