<div dir="ltr">Please don't!<div><br></div><div style>It's usefully to have NAT flag in usrloc if you need in script handle SDP. Also, once used flag (bit) can't be re-used anywhere else.</div><div style><br></div>
<div style>Seudin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 8:43 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Juha Heinanen writes:<br>
<br>
> however, when i look what gets stores in location table, cflags column<br>
> of the contact has value 384.  it is also shown by ul_dump:<br>
><br>
> Cflag:: 384<br>
><br>
> 384 = 256 + 128.  i must be missing something trivial. how is it<br>
> possible that also flag 7 (which is my nat_bflag) gets set in usrloc?<br>
<br>
</div>i think i found the answer. in save.c:<br>
<br>
                /* get received */<br>
                if (path_received.len && path_received.s) {<br>
                        ci.cflags |= ul.nat_flag;<br>
                        ci.received = path_received;<br>
                }<br>
<br>
if i understood the above correctly, existence of received param in path<br>
header of register request, automatically sets nat bflag that (in my<br>
case 7). where is that documented?<br>
<br>
anyway, it makes no sense at all to me.  if p2 gets register request<br>
from another proxy p1, which received it from ua and included the path<br>
header, it is responsibility of p1 to handle possible nat pinging.  p2<br>
should not have anything to do with it.<br>
<br>
can i fix this bug, i.e., remove line<br>
<br>
ci.cflags |= ul.nat_flag;<br>
<br>
from the above?<br>
<div class="HOEnZb"><div class="h5"><br>
-- juha<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>MSC Seudin Kasumovic<br>Tuzla, Bosnia
</div>