[SR-Users] Kamailio 3.0 cann't access the RTPProxy
Daniel-Constantin Mierla
miconda at gmail.com
Thu Aug 12 22:16:18 CEST 2010
Hello,
On 8/12/10 8:34 PM, KevinJin wrote:
> Hello,
>
> ------------------------------------------------------------------------
> Date: Thu, 12 Aug 2010 18:46:19 +0200
> From: miconda at gmail.com
> To: kevin.jzh at hotmail.com
> CC: sr-users at lists.sip-router.org
> Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
>
> Hello,
>
> On 8/12/10 4:47 PM, KevinJin wrote:
>
> Hi Daniel,
>
> 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?
> 0(27429) ERROR: nathelper [nathelper.c:2457]: can't send command
> to a RTP proxy
>
> 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?
>
>
> There's no firewall on the system, and I run the kamailio as root,
> root 26310 1 0 02:24:19 ? 0:00
> /usr/local/kamailio-3.0.2/sbin/kamailio -f
> /usr/local/kamailio-3.0.2/etc/kamail
>
> You can edit module_k/nathelper/nathelper.c and replace the line
> 2457 with:
>
> LM_ERR("can't send command to a RTP proxy (%s/%d)\n",
> strerror(errno), errno);
>
> Recompile and reinstall. Hopefully will get more hints about what
> happens.
>
>
> Here is the error message after the change:
> 2(26312) ERROR: nathelper [nathelper.c:2457]: can't send command to a
> RTP proxy(Invalid argument/22)
> 2(26312) ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:210.13.124.15:7722> does not respond, disable it
> 2(26312) ERROR: nathelper [nathelper.c:3144]: no available proxies
> what could be the cause?
hmm, invalid argurment ... try with this line:
LM_ERR("can't send command to a RTP proxy (%s/%d) [sock %d (%d), vcnt
%d]\n",
strerror(errno), errno, rtpp_socks[node->idx], node->idx, vcnt);
maybe will give some hints about which value is invalid.
Can you try as well with an unix file socket:
modparam("nathelper", "rtpproxy_sock", "unix:/tmp/rtpproxy.sock")
then start rtpproxy with -s unix:/tmp/rtpproxy.sock
I have no solaris (sparc) to try myself...
Cheers,
Daniel
>
> Test env:
> UA1 (Behind NAT) --------> Kamailio & RTPproxy (Public IP)
> --------->UA2 (Public IP)
>
> Thanks,
> Kevin
> Cheers,
> Daniel
>
>
>
> 0(27429) ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:210.13.124.15:7722> does not respond, disable it
>
> There's no problem for the resource(CPU, mem etc.) on the server,
> the load is very low.
>
> Thanks in advance!
> ----------
> 0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
> <application/sdp> found valid
> 0(27429) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 0(27429) ERROR: nathelper [nathelper.c:2627]: no available proxies
> 0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
> <application/sdp> found valid
> 0(27429) INFO: nathelper [nathelper.c:2369]: rtp proxy
> <udp:210.13.124.15:7722> found, support for it re-enabled
> 0(27429) DEBUG: nathelper [nathelper.c:3196]: proxy reply: 42040
> 210.13.124.14
> 0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
> <application/sdp> found valid
> 0(27429) ERROR: nathelper [nathelper.c:2457]: can't send command
> to a RTP proxy
> 0(27429) ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:210.13.124.15:7722> does not respond, disable it
> 0(27429) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 0(27429) ERROR: nathelper [nathelper.c:2627]: no available proxies
>
> Thanks,
> Kevin
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com/
--
Daniel-Constantin Mierla
http://www.asipto.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100812/5fb67e68/attachment-0001.htm>
More information about the sr-users
mailing list