<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
</head>
<body class='hmmessage'>
Hello,<BR>&nbsp;<BR>
<HR id=stopSpelling>
Date: Thu, 12 Aug 2010 18:46:19 +0200<BR>From: miconda@gmail.com<BR>To: kevin.jzh@hotmail.com<BR>CC: sr-users@lists.sip-router.org<BR>Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy<BR><BR>
<META name=Generator content="Microsoft SafeHTML">Hello,<BR><BR>On 8/12/10 4:47 PM, KevinJin wrote: 
<BLOCKQUOTE cite=mid:SNT110-W304E04ABB14FFBFB478657E6970@phx.gbl>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:΢ÈíÑźÚ;}

</STYLE>
Hi Daniel,<BR>&nbsp;<BR>What does the log below means? Does it mean nathelper has issue to send the request to RTP proxy first or nathelper doesn't receive a response after sending a request to the rtp proxy?<BR><FONT color=#ff0000>0(27429) ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy<BR></FONT></BLOCKQUOTE>
<P style="MARGIN-RIGHT: 0px" dir=ltr>this error is printed when write to socket fails. Do you have any firewall running on the system? Is the user under which kamailio runs allowed to write to sockets?</P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<P style="MARGIN-RIGHT: 0px" dir=ltr><BR><FONT color=#0070c0>There's no firewall on the system, and I run the kamailio as root, </FONT></P>
<P style="MARGIN-RIGHT: 0px" dir=ltr><FONT color=#0070c0>&nbsp;root 26310&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 0 02:24:19 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:00 /usr/local/kamailio-3.0.2/sbin/kamailio -f /usr/local/kamailio-3.0.2/etc/kamail</FONT></P>
<BR>You can edit module_k/nathelper/nathelper.c and replace the line 2457 with:<BR><BR>LM_ERR("can't send command to a RTP proxy (%s/%d)\n", strerror(errno), errno);<BR><BR>Recompile and reinstall. Hopefully will get more hints about what happens.<BR></BLOCKQUOTE>
<P dir=ltr><BR>&nbsp;Here is the error message after the change:</P>
<P dir=ltr><FONT color=#0070c0>2(26312) ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy<FONT color=#ff0000>(Invalid argument/22)</FONT><BR>&nbsp;2(26312) ERROR: nathelper [nathelper.c:2492]: proxy &lt;udp:210.13.124.15:7722&gt; does not respond, disable it<BR>&nbsp;2(26312) ERROR: nathelper [nathelper.c:3144]: no available proxies</FONT></P>
what could be the cause?<BR>
&nbsp;<BR>
Test env:<BR>
UA1 (Behind NAT)&nbsp;&nbsp; --------&gt; Kamailio &amp; RTPproxy (Public IP) ---------&gt;UA2 (Public IP)<BR>
&nbsp;<BR>
Thanks,<BR>
Kevin<BR>Cheers,<BR>Daniel<BR><BR><BR><BR>
<BLOCKQUOTE cite=mid:SNT110-W304E04ABB14FFBFB478657E6970@phx.gbl><FONT color=#ff0000>0(27429) ERROR: nathelper [nathelper.c:2492]: proxy &lt;udp:210.13.124.15:7722&gt; does not respond, disable it<BR></FONT><BR><FONT color=#ff0000><FONT color=#000000>There's no problem for the resource(CPU,&nbsp;mem etc.)&nbsp;on the server, the load is very low.</FONT></FONT><BR>&nbsp;<BR><FONT color=#ff0000><FONT color=#000000>Thanks in advance!</FONT><BR></FONT>----------<BR>&nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type &lt;application/sdp&gt; found valid<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:3144]: no available proxies<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:2627]: no available proxies<BR>&nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type &lt;application/sdp&gt; found valid<BR>&nbsp;0(27429) INFO: nathelper [nathelper.c:2369]: rtp proxy &lt;udp:210.13.124.15:7722&gt; found, support for it re-enabled<BR>&nbsp;0(27429) DEBUG: nathelper [nathelper.c:3196]: proxy reply: 42040 210.13.124.14<BR>&nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type &lt;application/sdp&gt; found valid<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:2492]: proxy &lt;udp:210.13.124.15:7722&gt; does not respond, disable it<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:3144]: no available proxies<BR>&nbsp;0(27429) ERROR: nathelper [nathelper.c:2627]: no available proxies<BR>&nbsp;<BR>Thanks,<BR>Kevin<BR>
<HR id=ecxstopSpelling>
<PRE><FIELDSET class=ecxmimeAttachmentHeader></FIELDSET>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A class=ecxmoz-txt-link-abbreviated href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A class=ecxmoz-txt-link-freetext 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>
</PRE></BLOCKQUOTE><BR><PRE class=ecxmoz-signature>-- 
Daniel-Constantin Mierla
<A class=ecxmoz-txt-link-freetext href="http://www.asipto.com/" target=_blank>http://www.asipto.com/</A>
</PRE>                                               </body>
</html>