<div class="gmail_quote">Hi List,<div><br></div><div>I have a Kamailio3.1 server and RTPProxy running in WAN.</div><div><br></div><div>The calls between UA will automatically terminated in Callee UA side 36s after connected, while no one sends a BYE.  </div>


<div><br></div><div>While Kamailio and UA are in LAN at all , everything is just working well.</div><div><br></div><div>Is it my rtpproxy doesn&#39;t working correctly or something else is wrong?</div><div>What can I do to fix it.</div>


<div><br></div><div>Any hint??</div><div><br></div><div>BTW,</div><div>Kamailio is installed following official guide <a href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git</a></div>


<div><div>The kamailio.cfg wasn&#39;t changed at all except for below:</div><div><div>-----------------------------------------------------------------------------------------</div></div><div>1) adding the following lines:</div>


<div>#!define WITH_MYSQL</div><div><div>#!define WITH_AUTH</div><div>#!define WITH_USRLOCDB</div><div>#!define WITH_NAT</div></div><div><br></div><div>2)uncommenting the line below in route[REGISTRAR],</div><div><div>setbflag(FLB_NATSIPPING);</div>


</div><div><br></div><div>3)change rtpproxy port corresponding</div><div><div>modparam(&quot;rtpproxy&quot;, &quot;rtpproxy_sock&quot;, &quot;udp:<a href="http://127.0.0.1:22222" target="_blank">127.0.0.1:22222</a>&quot;)</div>

</div><div>
<br></div><div>-----------------------------------------------------------------------------------------</div></div><div><br></div><div>and my rtpproxy1.2.1 was installed by apt-get install rtpproxy,</div><div>with </div>


<div>1) /etc/default/rtpproxy changed into:</div><div>







<p># Defaults for rtpproxy</p>
<p><br></p>
<p># The control socket.</p>
<p>#CONTROL_SOCK=&quot;unix:/var/run/rtpproxy/rtpproxy.sock&quot;</p>
<p># To listen on an UDP socket, uncomment this line:</p>
<p>CONTROL_SOCK=udp:<a href="http://127.0.0.1:22222" target="_blank">127.0.0.1:22222</a></p>
<p>LISTEN_ADDR=xx.xx.xx.xx</p>
<p><br></p>
<p># Additional options that are passed to the daemon.</p>
<p>EXTRA_OPTS=&quot;-l ${LISTEN_ADDR}&quot;</p></div><div>2) and started by</div><div> <span style="font-family:Courier;font-size:12px">rtpproxy -l xx.xx.xx.xx -s udp:localhost:22222 -u kamailio</span></div>
<div><span style="font-family:Courier;font-size:12px"><br></span></div><div><span style="font-family:Courier;font-size:12px"><br></span></div><div><span style="font-family:Courier;font-size:12px"><br>
</span></div><div><span style="font-family:Courier;font-size:12px">Your help will be great appreciated.</span></div><div><span style="font-family:Courier;font-size:12px"><br>
</span></div><div><span style="font-family:Courier;font-size:12px">Coca</span></div>







</div><br>