<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Razvan,<br>
<br>
I added some INFO traces in the select_rtpp_node function in order
to get some clues about what happens (see enclosed file).<br>
Here is what is displayed in my /var/log/messages when an INVITE is
received :<br>
<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]: INFO :: (INVITE)
rtpproxy set 1<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 0<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: entering select_rtpp_node<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: rtpproxy node count = 1<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
INFO:rtpproxy:select_rtpp_node: result rtpp_test = 1<br>
Nov 7 15:21:38 WWW_64Bits ./opensips[19884]:
ERROR:rtpproxy:force_rtp_proxy_body: no available proxies<br>
<br>
This is really weird, if rtpp_test returns 1, it should mean that
the rtpproxy socket was found right ? Then why do we have an error
message saying that there are no available proxies ? I'm confused...<br>
<br>
Best regards,<br>
<br>
Sebastien<br>
<br>
Le 04/11/2011 15:23, Razvan Crainea a écrit :
<blockquote cite="mid:4EB3F55B.8030308@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Sebastien,<br>
<br>
I will try to replicate this scenario and see if I am getting the
same behaviour. I will get back to you later.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Răzvan Crainea
OpenSIPS Developer</pre>
<br>
On 11/04/2011 04:20 PM, Sebastien CRUAUX wrote:
<blockquote cite="mid:4EB3F4B5.5070301@halys.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I also tried to enter the rtpproxy_sock parameters and the set
IDs in the nh_sockets table and to load the rtpproxy sets from
the database but it did not work either :(<br>
<br>
Sebastien<br>
<br>
Le 04/11/2011 11:52, Sebastien CRUAUX a écrit :
<blockquote cite="mid:4EB3C402.1010502@halys.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Razvan,<br>
<br>
Yes I think I declared the rtpproxy sets correctly, unless
there is some new parameter in the new rtpproxy module that I
forgot :<br>
<br>
# ----- rtpproxy params -----<br>
modparam("rtpproxy", "rtpproxy_sock", "1 ==
udp:localhost:12221")<br>
modparam("rtpproxy", "rtpproxy_sock", "2 ==
udp:localhost:12222")<br>
<br>
Regards,<br>
<br>
Sebastien<br>
<br>
Le 04/11/2011 11:44, Razvan Crainea a écrit :
<blockquote cite="mid:4EB3C1F9.1020003@opensips.org"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi Sebastien,<br>
<br>
Are you sure that when you declare the RTPProxy sets you
allocate them the set identifiers (1 and 2)? Can you send us
the rtpproxy_sock parameters declaration?<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Răzvan Crainea
OpenSIPS Developer</pre>
<br>
On 11/04/2011 12:27 PM, Sebastien CRUAUX wrote:
<blockquote cite="mid:4EB3BE0D.9010505@halys.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
I am currently migrating my old Opensips 1.6.2 to the new
Opensips 1.7.0 but I am facing some issues with the
configuration of rtpproxy.<br>
The version of rtpproxy I am using is the commit
6b82ff914543d21ff9ddbb797b40a77516348308.<br>
<br>
When I start Opensips, the two sets of rtpproxies I
configured are detected :<br>
<small><font face="Courier New, Courier, monospace"><br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="INFO:rtpproxy:rtpp_test:">INFO:rtpproxy:rtpp_test:</a>
rtp proxy <udp:localhost:12221> found, support
for it enabled<br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="INFO:rtpproxy:rtpp_test:">INFO:rtpproxy:rtpp_test:</a>
rtp proxy <udp:localhost:12222> found, support
for it enabled</font></small><br>
<br>
However, when an INVITE is received by Opensips it seems
rtpproxy is not found, consequently the SDP body is not
rewritten :<br>
<br>
<small><font face="Courier New, Courier, monospace">INFO
:: (INVITE) rtpproxy set 1</font></small><br>
<small><font face="Courier New, Courier, monospace">ERROR:rtpproxy:force_rtp_proxy_body:
no available proxies</font></small><br>
<br>
More information about my configuration :<br>
- my Opensips/rtpproxy server has 2 IP addresses, one
opened on the internet, one internal used to communicate
with my VoIP/PSTN gateway<br>
- I have 2 sets of rtpproxies : the 1st one is in bridge
mode for VoIP to PSTN or PSTN to VoIP calls, the 2nd one
only listens on the external IP and is used for SIP to SIP
calls<br>
<br>
<small><font face="Courier New, Courier, monospace">
./rtpproxy -u seb -l 172.17.1.126 172.17.1.131 -s
udp:localhost 12221 -m 18000 -M 18020<br>
./rtpproxy -u seb -l 172.17.1.131 -s udp:localhost
12222 -m 18021 -M 18030</font><br>
<br>
</small>- below is the part of my opensips.cfg file which
handles the INVITE requests (I just replaced my public IP
address with xx.xx.xx.xx) :<br>
<br>
<small><font face="Courier New, Courier, monospace">
if (is_method("INVITE")) {<br>
if (registered("location","$fu")
&& registered("location")) { # if From
and To are SIP registered : we use rtpproxy 2
(external IP)<br>
setflag(22);<br>
xlog("INFO :: (INVITE)
rtpproxy set 2");<br>
}<br>
else
{
# otherwise, SIP to ISUP or ISUP to SIP call : we use
rtpproxy 1 (bridge mode)<br>
xlog("INFO :: (INVITE)
rtpproxy set 1");<br>
}<br>
if (has_body("application/sdp")) {<br>
if (isflagset(22)) {<br>
set_rtp_proxy_set("2");<br>
if
(rtpproxy_offer("","xx.xx.xx.xx")) {<br>
t_on_reply("1");<br>
}<br>
}<br>
else {<br>
set_rtp_proxy_set("1");<br>
if (dst_ip ==
172.17.1.131) { # my IP address
opened to the internet (external IP)<br>
if
(rtpproxy_offer("ei","xx.xx.xx.xx")) {<br>
t_on_reply("1");<br>
}<br>
}<br>
if (dst_ip ==
172.17.1.126) { # my internal IP
address<br>
if
(rtpproxy_offer("ie","xx.xx.xx.xx")) {<br>
t_on_reply("1");<br>
}<br>
}<br>
}<br>
<br>
}<br>
else {<br>
t_on_reply("2");<br>
}<br>
}</font></small><br>
<br>
<br>
Any idea ? I have been stuck on this issue for a few days,
this configuration worked fine with my previous versions
of Opensips and rtpproxy.<br>
<br>
Best Regards,<br>
<br>
Sebastien <br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<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>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<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>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<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>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<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>
</pre>
</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>