<div dir="ltr"><div>Much appreciated Henning!</div><div>It will be really helpful!</div><div><br></div><div>Thank you,</div><div>Patrick Wakano<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 30 Nov 2019 at 05:41, Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</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">





<div lang="DE">
<div class="gmail-m_6906090032627453184WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">a note has been added.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span style="color:rgb(5,99,193)" lang="EN-GB">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span style="color:rgb(5,99,193)" lang="EN-GB">https://gilawa.com</span></a></span><span>
<span lang="EN-GB"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Patrick Wakano<br>
<b>Sent:</b> Thursday, November 28, 2019 11:14 PM<br>
<b>To:</b> Andrew Pogrebennyk <<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>><br>
<b>Cc:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Possible conflict between t_newtran and setflag for ACC<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks Andrew!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Daniel also pointed me out to this function.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I just think it is probably needed to add a note in the t_newtran docs that flags will be lost and the t_flush_flags should be used and not the other way around as it is today, specially because one function is
 in the TM module and the other in the TMX....<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Kind regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Patrick Wakano<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">On Fri, 29 Nov 2019 at 01:08, Andrew Pogrebennyk <<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12pt;margin-left:35.4pt">
On 11/27/19 3:26 AM, Patrick Wakano wrote:<br>
> I am using the ACC module and using the setflag() function as done in<br>
> several examples. It works fine. However, I've added the t_newtran()<br>
> function almost in the begging of the INVITE handler to help the<br>
> retransmission detection and after that I noticed the ACC was not<br>
> saving anything in DB.<br>
> So after debugging I discovered that if I call the t_newtran() before<br>
> setting the ACC flags, the module will not save the calls in DB, but<br>
> if I call it after setting the ACC flags, it works....<br>
> So my question is, is this a bug or it is a expected side effect so<br>
> when one is using t_newtran you must be careful and set all your<br>
> transaction flags before? (ACC are the only transaction flags I am<br>
> using so can't tell if other modules have the same problem)<br>
> This is happening in Kamailio 5.2.2.<br>
<br>
Hi Patrick,<br>
<br>
just wanted to point out there is a function t_flush_flags, and it did<br>
the trick for me when I observed the same as you a couple of<br>
versions/years ago:<br>
<a href="http://www.kamailio.org/docs/modules/5.1.x/modules/tmx.html#tmx.f.t_flush_flags" target="_blank">http://www.kamailio.org/docs/modules/5.1.x/modules/tmx.html#tmx.f.t_flush_flags</a><br>
<br>
Regards,<br>
<br>
Andrew<u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div>