<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
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 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 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>