<div dir="ltr"><div>Thanks Andrew!</div><div>Daniel also pointed me out to this function.</div><div>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....</div><div><br></div><div>Kind regards,</div><div>Patrick Wakano<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Nov 2019 at 01:08, Andrew Pogrebennyk <<a href="mailto:apogrebennyk@sipwise.com">apogrebennyk@sipwise.com</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 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" rel="noreferrer" 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<br>
<br>
</blockquote></div>