[SR-Users] Kamailio 3.0 cann't access the RTPProxy
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jul 29 10:28:52 CEST 2010
Hello,
On 7/28/10 7:13 PM, JinKevin wrote:
> Hi Daniel,
>
> Here is the debug message related to nethelper in the kamailio log:
> The proxy is circling btw enabled and disabled, what could be the cause?
can you run rtpproxy in debug mode and see if it prints some error? I
cannot think to something else than network communication problems.
Cheers,
Daniel
>
> 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 1(15244) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 1(15244) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 2(15245) INFO: nathelper [nathelper.c:2369]: rtp proxy
> <udp:127.0.0.1:7722> found, support for it re-enabled
> 3(15246) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 3(15246) DEBUG: nathelper [nathelper.c:3196]: proxy reply: 46634
> 210.13.x.y
> 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 4(15247) ERROR: nathelper [nathelper.c:2457]: can't send command to a
> RTP proxy
> 4(15247) ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:127.0.0.1:7722> does not respond, disable it
> 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 1(15244) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 1(15244) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 2(15245) ERROR: nathelper [nathelper.c:2627]: no available proxies
> 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 3(15246) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp>
> found valid
> 3(15246) ERROR: nathelper [nathelper.c:3144]: no available proxies
> 1(15244) ERROR: nathelper [nathelper.c:2627]: no available proxies
>
> Thanks,
> Kevin
> ------------------------------------------------------------------------
> From: kevin.jzh at hotmail.com
> To: miconda at gmail.com
> CC: sr-users at lists.sip-router.org
> Subject: RE: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
> Date: Wed, 28 Jul 2010 19:42:27 +0800
>
>
> Hi,
>
> Yes, I changed the kamailio config as well, but didn't see any packet
> from Kamailio on the port.
> And the error message is as following:
>
> WARNING: tm [uac.c:111]: Warning: uac does not spread across the whole
> hash table
> ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy
> ERROR: nathelper [nathelper.c:2492]: proxy <udp:210.13.x.y:7722> does
> not respond, disable it
> ERROR: nathelper [nathelper.c:3144]: no available proxies
> ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy
> ERROR: nathelper [nathelper.c:2492]: proxy <udp:210.13.x.y:7722> does
> not respond, disable it
> ERROR: nathelper [nathelper.c:3144]: no available proxies
> ERROR: nathelper [nathelper.c:2627]: no available proxies
> ERROR: nathelper [nathelper.c:2627]: no available proxies
>
> Thanks,
> Kevin
> ------------------------------------------------------------------------
> Date: Wed, 28 Jul 2010 10:31:18 +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 7/27/10 4:21 PM, JinKevin wrote:
>
> Hi Daniel,
>
> I use the rtpproxy 1.2.1. And seems loopback interface cann't be
> caputred on Solaris. I have tried the rtpproxy on other interface
> and tried the caputre, however didn't see anything on port 7722.
>
>
> have you updated kamailio config to send to the other interface as
> well? What are now the error messages you get from kamailio?
>
> You should see the messages sent by kamailio to rtpproxy...
>
>
> One more thing like to mention is that I got some error like below:
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -std=gnu99 -Wall
> -Wno-uninitialized -g -O2 -MT rtpp_notify.o -MD -MP -MF
> ".deps/rtpp_notify.Tpo" -c -o rtpp_notify.o rtpp_notify.c; \
> then mv -f ".deps/rtpp_notify.Tpo" ".deps/rtpp_notify.Po"; else rm
> -f ".deps/rtpp_notify.Tpo"; exit 1; fi
> rtpp_notify.c: In function `reconnect_timeout_handler':
> rtpp_notify.c:240: error: `AF_LOCAL' undeclared (first use in this
> function)
> rtpp_notify.c:240: error: (Each undeclared identifier is reported
> only once
> rtpp_notify.c:240: error: for each function it appears in.)
> gmake[1]: *** [rtpp_notify.o] Error 1
> gmake[1]: Leaving directory `/opt/csw/src/rtpproxy'
> gmake: *** [all] Error 2
>
>
> I search on internet and added the following in the beginnng of
> the rtpp_notify.c, and the make gets through. Not sure if this
> change has any issue.
>
> #ifndef AF_LOCAL
> #define AF_LOCAL AF_UNIX
> #endif
>
>
> This is rtpproxy code, perhaps is better to ask on rtpproxy devel list:
> http://lists.rtpproxy.org/mailman/listinfo/devel
>
> Cheers,
> Daniel
>
>
> Thanks,
> Kevin
>
> ------------------------------------------------------------------------
>
> Date: Tue, 27 Jul 2010 11:53:21 +0200
> From: miconda at gmail.com <mailto:miconda at gmail.com>
> To: kevin.jzh at hotmail.com <mailto:kevin.jzh at hotmail.com>
> CC: sr-users at lists.sip-router.org
> <mailto:sr-users at lists.sip-router.org>
> Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
>
> Hello,
>
> can you sniff the loopback interface for communication on port
> 7722 (i.e., using ngrep/wireshark, etc...)?
>
> What is the version of rtppproxy do you have?
>
> Cheers,
> Daniel
>
>
> On 7/27/10 3:58 AM, JinKevin wrote:
>
> Guys,
>
> Anyone has some feedback on this?
>
> Thanks,
> Kevin
>
> ------------------------------------------------------------------------
>
>
> Hi All,
>
>
> I have the kamailio configed as below on Solaris 10 (Sparc):
>
> # ----- nathelper -----
> #!ifdef WITH_NAT
> modparam("nathelper", "rtpproxy_sock", "udp:127.0.0.1:7722")
> modparam("nathelper", "natping_interval", 30)
> modparam("nathelper", "ping_nated_only", 1)
> modparam("nathelper", "sipping_bflag", 7)
> modparam("nathelper", "sipping_from", "sip:pinger at kamailio.org")
> modparam("registrar|nathelper", "received_avp", "$avp(i:80)")
> modparam("usrloc", "nat_bflag", 6)
> #!endif
>
> and rtpproxy is started as
> AppSer01:ipunity@/opt/ipunity$ ps -ef |grep rtp
> ipunity 4687 1 0 12:58:20 ? 0:00 /usr/local/bin/rtpproxy -l
> 210.xx.xx.xx -s udp:localhost:7722
>
> AppSer01:ipunity@/opt/ipunity$ netstat -an |grep 7722
> 127.0.0.1.7722 Idle
> 127.0.0.1.41509 127.0.0.1.7722 Connected
> 127.0.0.1.41510 127.0.0.1.7722 Connected
> 127.0.0.1.41511 127.0.0.1.7722 Connected
> 127.0.0.1.41512 127.0.0.1.7722 Connected
> 127.0.0.1.41513 127.0.0.1.7722 Connected
> 127.0.0.1.41514 127.0.0.1.7722 Connected
> 127.0.0.1.41515 127.0.0.1.7722 Connected
> 127.0.0.1.41516 127.0.0.1.7722 Connected
> 127.0.0.1.41517 127.0.0.1.7722 Connected
> 127.0.0.1.41518 127.0.0.1.7722 Connected
> 127.0.0.1.41519 127.0.0.1.7722 Connected
>
> However, kamailio is not able to connect the rtpporxy,
>
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202
> local0.error] ERROR: nathelper [nathelper.c:2457]: can't send
> command to a RTP proxy
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113
> local0.error] ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:127.0.0.1:7722> does not respond, disable it
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370
> local0.error] ERROR: nathelper [nathelper.c:3144]: no
> available proxies
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202
> local0.error] ERROR: nathelper [nathelper.c:2457]: can't send
> command to a RTP proxy
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113
> local0.error] ERROR: nathelper [nathelper.c:2492]: proxy
> <udp:127.0.0.1:7722> does not respond, disable it
> Jul 24 12:58:59 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370
> local0.error] ERROR: nathelper [nathelper.c:3144]: no
> available proxies
> Jul 24 12:59:04 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370
> local0.error] ERROR: nathelper [nathelper.c:2627]: no
> available proxies
> Jul 24 12:59:04 AppSer01
> /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370
> local0.error] ERROR: nathelper [nathelper.c:2627]: no
> available proxies
>
> Any helps are appreciated.
>
>
> Thanks,
> Kevin
>
> ------------------------------------------------------------------------
> 聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! 立刻下载!
> <http://3g.msn.cn/>
> ------------------------------------------------------------------------
> 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!
> <http://www.windowslive.cn/messenger/>
>
>
> _______________________________________________
> 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/
>
>
>
> ------------------------------------------------------------------------
> 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!
> <http://www.windowslive.cn/messenger/>
>
>
> _______________________________________________
> 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/20100729/459bf1e3/attachment-0001.htm>
More information about the sr-users
mailing list