[OpenSIPS-Users] ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy

Răzvan Crainea razvan at opensips.org
Tue Jun 26 14:30:00 CEST 2012


Hi, Arjun!

 From your logs, I think that OpenSIPS successfully connects to 
RTPProxy. The problem appears when you try to make a call that uses 
RTPProxy?

Regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/26/2012 03:18 PM, Arjun Shankar K S wrote:
> Hi Razvan,
>
> Thank you very much for your response.
>
> Yes the RTP Proxy is running and is listening in the 7890 port as 
> shown below with netstat,
>
> root# netstat -aunt
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 my_public_ip:5060 0.0.0.0:*               LISTEN
> tcp        0      0 127.0.0.1:5060 0.0.0.0:*               LISTEN
> tcp        0      0 127.0.0.1:3306 0.0.0.0:*               LISTEN
> tcp        0      0 0.0.0.0:7222 0.0.0.0:*               LISTEN
> ttcp6       0      0 :::7222 :::*                    LISTEN
> udp        0      0 127.0.0.1:50432 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:49027 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:33425 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:54295 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:34456 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:41129 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:44714 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:60092 127.0.0.1:7890          ESTABLISHED
> udp        0      0 220.225.134.9:5060      0.0.0.0:*
> udp        0      0 127.0.0.1:5060          0.0.0.0:*
> udp        0      0 127.0.0.1:55751 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:55239 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:7890          0.0.0.0:*
> udp        0      0 127.0.0.1:43352 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:33766 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:50161 127.0.0.1:7890          ESTABLISHED
> udp        0      0 127.0.0.1:58748 127.0.0.1:7890          ESTABLISHED
>
> Please find below the RTP Proxy log when I start the opensips with RTP 
> Proxy already running in the background.
>
> Jun 26 17:25:15 pbx2 opensips: WARNING:core:fix_socket_list: could not 
> rev. resolve 220.225.134.9
> Jun 26 17:25:15 pbx2 opensips: WARNING:core:fix_socket_list: could not 
> rev. resolve 220.225.134.9
> Jun 26 17:25:15 pbx2 opensips: INFO:core:init_tcp: using epoll_lt as 
> the TCP io watch method (auto detected)
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: NOTICE:core:main: 
> version: opensips 1.6.1-notls (x86_64/linux)
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: INFO:core:main: 
> using 128 Mb shared memory
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: INFO:core:main: 
> using 1 Mb private memory per process
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> NOTICE:signaling:mod_init: initializing module ...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: INFO:sl:mod_init: 
> Initializing StateLess engine
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: INFO:tm:mod_init: 
> TM - initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:maxfwd:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:usrloc:ul_init_locks: locks array size 512
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:registrar:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:textops:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:xlog:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:acc:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:auth:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:auth_db:mod_init: initializing...
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 255 kb
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4050]: 
> INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 255 kb
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4057_0 V"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4057_0 20040107#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4057_1 VF 20050322"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4057_1 1#012"
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4057]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4057_2 VF 20071116"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4057_2 1#012"
> (.....Same as above.....)
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4055]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4053]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4061]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4063]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4065_1 1#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4052_1 VF 20050322"
> (.....Same as above.....)
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4060_0 20040107#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4058_0 V"
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4065]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4052]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4058_0 20040107#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4056_0 V"
> (.....Same as above.....)
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4065_2 1#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4052_2 VF 20071116"
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4060]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4064]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4066]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4052_2 1#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4058_1 VF 20050322"
> (.....Same as above.....)
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4055_3 1#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4063_3 VF 20081102"
> Jun 26 17:25:15 pbx2 /usr/local/sbin/opensips[4058]: 
> INFO:nathelper:rtpp_test: rtp proxy <udp:127.0.0.1:7890> found, 
> support for it enabled
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:doreply: sending reply 
> "4063_3 1#012"
> Jun 26 17:25:15 pbx2 rtpproxy[2258]: DBUG:handle_command: received 
> command "4065_3 VF 20081102"
>
> Can you please let me know where is the mistake happening. Any help is 
> deeply appreciated.
>
> Thanks,
> Arjun
>
> ----- Original Message -----
> From: "Răzvan Crainea" <razvan at opensips.org>
> To: users at lists.opensips.org
> Sent: Tuesday, June 26, 2012 1:21:11 PM GMT +05:30 Chennai, Kolkata, 
> Mumbai, New Delhi
> Subject: Re: [OpenSIPS-Users] ERROR:nathelper:send_rtpp_command: can't 
> send command to a RTP proxy
>
> Hello, Arjun!
>
> Are you sure rtpproxy is running and listening on that port? Have you 
> checked rtpproxy log for errors?
>
> Regards,
> Razvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
> On 06/25/2012 05:58 PM, Arjun Shankar K S wrote:
>
>     Hi All,
>
>     Greeting to All!!
>
>     I have opensips and rtp proxy in the same machine with a public
>     IP. When I start the opensips with rtp proxy I get the below error.
>
>     /usr/local/sbin/opensips[1691]: WARNING:nathelper:rtpp_test: can't
>     get version of the RTP proxy
>      /usr/local/sbin/opensips[1691]: WARNING:nathelper:rtpp_test:
>     support for RTP proxy <udp:127.0.0.1:7890> has been disabled
>     temporarily
>      /usr/local/sbin/opensips[1683]:
>     ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
>      /usr/local/sbin/opensips[1683]:
>     ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does
>     not respond, disable it
>
>     I started the rtp proxy with the below command,
>
>     ./rtpproxy -l my_public_ip -s udp:127.0.0.1:7890 -F
>
>     My opensip.cfg file has the following additions for NAT Traversal,
>
>     #------Nat Params-------------
>     modparam("usrloc","nat_bflag", 6)
>     modparam("nathelper","rtpproxy_sock", "udp:127.0.0.1:7890")
>     modparam("nathelper","natping_interval", 30)
>     modparam("nathelper","ping_nated_only", 0)
>     modparam("nathelper","sipping_bflag", 7)
>     modparam("nathelper","sipping_from", "sip:pinger at PROXY_IP")
>     modparam("registrar","received_avp", "$avp(i:42)")
>     modparam("nathelper","received_avp", "$avp(i:42)")
>
>     Please let me know where is the mistake. Any help is deeply
>     appreciated.
>
>     Thanks,
>     Arjun
>
>
>
>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________ Users mailing list 
> Users at lists.opensips.org 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120626/df05a140/attachment-0001.htm>


More information about the Users mailing list