<div>Dear Klaus,</div><div><br></div><div>Thank you for your email.</div><div>I tried using my UA connecting to the servers provided by other free sip service provider like Opensips in WAN.</div><div>And the same problem didn&#39;t happen. My UA did sent ACK after the 200 OK in the invite process.</div>
<div><br></div><div>It looks like the problem is my Kamailio server &#39;s NAT setting.</div><div><br></div><div>I wonder how I can do to verify whether the NAT setting is correctly done. What kind of method did you use in this issue?</div>
<div><br></div><div>Your help will be great appreciated.</div><div><br></div><div>Coca</div><div><br></div><div><br></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" target="_blank">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">IF you take a look at the trace you see, that the caller does not send<br>
ACK after receiving 200 OK. Either it does not send ACK or it sends it<br>
to wrong destination.<br>
<br>
Trace at the caller&#39;s phone and watch log file of caller.<br>
<br>
regards<br>
Klaus<br>
<br>
Am 21.07.2011 12:33, schrieb Coca:<br>
<div>&gt; Dear Klaus,<br>
&gt;<br>
&gt; Since I have Usrloc record made for registration of myUA behind nat<br>
&gt; looks like:<br>
&gt; Contact:<br>
&gt; &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;<br>
&gt;<br>
&gt; I thought my rtpproxy is running.<br>
&gt; However , the call can be established even without NAT enable, and it<br>
&gt; also ends unusually after 36s.<br>
&gt;<br>
&gt; Attachment is the ngrep log in my Kamailio server side on 5060 port.<br>
&gt; ( I have replaced my server ip as xx.xx.xx.xx and the UA name as myUA)<br>
&gt;<br>
&gt; Any hint will be great appreciated.<br>
&gt;<br>
&gt; Coca<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2011/7/21 Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a><br>
</div>&gt; &lt;mailto:<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;&gt;<br>
<div><div></div><div>&gt;<br>
&gt;     This sounds like a NAT problem, where the callee does not receive the<br>
&gt;     ACK request (INVITE-200OK-ACK).<br>
&gt;<br>
&gt;     regards<br>
&gt;     klaus<br>
&gt;<br>
&gt;     Am 21.07.2011 10:32, schrieb Coca:<br>
&gt;     &gt; Hi List,<br>
&gt;     &gt;<br>
&gt;     &gt; I have a Kamailio3.1 server and RTPProxy running in WAN.<br>
&gt;     &gt;<br>
&gt;     &gt; The calls between UA will automatically terminated in Callee UA<br>
&gt;     side 36s<br>
&gt;     &gt; after connected, while no one sends a BYE.<br>
&gt;     &gt;<br>
&gt;     &gt; While Kamailio and UA are in LAN at all , everything is just<br>
&gt;     working well.<br>
&gt;     &gt;<br>
&gt;     &gt; Is it my rtpproxy doesn&#39;t working correctly or something else is<br>
&gt;     wrong?<br>
&gt;     &gt; What can I do to fix it.<br>
&gt;     &gt;<br>
&gt;     &gt; Any hint??<br>
&gt;     &gt;<br>
&gt;     &gt; BTW,<br>
&gt;     &gt; Kamailio is installed following official guide<br>
&gt;     &gt;<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;     &gt; The kamailio.cfg wasn&#39;t changed at all except for below:<br>
&gt;     &gt;<br>
&gt;     -----------------------------------------------------------------------------------------<br>
&gt;     &gt; 1) adding the following lines:<br>
&gt;     &gt; #!define WITH_MYSQL<br>
&gt;     &gt; #!define WITH_AUTH<br>
&gt;     &gt; #!define WITH_USRLOCDB<br>
&gt;     &gt; #!define WITH_NAT<br>
&gt;     &gt;<br>
&gt;     &gt; 2)uncommenting the line below in route[REGISTRAR],<br>
&gt;     &gt; setbflag(FLB_NATSIPPING);<br>
&gt;     &gt;<br>
&gt;     &gt; 3)change rtpproxy port corresponding<br>
&gt;     &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>
&gt;     &lt;<a href="http://127.0.0.1:22222" target="_blank">http://127.0.0.1:22222</a>&gt;<br>
&gt;     &gt; &lt;<a href="http://127.0.0.1:22222" target="_blank">http://127.0.0.1:22222</a>&gt;&quot;)<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     -----------------------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; and my rtpproxy1.2.1 was installed by apt-get install rtpproxy,<br>
&gt;     &gt; with<br>
&gt;     &gt; 1) /etc/default/rtpproxy changed into:<br>
&gt;     &gt;<br>
&gt;     &gt; # Defaults for rtpproxy<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; # The control socket.<br>
&gt;     &gt;<br>
&gt;     &gt; #CONTROL_SOCK=&quot;unix:/var/run/rtpproxy/rtpproxy.sock&quot;<br>
&gt;     &gt;<br>
&gt;     &gt; # To listen on an UDP socket, uncomment this line:<br>
&gt;     &gt;<br>
&gt;     &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>
&gt;     &lt;<a href="http://127.0.0.1:22222" target="_blank">http://127.0.0.1:22222</a>&gt;<br>
&gt;     &gt;<br>
&gt;     &gt; LISTEN_ADDR=xx.xx.xx.xx<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; # Additional options that are passed to the daemon.<br>
&gt;     &gt;<br>
&gt;     &gt; EXTRA_OPTS=&quot;-l ${LISTEN_ADDR}&quot;<br>
&gt;     &gt;<br>
&gt;     &gt; 2) and started by<br>
&gt;     &gt;  rtpproxy -l xx.xx.xx.xx -s udp:localhost:22222 -u kamailio<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; Your help will be great appreciated.<br>
&gt;     &gt;<br>
&gt;     &gt; Coca<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; sr-dev mailing list<br>
</div></div>&gt;     &gt; <a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a> &lt;mailto:<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>&gt;<br>

<div>&gt;     &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>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     sr-dev mailing list<br>
</div>&gt;     <a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a> &lt;mailto:<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>&gt;<br>
<div><div></div><div>&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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; --------------------------<br>
&gt; Room to Fly, Endless Sky!<br>
&gt;<br>
&gt;                   --Yi Chen<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; sr-dev mailing list<br>
&gt; <a href="mailto:sr-dev@lists.sip-router.org" target="_blank">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" target="_blank">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--------------------------<br>Room to Fly, Endless Sky!<br><br>                  --Yi Chen<br>