<div dir="ltr">Hello Sergiu,<div><br></div><div>We allow multiple contacts to register on single account. They can have different properties. On step 1 I'm looking for something specific which can be different for different contacts. If I understood correctly <i>setbflag</i> and <i>isbflagset</i> can set and check flags for different branches independently.</div><div><br></div><div>Thank you!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 24 трав. 2019 о 18:14 Sergiu Pojoga <<a href="mailto:pojogas@gmail.com">pojogas@gmail.com</a>> пише:<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 dir="ltr">I might be wrong, but isn't ACK part of a transaction? If so, you'd need to use <b>setflag</b>/<b>isflagset</b><br><div><br></div><div>Cheers.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 24, 2019 at 10:03 AM Володимир Іванець <<a href="mailto:volodyaivanets@gmail.com" target="_blank">volodyaivanets@gmail.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"><div dir="ltr">Hello everyone!<div><br></div><div>I'm not sure if I correctly understood the description of functions <b>isbflagset</b> and <b>isbflagset</b> so once again I'm asking for help :)</div><div><br></div><div>Here is what I do:</div><div>1. Asterisk sends INVITE to Kamailio. Kamailio performs lookup of available contacts and then few checks in branch_route. I'm adding <i>setbflag("17", $T_branch_idx);</i> there.</div><div>2. Later in route[NATMANAGE] I added <i>if (isbflagset("17", $T_branch_idx)) {</i> and additional logic. <i>isbflagset</i> results in <b>true</b> (for same INVITE).</div><div>3. Finally one of UACs responds with 200 OK. Asterisk generates ACK packet that gets in route[NATMANAGE]. <i>isbflagset</i> results in <b>false</b>.</div><div><br></div><div>So my question is: shouldn't <i>isbflagset</i> be <b>true</b> for ACK too since it's the same branch or I interpreted these fenctions incorrectly?</div><div><br></div><div>Thanks a lot!</div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>