<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">I installed Kamailio 4.2 and the latest rtpproxy. When starting Kamailio I see these lines:<br style=""><br style="" class=""><div style="" class="" id="yiv3519008967"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div style="" class="" id="yiv3519008967yui_3_16_0_1_1414453840694_5109"><font size="2">Oct 27 21:54:26 ip-10-0-2-68 kamailio: DEBUG: <core> [sr_module.c:590]: load_module(): load_module: trying to load </usr/local<br style="" class="">Oct 27 21:54:26 ip-10-0-2-68 kamailio: DEBUG: <core> [sr_module.c:357]: register_module(): register PV from: rtpproxy<br style="" class="">Oct 27 21:54:26 ip-10-0-2-68 kamailio: DEBUG: <core> [cfg.lex:1724]: pp_define(): defining id: MOD_rtpproxy<br style="" class="">Oct 27 21:54:32 ip-10-0-2-68 ./kamailio[3887]: ERROR: rtpproxy [rtpproxy.c:1707]: send_rtpp_command(): timeout waiting reply f<br style="" class="">Oct 27 21:54:32 ip-10-0-2-68 ./kamailio[3887]: ERROR: rtpproxy [rtpproxy.c:1716]: send_rtpp_command(): proxy <udp:10.0.2.68:77<br style="" class="">Oct 27 21:54:32 ip-10-0-2-68 ./kamailio[3887]: WARNING: rtpproxy [rtpproxy.c:1573]: rtpp_test(): can't get version of the RTP<br style="" class="">Oct 27 21:54:32 ip-10-0-2-68 ./kamailio[3887]: WARNING: rtpproxy [rtpproxy.c:1610]: rtpp_test(): support for RTP proxy <udp:10<br style="" class="">Oct 27 21:54:37 ip-10-0-2-68 ./kamailio[3898]: ERROR: rtpproxy [rtpproxy.c:1707]: send_rtpp_command(): timeout waiting reply f<br style="" class="">Oct 27 21:54:37 ip-10-0-2-68 ./kamailio[3898]: ERROR: rtpproxy [rtpproxy.c:1716]: send_rtpp_command(): proxy <udp:10.0.2.68:77<br style="" class="">Oct 27 21:54:37 ip-10-0-2-68 ./kamailio[3898]: WARNING: rtpproxy [rtpproxy.c:1573]: rtpp_test(): can't get version of the RTP<br style="" class=""></font><br style="" class="">I run rtpproxy like this:<br style="" class=""><font size="2">/usr/local/rtpproxy-install-dir/bin/rtpproxy -l <public ip here> -s udp:10.0.2.68:7722 -F -d DBUG:LOG_LOCAL3<br style="" class=""></font><br style="" class="">I have these linee in the kamailio.cfg file<br style="" class=""><font size="2"><br style="" class="">loadmodule "rtpproxy.so"<br style="" class=""><br style="" class=""># ----- rtpproxy params -----<br style="" class="">modparam("rtpproxy", "rtpproxy_sock", "udp:10.0.2.68:7722")<br style="" class=""></font><br style="" class="">I have tried with localhost, with 127.0.0.1 and get the same results ( I mean configure kamailio to contact rttpproxy with localhost instead of ip and at the same time running rtpproxy with the same reference.<br style="" class=""><br style="" class=""> I can see the rtpproxy running/listening<br style="" class=""><br style="" class=""><font size="2">[root@ip-10-0-2-68 sbin]# netstat -lnp  | grep rtpproxy<br style="" class="">udp        0      0 10.0.2.68:7722              0.0.0.0:*                               3608/rtpproxy<br style="" class=""></font><br style="" class="">I can also see these lines:<br style="" class=""><font size="2">[root@ip-10-0-2-68 sbin]# netstat -np  | grep 7722<br style="" class="">udp        0      0 10.0.2.68:49772             10.0.2.68:7722              ESTABLISHED 3928/./kamailio<br style="" class="">udp        0      0 10.0.2.68:36097             10.0.2.68:7722              ESTABLISHED 3897/./kamailio<br style="" class="">udp        0      0 10.0.2.68:49158             10.0.2.68:7722              ESTABLISHED 3906/./kamailio<br style="" class="">udp        0      0 10.0.2.68:37129             10.0.2.68:7722              ESTABLISHED 3904/./kamailio<br style="" class="">udp        0      0 10.0.2.68:39052             10.0.2.68:7722              ESTABLISHED 3926/./kamailio<br style="" class="">udp        0      0 10.0.2.68:38161             10.0.2.68:7722              ESTABLISHED 3919/./kamailio<br style="" class="">udp        0      0 10.0.2.68:53144             10.0.2.68:7722              ESTABLISHED 3887/./kamailio<br style="" class="">udp        0      0 10.0.2.68:39721             10.0.2.68:7722              ESTABLISHED 3905/./kamailio<br style="" class="">udp        0      0 10.0.2.68:59563             10.0.2.68:7722              ESTABLISHED 3909/./kamailio<br style="" class="">udp        0      0 10.0.2.68:51884             10.0.2.68:7722              ESTABLISHED 3921/./kamailio<br style="" class="">udp        0      0 10.0.2.68:46902             10.0.2.68:7722              ESTABLISHED 3930/./kamailio<br style="" class="">udp        0      0 10.0.2.68:33981             10.0.2.68:7722              ESTABLISHED 3931/./kamailio<br style="" class="">udp        0      0 10.0.2.68:60221             10.0.2.68:7722              ESTABLISHED 3898/./kamailio<br style="" class="">udp        0      0 10.0.2.68:35651             10.0.2.68:7722              ESTABLISHED 3900/./kamailio<br style="" class="">udp        0      0 10.0.2.68:33105             10.0.2.68:7722              ESTABLISHED 3927/./kamailio<br style="" class="">udp        0      0 10.0.2.68:43349             10.0.2.68:7722              ESTABLISHED 3887/./kamailio<br style="" class="">udp        0      0 10.0.2.68:39259             10.0.2.68:7722              ESTABLISHED 3899/./kamailio<br style="" class="">udp        0      0 10.0.2.68:35170             10.0.2.68:7722              ESTABLISHED 3907/./kamailio<br style="" class="">udp        0      0 10.0.2.68:38760             10.0.2.68:7722              ESTABLISHED 3908/./kamailio<br style="" class=""></font><br style="" class=""><br style="" class=""><br style="" class="">In the rtpproxy I see that it is sent data and it replies too, I even got a wireshark capture showing that as well:<br style="" class=""><font size="2"><br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:get_command: received command "3931_2 V"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:rtpc_doreply: sending reply "20040107#012"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:get_command: received command "3927_2 V"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:rtpc_doreply: sending reply "20040107#012"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:get_command: received command "3926_2 V"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:rtpc_doreply: sending reply "20040107#012"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:get_command: received command "3928_2 V"<br style="" class="">Oct 27 21:54:41 ip-10-0-2-68 rtpproxy[3608]: DBUG:rtpc_doreply: sending reply "20040107#012"<br style="" class=""><br style="" class=""></font><br style="" class="">But somehow kamailio does not see it:<br style="" class=""><font size="2"><br style="" class="">[root@ip-10-0-2-68 sbin]# ./kamctl fifo nh_show_rtpp<br style="" class="">which: no greadlink in (/sbin:/bin:/usr/sbin:/usr/bin:/)<br style="" class="">which: no gdb in (/sbin:/bin:/usr/sbin:/usr/bin:/)<br style="" class="">udp:10.0.2.68:7722::  set=0<br style="" class="">        index:: 0<br style="" class="">        disabled:: 1<br style="" class="">        weight:: 1<br style="" class="">        recheck_ticks:: 53253287<br style="" class=""><br style="" class=""></font><br style="" class=""></div><div style="" class="" id="yiv3519008967yui_3_16_0_1_1414453840694_5109">I even when to the kamailio code and saw something that may have something to do with it but havent tried it yet:, in the implementation of the function "send_rtpp_command" I see that the socket created is using TCP. But I tried configuring kamailio/rtpproxy to use tcp instead but I also got the same results, kamailio seems to fail to acknoledgwe the replies from rtpproxy.<br style="" class="">I also have SELINUX disabled and the iptables are not running.<br style="" class=""><br style="" class="">I dont know what else to check, if somebody can shed some light into this I'd appreciate it.<br><br>jp2014<br><br style="" class=""><br style="" class=""></div><div style="" class="" id="yiv3519008967yui_3_16_0_1_1414453840694_5109"> </div></div></div></div></div></body></html>