Yep - this was already checked. I've not changed by ser.cfg file in weeks. I'm using nat_flag=6 in the registrar module.<br>
<br>
I'm not using flag 6 for anything other than NAT, and if client_nat_test(&quot;7&quot;)&nbsp; is true then I call setflag(6).<br>
<br>
Here is the exact section of my ser.cfg. I therefore feel that the last
&quot;cvs up&quot; I did against rel_0_9_0 somehow caused the issue.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!search(&quot;^Contact:\ +\*&quot;) &amp;&amp; client_nat_test(&quot;7&quot;)) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
setflag(6);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
# inform registrar module of NATed client<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_register();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force_rport();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
<br>Here is what it seems like. It seems that when a truly NATed client
registers, the flag column is set properly, but subsequent non-NATed
clients get flagged as being NATed because some variable isn't being
reset properly either in the registrar or usrloc modules.<br>
<br>
The reason I say this is because when I restart ser, with zero records
in the location table, the first registration works fine. The flag is 1
for NATed clients and 0 or non-NATed clients, but over time all the
flags eventually get set to 1 for all records. So it's almost like some
variable is not being properly initialized.<br>
<br>
Regards,<br>
Paul<br><div><span class="gmail_quote">On 6/10/05, <b class="gmail_sendername">Jan Janak</b> &lt;<a href="mailto:jan@iptel.org">jan@iptel.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 10-06-2005 11:09, Java Rockx wrote:<br>&gt; Hi All.<br>&gt;<br>&gt; Here's a bit more info on the usrloc &quot;flags&quot; bug.<br>&gt;<br>&gt; This register message was flagged at NATed eventhough my &quot;nat_flag&quot; was not
<br>&gt; set.<br>&gt;<br>&gt; U 2005/06/10 11:01:27.853890 <a href="http://71.9.17.51:5060">71.9.17.51:5060</a> &lt;<a href="http://71.9.17.51:5060">http://71.9.17.51:5060</a>&gt; -&gt;<br>&gt; <a href="http://10.3.0.221:5060">
10.3.0.221:5060</a> &lt;<a href="http://10.3.0.221:5060">http://10.3.0.221:5060</a>&gt;<br>&gt; REGISTER sip:<a href="http://sipdev.mycompany.net">sipdev.mycompany.net</a> &lt;<a href="http://sipdev.mycompany.net">http://sipdev.mycompany.net
</a>&gt; SIP/2.0.<br>&gt; Via: SIP/2.0/UDP <a href="http://71.9.17.51:5060">71.9.17.51:5060</a> &lt;<a href="http://71.9.17.51:5060">http://71.9.17.51:5060</a>&gt;<br>&gt; ;branch=z9hG4bK1106535059.<br>&gt; From: Paul &lt;
<a href="mailto:sip:3215590000@sipdev.company.net">sip:3215590000@sipdev.company.net</a>&gt;;tag=3843647257.<br>&gt; To: Paul &lt;<a href="mailto:sip:3215590000@sipdev.company.net">sip:3215590000@sipdev.company.net</a>&gt;.
<br>&gt; Call-ID: <a href="mailto:1846387046@71.9.17.51">1846387046@71.9.17.51</a>.<br>&gt; CSeq: 778 REGISTER.<br>&gt; Contact: &lt;sip:3215590000@71.9.17.51:5060&gt;.<br>&gt; Authorization: Digest username=&quot;3215590000&quot;,
<br>&gt; realm=&quot;<a href="http://sipdev.mycompany.net">sipdev.mycompany.net</a>&lt;<a href="http://sipdev.mycompany.net">http://sipdev.mycompany.net</a>&gt;&quot;,<br>&gt; nonce=&quot;42a9ac7341e18f72830c3cd553fecfbd0c9fc6&quot;, uri=&quot;sip:
<br>&gt; <a href="http://sipdev.company.net:5060">sipdev.company.net:5060</a> &lt;<a href="http://sipdev.company.net:5060">http://sipdev.company.net:5060</a>&gt;&quot;,<br>&gt; response=&quot;5443dedef7bfa7fb4a033af66a2392c&quot;, algorithm=MD5,
<br>&gt; cnonce=&quot;3dc4445e42acd47873ca563a9942104a&quot;, qop=auth, nc=00000193.<br>&gt; max-forwards: 70.<br>&gt; expires: 900.<br>&gt; Content-Length: 0.<br>&gt;<br>&gt;<br>&gt; Another thing I see is that all usrloc records end up having the flag column
<br>&gt; set to 1 wheather the client is NATed or not. I'm setting the registrar<br>&gt; modules nat_flag using client_nat_test(&quot;7&quot;) when processing REGISTER<br>&gt; messages, however usrloc is not correctly setting the NAT_FLAG.
<br><br>&nbsp;&nbsp;The default value of nat_flag parameter in registrar module is 4. Make<br>&nbsp;&nbsp;sure you set that flag if client_nat_test returns true and that you<br>&nbsp;&nbsp;are not using that flag for anything else.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Jan.<br>
<br></blockquote></div><br>