Hi Maksym,
After define the AF_LOCAL as the AF_UNIX, and complied the rtpproxy on Solaris 10 Sparc, I can run the rtpproxy however the nathelper is reporting "proxy <udp:127.0.0.1:7722> does not respond, disable it" during the call. Test env: UA1 (NATed) ----------kamailio3.0.2/rtpproxy(Public IP) ----------UA2(Public IP) nathelper is able to enable the rtpproxy during the startup, but when UA1 make a call to UA2, only the first rtp proxy request is success, it is failed when try it for the 200 OK reply. Below is the startup log for the Kamailio[nathelper] and the rtpptoxy, and the log for one call. Please help on it, thanks in advance! =============== nathelper.so] 0(19400) DEBUG: <core> [sr_module.c:871]: DEBUG: init_mod: nathelper 0(19400) DEBUG: nathelper [nathelper.c:633]: url is udp:127.0.0.1:7722, len is 18 0(19400) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-127): nathelper 1(19401) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (1): nathelper 1(19401) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 2(19402) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (2): nathelper 2(19402) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 3(19403) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (3): nathelper 3(19403) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 4(19404) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (4): nathelper 4(19404) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 5(19405) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-1): nathelper 5(19405) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 6(19406) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-1): nathelper 6(19406) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 0(19400) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (0): nathelper 8(19408) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-2): nathelper 9(19409) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-1): nathelper 9(19409) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 10(19410) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (5): nathelper 10(19410) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 11(19411) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (6): nathelper 11(19411) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 12(19412) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (7): nathelper 12(19412) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 13(19413) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (8): nathelper 13(19413) INFO: nathelper [nathelper.c:2369]: rtp proxy <udp:127.0.0.1:7722> found, support for it enabled 14(19414) DEBUG: <core> [sr_module.c:807]: DEBUG: init_mod_child (-4): nathelper 2(19402) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp> found valid 2(19402) DEBUG: nathelper [nathelper.c:3196]: proxy reply: 48590 210.13.X.Y 4(19404) DEBUG: nathelper [nhelpr_funcs.c:148]: type <application/sdp> found valid 4(19404) ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy 4(19404) ERROR: nathelper [nathelper.c:2492]: proxy <udp:127.0.0.1:7722> does not respond, disable it 4(19404) ERROR: nathelper [nathelper.c:3144]: no available proxies 4(19404) ERROR: nathelper [nathelper.c:2627]: no available proxies AppSer01:ipunity@/var/log$ AppSer01:ipunity@/var/log$ AppSer01:root@/$ /usr/local/bin/rtpproxy -f -u kamailio -l 210.13.X.Y -d DBUG -s udp:localhost:7722 INFO:main: rtpproxy started, pid 19177 DBUG:handle_command: received command "19401_0 V" DBUG:doreply: sending reply "19401_0 20040107 " DBUG:handle_command: received command "19401_1 VF 20050322" DBUG:doreply: sending reply "19401_1 1 " DBUG:handle_command: received command "19401_2 VF 20071116" DBUG:doreply: sending reply "19401_2 1 " DBUG:handle_command: received command "19402_0 V" DBUG:doreply: sending reply "19402_0 20040107 " DBUG:handle_command: received command "19402_1 VF 20050322" DBUG:doreply: sending reply "19402_1 1 " DBUG:handle_command: received command "19402_2 VF 20071116" DBUG:doreply: sending reply "19402_2 1 " DBUG:handle_command: received command "19401_3 VF 20081102" DBUG:doreply: sending reply "19401_3 1 " DBUG:handle_command: received command "19403_0 V" DBUG:doreply: sending reply "19403_0 20040107 " DBUG:handle_command: received command "19403_1 VF 20050322" DBUG:doreply: sending reply "19403_1 1 " DBUG:handle_command: received command "19403_2 VF 20071116" DBUG:doreply: sending reply "19403_2 1 " DBUG:handle_command: received command "19402_3 VF 20081102" DBUG:doreply: sending reply "19402_3 1 " DBUG:handle_command: received command "19403_3 VF 20081102" DBUG:doreply: sending reply "19403_3 1 " DBUG:handle_command: received command "19404_0 V" DBUG:doreply: sending reply "19404_0 20040107 " DBUG:handle_command: received command "19404_1 VF 20050322" DBUG:doreply: sending reply "19404_1 1 " DBUG:handle_command: received command "19404_2 VF 20071116" DBUG:doreply: sending reply "19404_2 1 " DBUG:handle_command: received command "19404_3 VF 20081102" DBUG:doreply: sending reply "19404_3 1 " DBUG:handle_command: received command "19405_0 V" DBUG:doreply: sending reply "19405_0 20040107 " DBUG:handle_command: received command "19405_1 VF 20050322" DBUG:doreply: sending reply "19405_1 1 " DBUG:handle_command: received command "19405_2 VF 20071116" DBUG:doreply: sending reply "19405_2 1 " DBUG:handle_command: received command "19405_3 VF 20081102" DBUG:doreply: sending reply "19405_3 1 " DBUG:handle_command: received command "19406_0 V" DBUG:doreply: sending reply "19406_0 20040107 " DBUG:handle_command: received command "19406_1 VF 20050322" DBUG:doreply: sending reply "19406_1 1 " DBUG:handle_command: received command "19406_2 VF 20071116" DBUG:doreply: sending reply "19406_2 1 " DBUG:handle_command: received command "19406_3 VF 20081102" DBUG:doreply: sending reply "19406_3 1 " DBUG:handle_command: received command "19409_0 V" DBUG:doreply: sending reply "19409_0 20040107 " DBUG:handle_command: received command "19409_1 VF 20050322" DBUG:doreply: sending reply "19409_1 1 " DBUG:handle_command: received command "19409_2 VF 20071116" DBUG:doreply: sending reply "19409_2 1 " DBUG:handle_command: received command "19410_0 V" DBUG:doreply: sending reply "19410_0 20040107 " DBUG:handle_command: received command "19410_1 VF 20050322" DBUG:doreply: sending reply "19410_1 1 " DBUG:handle_command: received command "19410_2 VF 20071116" DBUG:doreply: sending reply "19410_2 1 " DBUG:handle_command: received command "19409_3 VF 20081102" DBUG:doreply: sending reply "19409_3 1 " DBUG:handle_command: received command "19410_3 VF 20081102" DBUG:doreply: sending reply "19410_3 1 " DBUG:handle_command: received command "19411_0 V" DBUG:doreply: sending reply "19411_0 20040107 " DBUG:handle_command: received command "19411_1 VF 20050322" DBUG:doreply: sending reply "19411_1 1 " DBUG:handle_command: received command "19411_2 VF 20071116" DBUG:doreply: sending reply "19411_2 1 " DBUG:handle_command: received command "19411_3 VF 20081102" DBUG:doreply: sending reply "19411_3 1 " DBUG:handle_command: received command "19412_0 V" DBUG:doreply: sending reply "19412_0 20040107 " DBUG:handle_command: received command "19412_1 VF 20050322" DBUG:doreply: sending reply "19412_1 1 " DBUG:handle_command: received command "19412_2 VF 20071116" DBUG:doreply: sending reply "19412_2 1 " DBUG:handle_command: received command "19412_3 VF 20081102" DBUG:doreply: sending reply "19412_3 1 " DBUG:handle_command: received command "19413_0 V" DBUG:doreply: sending reply "19413_0 20040107 " DBUG:handle_command: received command "19413_1 VF 20050322" DBUG:doreply: sending reply "19413_1 1 " DBUG:handle_command: received command "19413_2 VF 20071116" DBUG:doreply: sending reply "19413_2 1 " DBUG:handle_command: received command "19413_3 VF 20081102" DBUG:doreply: sending reply "19413_3 1 " DBUG:handle_command: received command "19402_4 Uc18,101 NzQ3YWU0MTcxOGYzY2EwYjUwYTUyNWY3NzU0YzBiNmM. 116.237.74.228 5756 f41c0c28;1" INFO:handle_command: new session NzQ3YWU0MTcxOGYzY2EwYjUwYTUyNWY3NzU0YzBiNmM., tag f41c0c28;1 requested, type strong INFO:handle_command: new session on a port 48590 created, tag f41c0c28;1 INFO:handle_command: pre-filling caller's address with 116.237.74.228:5756 DBUG:doreply: sending reply "19402_4 48590 210.13.X.Y" INFO:process_rtp: session timeout INFO:remove_session: RTP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped INFO:remove_session: RTCP stats: 0 in from callee, 0 in from caller, 0 relayed, 0 dropped INFO:remove_session: session on ports 48590/0 is cleaned up Thanks, Kevin From: kevin....@hotmail.com To: sobo...@sippysoft.com; users@rtpproxy.org Subject: RE: [RTPproxy Users] compile rtpproxy on Solaris 10 issue Date: Fri, 30 Jul 2010 21:03:20 +0800 Hi Maksym, It doesn't work and got the error as 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:241: error: `PF_LOCAL' undeclared (first use in this function) rtpp_notify.c:241: error: (Each undeclared identifier is reported only once rtpp_notify.c:241: 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 have tried some suggestion on the net as below, after add these, it can go through the gmake, and I also can run the rtpproxy, but I do not sure if it will cause any issue as now my kamailio can not access the rtpproxy, the nathelper (kamailio 3.0 on the same server) enables and disables the rtpproxy continually, and fail to work. #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif Thanks, Kevin > Date: Wed, 28 Jul 2010 11:26:29 -0700 > From: sobo...@sippysoft.com > To: users@rtpproxy.org > CC: kevin....@hotmail.com > Subject: Re: [RTPproxy Users] compile rtpproxy on Solaris 10 issue > > On 7/28/2010 9:02 AM, JinKevin wrote: > > > > Does Anyone can help on this issue? > > > > Thanks, > > Kevin > > ------------------------------------------------------------------------ > > From: kevin....@hotmail.com > > To: users@rtpproxy.org > > Subject: compile rtpproxy on Solaris 10 issue > > Date: Fri, 23 Jul 2010 13:37:01 +0800 > > > > Hi All, > > > > When do the gmake on the Solaris 10 Sparc, got the error below, please > > suggest how to fix the issue. I'm doing the installation based on the > > latest rtpporxy version. > > > > 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 > > Dear Kevin, > > Can you edit rtpp_notify.c and replace all occirences of AF_LOCAL with > PF_LOCAL and let me know if it helps. If it does I will integrate the > fix into the official build. > > Regards, > -- > Maksym Sobolyev > Sippy Software, Inc. > Internet Telephony (VoIP) Experts > T/F: +1-646-651-1110 > Web: http://www.sippysoft.com > MSN: sa...@sippysoft.com > Skype: SippySoft
_______________________________________________ Users mailing list Users@rtpproxy.org http://lists.rtpproxy.org/mailman/listinfo/users