<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Razvan,<br>
<br>
What I do not understand is that Opensips seems to be able to bind
this socket when I start Opensips. When I run opensipsctl restart, I
can see the following in the logs :<br>
<br>
<small><font face="Courier New, Courier, monospace">Nov 4 12:49:47
WWW_64Bits ./opensips[5606]: ERROR:rtpproxy:select_rtpp_set:
script error-invalid id_set to be selected <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5611]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5609]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5611]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5609]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5607]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5607]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5610]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5612]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5612]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5610]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5614]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5615]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5614]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5613]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5615]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5616]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5613]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5618]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5616]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5617]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5619]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5618]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5626]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5622]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5621]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5623]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5620]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5628]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5627]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5621]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5617]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5630]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5625]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5626]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5622]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5619]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5623]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5629]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5627]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5628]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5625]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5630]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5620]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5629]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5608]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it enabled <br>
Nov 4 12:49:47 WWW_64Bits ./opensips[5608]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12222>
found, support for it enabled </font></small><br>
<br>
Maybe the problem is linked to the first error message : <small><font
face="Courier New, Courier, monospace">ERROR:rtpproxy:select_rtpp_set:
script error-invalid id_set to be selected <br>
</font></small> but that would mean my declaration of the rtpproxy
sets is wrong, however we both think it is correct.<br>
Here are my nathelper and rtpproxy configuration parameters again,
in case we missed something :<br>
<br>
<small><font face="Courier New, Courier, monospace"># -----
nathelper params -----<br>
modparam("nathelper", "natping_interval", 30)<br>
modparam("nathelper", "ping_nated_only", 1)<br>
modparam("nathelper", "natping_socket", "xx.xx.xx.xx:5060")<br>
modparam("nathelper", "sipping_from", <a class="moz-txt-link-rfc2396E" href="sip:natping@mydomain.fr">"sip:natping@mydomain.fr"</a>)<br>
modparam("nathelper", "sipping_bflag", 7)<br>
modparam("nathelper", "received_avp", "$avp(42)")<br>
<br>
# ----- rtpproxy params -----<br>
modparam("rtpproxy", "rtpproxy_sock", "1 ==
udp:localhost:12221")<br>
modparam("rtpproxy", "rtpproxy_sock", "2 ==
udp:localhost:12222")</font></small><br>
<br>
Moreover, I double checked my calls to set_rtp_proxy_set and all of
them are set to 1 or 2.<br>
<br>
Regarding the binding, I do not understand why Opensips would not be
able to bind on a local socket, as there is no firewall involved.
Please find below the output of the netstat command for my rtpproxy
set number 1, if that can help :<br>
<br>
<small><font face="Courier New, Courier, monospace">ultracomp@WWW_64Bits
~]$ netstat -tanpu | grep 12221<br>
(Not all processes could be identified, non-owned process info<br>
will not be shown, you would have to be root to see it all.)<br>
udp 0 0 127.0.0.1:37562
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:37574
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:43765
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:35595
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:35636
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:52048
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:58284
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:48067
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:39930
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:35963
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:54420
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:50376
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:58685
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:40263
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:44471
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:34630
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:38817
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:59318
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:12221
0.0.0.0:* -<br>
udp 0 0 127.0.0.1:36935
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:45182
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:47230
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:59918
127.0.0.1:12221 ESTABLISHED -<br>
udp 0 0 127.0.0.1:53820
127.0.0.1:12221 ESTABLISHED -</font></small><br>
<br>
Thanks again for your patience.<br>
<br>
Best regards,<br>
<br>
Sebastien<br>
<br>
Le 08/11/2011 13:48, Razvan Crainea a écrit :
<blockquote cite="mid:4EB9253A.6060509@opensips.org" type="cite">Hi
Sebastien,
<br>
<br>
Taking a look into RTPProxy's code, I see that the error 10 is
returned when it can't create a listener. This happens when
RTPProxy can't create or bind a socket, or doesn't have enough
ports allocated. My guess is that in your case it can't bind a
socket on the interface specified by the "-l" parameter.
<br>
<br>
Best regards,
<br>
<br>
--
<br>
Răzvan Crainea
<br>
OpenSIPS Developer
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
</blockquote>
</body>
</html>