<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Update : it seems rtpproxy tries to bind on 2 sockets, one on an
even port and another on the odd port just after (cf for loop in the
create_twinlistener function). The first bind is successful but it
fails on the second :<br>
<small><font face="Courier New, Courier, monospace"><br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]: INFO :: (INVITE)
rtpproxy set 1<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: node->rn_disabled = 0,
node->rn_recheck_ticks = 0, get_ticks = 11<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 0<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]: INFO:handle_command:
new session 886876334, tag 1383821790;1 requested, type strong<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18014 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18015 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18000 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18001 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18016 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18017 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18002 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18003 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18012 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18013 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18010 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18011 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18008 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:force_rtp_proxy_body: command sent to rtpproxy, cp
= E10 , err = 10<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:force_rtp_proxy_body: rtpproxy returned an error,
we disable the node<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18009 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18018 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: node->rn_disabled = 1,
node->rn_recheck_ticks = 71, get_ticks = 11<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18019 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 1<br>
Nov 9 15:01:57 WWW_64Bits ./opensips[1882]:
ERROR:rtpproxy:force_rtp_proxy_body: no available proxies<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
INFO:create_twinlistener: bind to the 18004 port succeeded<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]:
ERR:create_twinlistener: bind to the 18005 port failed, errno =
98: Address already in use<br>
Nov 9 15:01:57 WWW_64Bits rtpproxy[1774]: ERR:handle_command:
can't create listener</font></small><br>
<br>
Why are there 2 binds ? One should be enough (there is no video in
my INVITE request).<br>
<br>
Best regards,<br>
<br>
Sebastien<br>
<br>
Le 09/11/2011 12:12, Sebastien CRUAUX a écrit :
<blockquote cite="mid:4EBA603B.1070201@halys.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Razvan,<br>
<br>
I finally managed to get the rtpproxy logs (it only needed to be
launched with the -d flag), so I added a trace in the
create_twinlistener function in rtpp_command.c in order to see
what was the errno on the bind attempt. I get an errno 98 (Address
already in use) for all the UDP ports in my rtpproxy range (18000
- 18020) :<br>
<br>
<small><font face="Courier New, Courier, monospace">Nov 8
17:53:52 WWW_64Bits ./opensips[22671]: INFO :: (INVITE)
rtpproxy set 1<br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: node->rn_disabled = 1,
node->rn_recheck_ticks = 70, get_ticks = 72 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:rtpp_test: force = 0 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221>
found, support for it re-enabled <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 0 <br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
INFO:handle_command: new session <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:944821033294@192.168.1.206">944821033294@192.168.1.206</a>,
tag z9hG4bK74406739;1 requested, type strong<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18013 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18007 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18017 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18009 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18005 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18001 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18015 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:force_rtp_proxy_body: command sent to rtpproxy,
cp = E10 , err = 10 <br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18011 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:force_rtp_proxy_body: rtpproxy returned an
error, we disable the node <br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:create_twinlistener: bind to the 18003 port failed, errno
= 98: Address already in use<br>
Nov 8 17:53:52 WWW_64Bits rtpproxy[22611]:
ERR:handle_command: can't create listener<br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: node->rn_disabled = 1,
node->rn_recheck_ticks = 132, get_ticks = 72 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 1 <br>
Nov 8 17:53:52 WWW_64Bits ./opensips[22671]:
ERROR:rtpproxy:force_rtp_proxy_body: no available proxies</font></small><br>
<br>
However, when I run netstat none of these ports seems to be
used...<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 moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<a moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<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>
</pre>
</blockquote>
</body>
</html>