<div dir="ltr">Thanks, Răzvan! Better late than never :)<div><br></div><div>Should we expect to see this fix in 3.1 LTS soon?<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Regards,<div><br></div><div><p style="font-family:helvetica,arial,sans-serif;font-size:12px;margin:0px;padding:0px 0px 20px;color:rgb(0,0,0)"><strong>Calvin Ellison</strong><br>Systems Architect<br><a href="mailto:calvin.ellison@voxox.com" style="text-decoration:none;color:rgb(14,123,174)" target="_blank">calvin.ellison@voxox.com</a><br>+1 (213) 285-0555<br><br>-----------------------------------------------<br><strong><a href="http://www.voxox.com/" style="text-decoration:none;color:rgb(14,123,174)" target="_blank">voxox.com</a> </strong><br>5825 Oberlin Drive, Suite 5<br>San Diego, CA 92121<br></p><img src="http://cdn.voxox.com/img/voxox-logo.png" alt="Voxox" style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 9, 2021 at 4:18 AM Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@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">Hi, Calvin!<br>
<br>
The "regex value too long" error should have already been fixed[1], but <br>
I somehow forgot to inform you :(. Can you please run another test now <br>
and let us know if there are other issues?<br>
<br>
[1] <br>
<a href="https://github.com/OpenSIPS/opensips/commit/a8f8aabc245ca86bd40a9eddf9befcd74a087be1" rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips/commit/a8f8aabc245ca86bd40a9eddf9befcd74a087be1</a><br>
<br>
Best regards,<br>
<br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
On 4/9/21 12:02 AM, Calvin Ellison wrote:<br>
> Any suggestion for resolving "regex value too long" when using <br>
> the re.subst transformation?<br>
> <br>
> Any way to fix the Redis client so it does not break on spaces when the <br>
> value is single-quoted? From what I understand, modern Redis servers <br>
> support single-quoted strings.<br>
> <br>
> <br>
> On Sun, Apr 4, 2021 at 1:09 PM Calvin Ellison <<a href="mailto:calvin.ellison@voxox.com" target="_blank">calvin.ellison@voxox.com</a> <br>
> <mailto:<a href="mailto:calvin.ellison@voxox.com" target="_blank">calvin.ellison@voxox.com</a>>> wrote:<br>
> <br>
> I need to post a JSON object to Elsasticsearch, and I am using Redis<br>
> as a queue via cache_raw_query and the RPUSH command. The JSON<br>
> object contains spaces, which appears to cause the OpenSIPS Redis<br>
> client to break the string into pieces and push each of them to<br>
> Redis separately.<br>
> <br>
> 1. Maybe I'm not quoting correctly?<br>
> RPUSH snarf-cdrs 'object_goes_here'<br>
> <br>
> It doesn't seem to matter if I enclose the Resid list value in<br>
> single quotes or not.<br>
> <br>
> I initially resolved this problem by escaping spaces with their<br>
> escaped Unicode equivalent. This has the desired result in<br>
> Elasticsearch, but now my JSON object is bigger and the regex<br>
> replacement fails. Is there a workaround?<br>
> <br>
> $var(replaceSpace) = "/ /\\\u00a0/sg";<br>
> $avp(body) = $(json_compact(body){re.subst,$var(replaceSpace)});<br>
> <br>
> DBG:core:tr_eval_re: Trying to apply regexp [/ /\\u00a0/sg] on :<br>
> [{"index":"snarf-2021.04.03","time":"2021-04-03T03:34:18","TID":"006508","BLOCKED":1,"SVCPORT":"8.38.43.182","CALLID":"bf0ea503853749618c747a995b7f0102","SOURCEIP":"192.168.47.130","MEDIAIP":"192.168.47.130","ANI":"2132850555","DNIS":"2132850555","SNARF":"NONE","FRAUD":0,"TCPA":0,"NEIGHLATA":"1","NEIGHRC":"1","NEIGHBLOCK":"1","NEIGHPREFIX":"1","ATFN":0,"BTFN":0,"ALRN":"2132620105","AState":"CA","ANetwork":"<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">BANDWIDTH.COM</a><br>
> <<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">http://BANDWIDTH.COM</a>> CLEC- LLC -<br>
> CA","AOCN":"979E","ARatecenter":"LSAN DA<br>
> 01","AClass":"L","ALATA":"730","ACountry":"US","AReachable":"1","AReason":"SS7<br>
> ID","ADNC":"0","AGood":"1","ADNO":"0","BLRN":"2132620105","BState":"CA","BNetwork":"<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">BANDWIDTH.COM</a><br>
> <<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">http://BANDWIDTH.COM</a>> CLEC- LLC -<br>
> CA","BOCN":"979E","BRatecenter":"LSAN DA<br>
> 01","BClass":"L","BLATA":"730","BCountry":"US","BReachable":"1","BReason":"SS7<br>
> ID","BDNC":"0","BGood":"1","BDNO":"0","TRIGGERS":["neighBlock"],"RULES":{"tid":"006508","rep":"none","fraud":0,"tcpa":95,"aclass":false,"adno":false,"atfn":false,"bclass":false,"bdnc":false,"bgood":false,"neighBlock":true,"neighLata":false,"neighRc":false,"neighPrefix":false}}]<br>
> Apr 3 03:34:18 ve-lab /usr/sbin/opensips[14291]:<br>
> DBG:core:tr_eval_re: we must compile the regexp<br>
> Apr 3 03:34:18 ve-lab /usr/sbin/opensips[14291]:<br>
> DBG:core:subst_parser: ok, se is 0x7f8737c1f0e8<br>
> Apr 3 03:34:18 ve-lab /usr/sbin/opensips[14291]:<br>
> ERROR:core:tr_eval_re: regex value too long<br>
> [{"index":"snarf-2021.04.03","time":"2021-04-03T03:34:18","TID":"006508","BLOCKED":1,"SVCPORT":"8.38.43.182","CALLID":"bf0ea503853749618c747a995b7f0102","SOURCEIP":"192.168.47.130","MEDIAIP":"192.168.47.130","ANI":"2132850555","DNIS":"2132850555","SNARF":"NONE","FRAUD":0,"TCPA":0,"NEIGHLATA":"1","NEIGHRC":"1","NEIGHBLOCK":"1","NEIGHPREFIX":"1","ATFN":0,"BTFN":0,"ALRN":"2132620105","AState":"CA","ANetwork":"<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">BANDWIDTH.COM</a><br>
> <<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">http://BANDWIDTH.COM</a>> CLEC- LLC -<br>
> CA","AOCN":"979E","ARatecenter":"LSAN DA<br>
> 01","AClass":"L","ALATA":"730","ACountry":"US","AReachable":"1","AReason":"SS7<br>
> ID","ADNC":"0","AGood":"1","ADNO":"0","BLRN":"2132620105","BState":"CA","BNetwork":"<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">BANDWIDTH.COM</a><br>
> <<a href="http://BANDWIDTH.COM" rel="noreferrer" target="_blank">http://BANDWIDTH.COM</a>> CLEC- LLC -<br>
> CA","BOCN":"979E","BRatecenter":"LSAN DA<br>
> 01","BClass":"L","BLATA":"730","BCountry":"US","BReachable":"1","BReason":"SS7<br>
> ID","BDNC":"0","BGood":"1","BDNO":"0","TRIGGERS":["neighBlock"],"RULES":{"tid":"006508","rep":"none","fraud":0,"tcpa":95,"aclass":false,"adno":false,"atfn":false,"bclass":false,"bdnc":false,"bgood":false,"neighBlock":true,"neighLata":false,"neighRc":false,"neighPrefix":false}}]<br>
> <br>
> opensips 3.1.1<br>
> Ubuntu 18.04.5 LTS<br>
> Linux ve-lab 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35<br>
> UTC 2021 x86_64 x86_64 x86_64 GNU/Linux<br>
> <br>
> <br>
> Regards,<br>
> <br>
> *Calvin Ellison*<br>
> Systems Architect<br>
> <a href="mailto:calvin.ellison@voxox.com" target="_blank">calvin.ellison@voxox.com</a> <mailto:<a href="mailto:calvin.ellison@voxox.com" target="_blank">calvin.ellison@voxox.com</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>
> <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>