<div dir="ltr">Hi, <div>I can gladly confirm that the above patch works like charm. :) Thank you very much. </div><div>Would this be available in the next releases of 3.0.x or 3.1.x ?</div><div><br></div><div>Ryan. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 29 Jul 2020 at 03:21, Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 27.07.2020 12:14, ryan embgrets wrote:<br>
> Any pointer?<br>
><br>
> I am using mongo for other modules and don't want to keep separate <br>
> database(mysql) for this module only<br>
><br>
> Ryan.<br>
<br>
Hey, Ryan!<br>
<br>
Could you please apply the following patch within an OpenSIPS source <br>
code tree, then rebuild and see if it makes userblacklist happy? I <br>
expect it to apply on any OpenSIPS version, really.<br>
<br>
git apply <(base64 -d <<EOF<br>
ZGlmZiAtLWdpdCBhL21vZHVsZXMvdXNlcmJsYWNrbGlzdC9kYi5jIGIvbW9kdWxlcy91c2VyYmxh<br>
Y2tsaXN0L2RiLmMKaW5kZXggYzg0OGMzNDczLi4yNjI0YzM2OWYgMTAwNjQ0Ci0tLSBhL21vZHVs<br>
ZXMvdXNlcmJsYWNrbGlzdC9kYi5jCisrKyBiL21vZHVsZXMvdXNlcmJsYWNrbGlzdC9kYi5jCkBA<br>
IC0xMDcsNyArMTA3LDcgQEAgaW50IGRiX2J1aWxkX3VzZXJibF90cmVlKGNvbnN0IHN0ciAqdXNl<br>
cm5hbWUsIGNvbnN0IHN0ciAqZG9tYWluLCBjb25zdCBzdHIgKnRhYmwKIAlpZiAoUkVTX0NPTF9O<br>
KHJlcykgPiAxKSB7CiAJCWZvcihpID0gMDsgaSA8IFJFU19ST1dfTihyZXMpOyBpKyspIHsKIAkJ<br>
CWlmICgoIVJFU19ST1dTKHJlcylbaV0udmFsdWVzWzBdLm51bCkgJiYgKCFSRVNfUk9XUyhyZXMp<br>
W2ldLnZhbHVl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yZWUgcHJlZml4ICVzLCB3<br>
aGl0ZWxpc3QgJWQiLAo=<br>
EOF<br>
)<br>
<br>
Cheers,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
OpenSIPS Summit 2020 Distributed<br>
<a href="http://www.opensips.org/events/Summit-2020Distributed" rel="noreferrer" target="_blank">www.opensips.org/events/Summit-2020Distributed</a><br>
<br>
<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>