Thank you Klaus!<br>It  works perfect.<br><br>regards<br>Alex<br><br><div class="gmail_quote">On Thu, Apr 28, 2011 at 8:49 PM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">8 - SDP is searched for occurrence of RFC1918 addresses<br>
<br>
So I gues you call nat_uac_test(&quot;8&quot;) for a request which does not have a<br>
body at all. You could use has_body from textops module to extend the<br>
check, e.g:<br>
<br>
if (has_body(&quot;application/sdp&quot;) &amp;&amp; nat_uac_test(&quot;8&quot;)) {<br>
  ...<br>
<br>
<br>
regards<br>
klaus<br>
<br>
<br>
<br>
Am 28.04.2011 18:25, schrieb alex pappas:<br>
<div><div></div><div class="h5">&gt; Dear all,<br>
&gt;<br>
&gt; I see in my logs that when the call enters the route :<br>
&gt;<br>
&gt; # Caller NAT detection route<br>
&gt; route[NAT] {<br>
&gt; #!ifdef WITH_NAT<br>
&gt;         xlog(&quot;alx --- ROUTE NAT , we have nat ---&quot;);<br>
&gt;         force_rport();<br>
&gt;        *if (nat_uac_test(&quot;8&quot;)) {*<br>
&gt;                 if (method==&quot;REGISTER&quot;) {<br>
&gt;                         fix_nated_register();<br>
&gt;                 } else {<br>
&gt;                         fix_nated_contact();<br>
&gt;                 }<br>
&gt;                 setflag(FLT_NATS);<br>
&gt;                 xlog(&quot;alx --- ROUTE NAT , set flag FLT_NATS ---&quot;);<br>
&gt;         }<br>
&gt; #!endif<br>
&gt;         return;<br>
&gt; }<br>
&gt;<br>
&gt; I get the following error:<br>
&gt;<br>
&gt; nathelper [nhelpr_funcs.c:195]: *message body has length zero*<br>
&gt; nathelper [nathelper.c:1184]: *cannot extract body from msg!*<br>
&gt;<br>
&gt; From traces i see that only in the SDP I have an IP which is not public<br>
&gt; but even with that I cannot engage the RTPPROXY.<br>
&gt;<br>
&gt; My Kamailio version is 3.1.3 and the config file is plain , from<br>
&gt; installation.<br>
&gt;<br>
&gt; Any ideas?<br>
&gt;<br>
&gt; Thank you Alex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 17, 2011 at 2:20 PM, alex pappas &lt;<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a><br>
</div></div><div class="im">&gt; &lt;mailto:<a href="mailto:rebel.pappas@gmail.com">rebel.pappas@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Dear Alex,<br>
&gt;<br>
&gt;     The configuration is the default with WITH_NAT defined.<br>
&gt;     I have some extra logs (xlog(&quot;RTPPROXY started..&quot;)) enabled in the<br>
&gt;     RTPPROXY route in order to understand if it is engaged or not.<br>
&gt;<br>
&gt;     When I make calls behind NAT the RTPPROXY is engaged but I don&#39;t see<br>
&gt;     any RTP in traces.<br>
&gt;<br>
&gt;     Do you have any idea on how can I keep the RTP?<br>
&gt;<br>
&gt;     Thanks<br>
&gt;     Alex Pappas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     On Fri, Apr 15, 2011 at 6:43 PM, Alex Balashov<br>
</div><div class="im">&gt;     &lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a> &lt;mailto:<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         On 04/15/2011 09:58 AM, alex pappas wrote:<br>
&gt;<br>
&gt;             I have a Kamailio with  RTPoxy configured. The purpose is to<br>
&gt;             pass the<br>
&gt;             RTP from this server.<br>
&gt;             When I make calls behind NAT the RTProxy seems to be engaged<br>
&gt;             but in<br>
&gt;             traces I don&#39;t see  any RTP.<br>
&gt;<br>
&gt;             Is there anything wrong with the idea or I&#39;m missing<br>
&gt;             something in the<br>
&gt;             configuration ?<br>
&gt;<br>
&gt;<br>
&gt;         That would be difficult to know without seeing your configuration.<br>
&gt;<br>
&gt;         --<br>
&gt;         Alex Balashov - Principal<br>
&gt;         Evariste Systems LLC<br>
&gt;         260 Peachtree Street NW<br>
&gt;         Suite 2200<br>
&gt;         Atlanta, GA 30303<br>
&gt;         Tel: +1-678-954-0670<br>
&gt;         Fax: +1-404-961-1892<br>
&gt;         Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users<br>
&gt;         mailing list<br>
</div>&gt;         <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a> &lt;mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;         <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <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>
<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>