<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div><span>hi</span></div><div><span><br></span></div><div dir="ltr"><span>there were no RTP packets from Aserisk, so no kernalization.</span></div><div dir="ltr"><span><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, June 3, 2016 2:34 PM, Dmitry <mbike2000ru@yahoo.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1911230854"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819">Hello
I am trying to make a test setup to test the RTPENGINE.</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819"><br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819">Case 1:
Now my setup is Kazoo . i.e.:

Subsriber A ---Asterisk (192.168.175.136)-----via NAT(10.111.101.3)-------------Kamailio(10.10.11.104) ----FreeSwitch(10.10.11.104) 
Subscriber B is connected directly to Kamailio (this subscriber is in the same network)
<br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819"><br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819">Case 2:
 
When A calls to B - the sound both ways, so it is ok.

<pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455889">Subsriber A ---Asterisk (10.20.20.101)-----via NAT(10.11.97.12)-------------Kamailio(10.10.11.104) ----FreeSwitch(10.10.11.104) 
Subscriber B is connected directly to Kamailio (this subscriber is in the same network)

 WITH RTPENGINE:

When A calls to B - the sound is absent, no sound.</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455889"><br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455889">I compared both dumps the difference only in addresses</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455889">And what I read in nathelper module:</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455889"><div style="font-family:Helvetica, Arial;font-size:15px;white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457610"><ul id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457611"><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457612"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457613"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457614"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457615">1</em></span> - Contact header field is searched for occurrence of RFC1918 addresses.</div></li><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457616"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457617"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457618"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457619">2</em></span> - the "received" test is used: address in Via is compared against source IP address of signaling</div></li><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457620"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457621"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457622"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457623">4</em></span> - Top Most VIA is searched for occurrence of RFC1918 addresses</div></li><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457624"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457625"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457626"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457627">8</em></span> - SDP is searched for occurrence of RFC1918 addresses</div></li><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457628"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457629"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457630"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457631">16</em></span> - test if the source port is different from the port in Via</div></li><li id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457632"><div style="font-size:12px;text-align:justify;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457633"><span id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457634"><em id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457635">32</em></span> - test if the source IP address of signaling is a RFC1918 address</div></li></ul></div><div style="font-family:Helvetica, Arial;text-align:justify;white-space:normal;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457636">All flags can be bitwise combined, the test returns true if any of the tests identified a NAT.</div><div style="font-family:Helvetica, Arial;text-align:justify;white-space:normal;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457636"><br></div><div style="font-family:Helvetica, Arial;text-align:justify;white-space:normal;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457636"><br></div><div style="font-family:Helvetica, Arial;text-align:justify;white-space:normal;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457636">in nat-traversal-role.cfg</div><div style="font-family:Helvetica, Arial;text-align:justify;white-space:normal;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457636">I see:</div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457754"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457755"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457756"> if (nat_uac_test("3")) {</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457757"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457758"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457759">        force_rport();</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457760"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457761"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457762">        fix_nated_contact();</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457763"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457764"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457765">    }</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457766"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457767"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457768"><br id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457769"></span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457770"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457771"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457772">    if (has_body("application/sdp") && nat_uac_test("8")) {</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457773"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457774"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457775">        fix_nated_sdp("10");</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457776"><font face="Helvetica, Arial" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457777"><span style="white-space:normal;" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457778">    }</span></font></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457779"><br id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457780"></div><div style="text-align:justify;" dir="ltr" id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_457779">As I understand - both addresses are RFC1918</div></pre>but in case 2 the RTPENGINE is not kernalized</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819"><br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819">Does the RTPENGINE distinguish the ip address? why it was not kernalized in case 2?</pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819"><br></pre><pre id="yiv1911230854yui_3_16_0_ym19_1_1464683615850_455819">Any help is appresiated.</pre></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>