yes, actually 'nat_flag' parameter its uncommented lines above, as I told in my last post this configuration works very well, in fact I'am  using it in  a production  sip proxy that serve lots of UA´s like Linksys-PAP, Sipura, Addpac, X-pro, Snom phones and asterisk, With those UA´s that support STUN there is no problem because my Stun can find its public ip/port and then openser will not detect a NATed client and do not enforce rtpproxy/nathelper, the problem appears only for UA´s behind same nat and this nat doesn't support hairpinning (send back data in the source direction to reach the target), so this new solution using avp in combination with nathelper and STUN will cover a 100% of Nated UA cases and I´d like to complete and share my configuration that support other useful features the can be useful for this community, I will appreciate your help in this issue.
<br><br>thank you <br>Rafael<br><br><br><br><div><span class="gmail_quote">On 12/13/05, <b class="gmail_sendername">Norman Brandinger</b> &lt;<a href="mailto:norm@goes.com">norm@goes.com</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;">
Hello Rafael,<br><br>I took a very quick look at your conifguration and noticed that you have<br>commented out the &quot;nat_flag&quot; line.&nbsp;&nbsp;This setting is documented here:<br><a href="http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN103">
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN103</a>&nbsp;&nbsp;I<br>believe that you should, at a minimum, uncomment this line.<br><br># modparam(&quot;registrar&quot;, &quot;nat_flag&quot;, 6)<br><br>Your configuration looks as though it is based on information from the
<br><a href="http://iptel.org">iptel.org</a> site.&nbsp;&nbsp;I would suggest that you also review the NAT example<br>configuration from the <a href="http://onsip.org">onsip.org</a> site.&nbsp;&nbsp;The <a href="http://onsip.org">onsip.org</a>
 configurations are<br>a little more current.&nbsp;&nbsp;The nice part of the <a href="http://onsip.org">onsip.org</a> configurations is<br>that they are provided with line-by-line explanations.<br><br>Regards,<br>Norm<br><br><br>Rafael R. GV wrote:
<br><br>&gt; Hi<br>&gt; thank you!, now i am using Openser, it was easy to move from ser, just<br>&gt; some minor changes like 'break' to 'return' etc, my nathelper<br>&gt; implementation is based on a ser example and it works very well, just
<br>&gt; made some minor changes to set flag 6 and flag 7 to 'Register' and<br>&gt; 'Invites' when 'nat_uac_test(&quot;19&quot;)' in order to try Tavis code<br>&gt; snippet, in my tests there is no audio when reset flag 6 and 7 after
<br>&gt; detected the two clients behind the same NAT and can't hungup or<br>&gt; cancel calls properly, please someone see my cfg attached and send<br>&gt; some advice, what I am missing?<br>&gt;<br>&gt; thanks<br>&gt; rafael
<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 12/7/05, *Norman Brandinger* &lt;<a href="mailto:norm@goes.com">norm@goes.com</a> &lt;mailto:<a href="mailto:norm@goes.com">norm@goes.com</a>&gt;&gt;<br>&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi Rafael,
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; You would use the &quot;example code snippet&quot; when you want to decide<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; whether<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; or not to use rtpproxy or mediaproxy based on the fact that both the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; caller and the callee are behind the same NAT device.&nbsp;&nbsp;Please
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; review the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; mailing lists as this topic has been discussed many times.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I added some additional comments in regard to the setting of flags<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 2 and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 3 in the posted example at:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://openser.org/dokuwiki/doku.php?id=avp_examples">http://openser.org/dokuwiki/doku.php?id=avp_examples</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Generally, I have found that if OpenSER fails to start with an error
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; indicating that the function can't be found, it's time to find the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; correct module to add.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; In response to your last question &quot;etc.&quot; I suggest that you review the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; three web sites: 
<a href="http://openser.org">openser.org</a> &lt;<a href="http://openser.org">http://openser.org</a>&gt;, <a href="http://iptel.org">iptel.org</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://iptel.org">http://iptel.org</a>&gt; and <a href="http://onsip.org">
onsip.org</a> &lt;<a href="http://onsip.org">http://onsip.org</a>&gt;.&nbsp;&nbsp;The last one has<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; some really great material that explains alot.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Regards,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Norm<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Rafael R. GV wrote:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I am using nathelper/rtpproxy in ser , please see my ser.cfg<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; attached<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; and tell me where do I have to use this code snippet?&nbsp;&nbsp;where did you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; set flags 2 and 3?, what other modules I need?, etc.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; thank you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Rafael<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Lima-Peru<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;No virus found in this incoming message.
<br>&gt;Checked by AVG Free Edition.<br>&gt;Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 12/13/2005<br>&gt;<br>&gt;<br>&gt;<br><br><br>_______________________________________________<br>Users mailing list
<br><a href="mailto:Users@openser.org">Users@openser.org</a><br><a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br>