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