<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Jim,</p>
<p>Since I am unable to replicate the bug I'm providing you the
following patch which prints the extra values when they are taken
from the variables and after they are put into the array from
where they will be inserted into the db. Can you please apply it
and provide the logs with the patch? If any sensitive data in
there send the logs on my mail.</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<pre class="moz-signature" cols="72">Ionut Ionita
OpenSIPS Developer</pre>
<div class="moz-cite-prefix">On 04/26/2017 07:01 PM, Jim DeVito
wrote:<br>
</div>
<blockquote
cite="mid:CAAcmnh=dnP5uD-_E4_ruD1e9VaPhXpLcVLjrw+iHbAsrzam3JQ@mail.gmail.com"
type="cite">
<div dir="ltr">Also it should be noted I am using the db_flatstore
module with the acc module. </div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Apr 26, 2017 at 11:48 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>OK, thanks.<br>
<br>
I suppose you have the "failed" flag set in
do_accounting() ?<br>
<br>
And before ending the INVITE processing, do you change
the RURI (you mentioned it originally has a username) ?<br>
<br>
Regards,<br>
</tt>
<pre class="m_-3978437447313832863moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-3978437447313832863moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a moz-do-not-send="true" class="m_-3978437447313832863moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/<wbr>events/Summit-2017Amsterdam.<wbr>html</a>
</pre>
<div class="m_-3978437447313832863moz-cite-prefix">On 04/26/2017 06:33 PM, Jim DeVito
wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Yes. And correct the script is rejecting the call
at this point and returning the 600 to my upstream.</div>
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Apr 26, 2017 at 11:28 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a moz-do-not-send="true" class="m_-3978437447313832863moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Again, does the
strange text correspond to the to_tn extra value ?
And the call is rejected by you from script ? it not
ever proxied further, right ?
Regards,
</tt>
<pre class="m_-3978437447313832863m_811395599744840858moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
<div class="m_-3978437447313832863m_811395599744840858moz-cite-prefix">On 04/26/2017 06:25 PM, Jim DeVito
wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bogdan,
<div>
</div>
<div>Sorry forgot the mention I am using 2.2.3 the latest stable
from the repo. I put a log line just after
send_reply("600","Busy Everywhere"); and $rU looks good there.
Is there another place I should put a log line to see the
value of $rU?</div>
<div>
</div>
<div>Thanks!! </div>
<div>
</div>
<div>
</div>
</div>
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Apr 26, 2017 at 11:16 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Jim,
What OpenSIPS version do you use ?
Is the x00 string corresponding to the to_tn extra field
? If yes, is there any chance to have the $rU null (no
username in RURI) ?
Regards,
</tt>
<pre class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit May 2017 Amsterdam
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events<wbr>/Summit-2017Amsterdam.html</a>
</pre>
<div class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-cite-prefix">On 04/26/2017 05:43 PM, Jim DeVito
wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Hi All,
<div>
</div>
<div>So I am seeing the below record in the ACC output that is
causing me problems else where. Notice the
\x00\x00\x00\x00\x00\x00\x00\x<wbr>00\x00\x00 part. </div>
<div>
</div>
<div>INVITE|gK0c48d4aa||1464632400_<wbr>16750753@REDACTED|600|Busy
Everywhere|1493217263|\x00\x00<wbr>\x00\x00\x00\x00\x00\x00\x00\x<wbr>00|+1REDACTED|sip-proxy03|from<wbr>-PSTN|REDACTED||8877||
</div>
<div>
</div>
<div>In every other ACC entry the value is to be the user part
of the request URI as described here...</div>
<div>
</div>
<div>modparam("acc", "db_extra", "to_tn=$rU; (etc....)</div>
<div>
</div>
<div>Except when the call goes through the below failure route.</div>
<div>
</div>
<div>
</div>
<div>
<div>failure_route[orig_load_balanc<wbr>e_fail] {</div>
<div>
</div>
<div> if (t_was_cancelled()) { </div>
<div> exit();</div>
<div> }</div>
<div>
</div>
<div> if (t_check_status("[56][0-9][0-9<wbr>]") ||
t_local_replied("all")) {</div>
<div>
</div>
<div> if (lb_next()) {</div>
<div>
t_on_failure("orig_load_balanc<wbr>e_fail");</div>
<div> t_relay();</div>
<div> exit();</div>
<div> } else { </div>
<div> send_reply("600","Busy
Everywhere");</div>
<div> exit();</div>
<div> }</div>
<div> }</div>
<div>} </div>
</div>
<div> </div>
<div>
</div>
<div>Thoughts?</div>
<div>
</div>
<div>Thanks!!</div>
<div>
</div>
<div>Jim D. </div>
</div>
<fieldset class="m_-3978437447313832863m_811395599744840858m_6042594407964197049mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-3978437447313832863m_811395599744840858m_6042594407964197049moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><span class="HOEnZb"><font color="#888888"><span class="m_-3978437447313832863HOEnZb"><font color="#888888">
</font></span></font></span></pre><span class="HOEnZb"><font color="#888888"><span class="m_-3978437447313832863HOEnZb"><font color="#888888">
</font></span></font></span></blockquote><span class="HOEnZb"><font color="#888888"><span class="m_-3978437447313832863HOEnZb"><font color="#888888">
</font></span></font></span></div><span class="HOEnZb"><font color="#888888"><span class="m_-3978437447313832863HOEnZb"><font color="#888888">
</font></span></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><span class="m_-3978437447313832863HOEnZb"><font color="#888888">
<div>
</div>--
<div class="m_-3978437447313832863m_811395599744840858gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile <a moz-do-not-send="true" href="tel:%28216%29%20507-9497" value="+12165079497" target="_blank">216.507.9497</a></div></div></div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div></blockquote></div><span class="HOEnZb"><font color="#888888">
<div>
</div>--
<div class="m_-3978437447313832863gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile <a moz-do-not-send="true" href="tel:%28216%29%20507-9497" value="+12165079497" target="_blank">216.507.9497</a></div></div></div>
</font></span></div>
</blockquote>
</div></blockquote></div>
<div>
</div>--
<div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile 216.507.9497</div></div></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body></html>