<div>Dear Klaus,</div><div><br></div><div>Since I have <span class="Apple-style-span" style="font-family: Arial; font-size: 12px; ">Usrloc record made for registration of myUA behind nat looks like:</span></div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1038.35">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 15.0px; font: 12.0px Arial}
</style>


<div>Contact: &lt;sip:1234@192.168.10.50:2305;transport=TCP;line=7e1d8b95f65b25a&gt;;expires=600;received=&quot;sip:27.96.63.122:49202;transport=TCP&quot;</div><div><br></div><div>I thought my rtpproxy is running.</div><div>
However , the call can be established even without NAT enable, and it also ends unusually after 36s.</div><div><br></div><div>Attachment is the ngrep log in my Kamailio server side on 5060 port.</div><div>( I have replaced my server ip as xx.xx.xx.xx and the UA name as myUA)</div>
<div><br></div><div>Any hint will be great appreciated.</div><div><br></div><div>Coca</div><div><br></div><div><br></div><div><br></div><br><br><div class="gmail_quote">2011/7/21 Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This sounds like a NAT problem, where the callee does not receive the<br>
ACK request (INVITE-200OK-ACK).<br>
<br>
regards<br>
klaus<br>
<br>
Am 21.07.2011 10:32, schrieb Coca:<br>
<div class="im">&gt; Hi List,<br>
&gt;<br>
&gt; I have a Kamailio3.1 server and RTPProxy running in WAN.<br>
&gt;<br>
&gt; The calls between UA will automatically terminated in Callee UA side 36s<br>
&gt; after connected, while no one sends a BYE.<br>
&gt;<br>
&gt; While Kamailio and UA are in LAN at all , everything is just working well.<br>
&gt;<br>
&gt; Is it my rtpproxy doesn&#39;t working correctly or something else is wrong?<br>
&gt; What can I do to fix it.<br>
&gt;<br>
&gt; Any hint??<br>
&gt;<br>
&gt; BTW,<br>
&gt; Kamailio is installed following official guide<br>
&gt; <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><br>
&gt; The kamailio.cfg wasn&#39;t changed at all except for below:<br>
&gt; -----------------------------------------------------------------------------------------<br>
&gt; 1) adding the following lines:<br>
&gt; #!define WITH_MYSQL<br>
&gt; #!define WITH_AUTH<br>
&gt; #!define WITH_USRLOCDB<br>
&gt; #!define WITH_NAT<br>
&gt;<br>
&gt; 2)uncommenting the line below in route[REGISTRAR],<br>
&gt; setbflag(FLB_NATSIPPING);<br>
&gt;<br>
&gt; 3)change rtpproxy port corresponding<br>
&gt; 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><br>
</div>&gt; &lt;<a href="http://127.0.0.1:22222" target="_blank">http://127.0.0.1:22222</a>&gt;&quot;)<br>
<div class="im">&gt;<br>
&gt; -----------------------------------------------------------------------------------------<br>
&gt;<br>
&gt; and my rtpproxy1.2.1 was installed by apt-get install rtpproxy,<br>
&gt; with<br>
&gt; 1) /etc/default/rtpproxy changed into:<br>
&gt;<br>
&gt; # Defaults for rtpproxy<br>
&gt;<br>
&gt;<br>
&gt; # The control socket.<br>
&gt;<br>
&gt; #CONTROL_SOCK=&quot;unix:/var/run/rtpproxy/rtpproxy.sock&quot;<br>
&gt;<br>
&gt; # To listen on an UDP socket, uncomment this line:<br>
&gt;<br>
</div>&gt; CONTROL_SOCK=udp:<a href="http://127.0.0.1:22222" target="_blank">127.0.0.1:22222</a> &lt;<a href="http://127.0.0.1:22222" target="_blank">http://127.0.0.1:22222</a>&gt;<br>
<div class="im">&gt;<br>
&gt; LISTEN_ADDR=xx.xx.xx.xx<br>
&gt;<br>
&gt;<br>
&gt; # Additional options that are passed to the daemon.<br>
&gt;<br>
&gt; EXTRA_OPTS=&quot;-l ${LISTEN_ADDR}&quot;<br>
&gt;<br>
&gt; 2) and started by<br>
&gt;  rtpproxy -l xx.xx.xx.xx -s udp:localhost:22222 -u kamailio<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Your help will be great appreciated.<br>
&gt;<br>
&gt; Coca<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; sr-dev mailing list<br>
&gt; <a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>--------------------------<br>Room to Fly, Endless Sky!<br><br>                  --Yi Chen<br>