<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi guys,<br>
<br>
I just wanted to followup and post my resolution to this problem.<br>
<br>
I tried various configurations and setups with RTPProxy to get the
media routing properly through the 4.5.6.7 ip address with no success
at all.<br>
<br>
So, I packed RTPProxy away and installed MediaProxy.<br>
<br>
I added one statement:<br>
-----------------------<br>
if (is_method("INVITE") && !has_totag()) {<br>
engage_media_proxy();<br>
}<br>
----------------------<br>
and off it went... working perfectly.<br>
<br>
Installing MediProxy was a little tedious, not nearly as simple as
RTPProxy but it works.<br>
<br>
Install instructions and details I used from: <a
href="http://mediaproxy.ag-projects.com/">http://mediaproxy.ag-projects.com/</a><br>
<br>
Thanks for the help everyone.<br>
<br>
Much appreciated.<br>
Cheers,<br>
John<br>
<br>
<br>
TeleCube - John wrote:
<blockquote cite="mid:4C789840.7060200@telecube.com.au" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi Adam,<br>
<br>
Thanks, the fog is starting to lift now... :-)<br>
<br>
I'll make some changes and come back with results shortly.<br>
<br>
Cheers,<br>
John<br>
<br>
Adam Twardowski wrote:
<blockquote
cite="mid:AANLkTinOqWNYY51bi4900_a6NrMoJoZnZcCkJHVWxXG6@mail.gmail.com"
type="cite">
<div>John,</div>
<div><br>
</div>
The o= is the Origin IP, which doesn't really matter, the c= is the
connection IP, which is the important one. You probably want to use
force_rtp_proxy() to rewrite the sdp and make it go through the
rtpproxy, and in your asterisk SIP peer, you can either set the peer IP
to 4.5.6.7 and have your proxy re-write the RURI to 1.2.3.4 and relay
it along, or you could set outboundproxy=4.5.6.7 in sip.conf on your
sip peer and just have opensips relay it. You may also need to setup
an on-reply route to capture 180/183 messages with SDP and rewrite the
IP's in there too.
<div><br>
</div>
<div>--Adam<br>
<br>
<div class="gmail_quote">On Fri, Aug 27, 2010 at 10:45 PM, TeleCube
-
John <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:john@telecube.com.au">john@telecube.com.au</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hi Max,<br>
<br>
Thanks for your reply.<br>
<br>
I have rtpproxy running and I think it's all configured ok.<br>
<br>
I can use fix_nated_sdp() with flags and see the changes in the sdp
lines in the packets.<br>
<br>
What I am struggling with is just how to go about telling the asterisk
server and the outbound route that all traffic is to run through my
proxy<br>
<br>
I'm not sure what the purpose of the o= and c= lines are and at which
stage in the packet flow I need to re-write which lines.<br>
<br>
If anyone can offer any pointers that will be awesome.<br>
<br>
Kind regards,<br>
<font color="#888888">John</font>
<div>
<div class="h5"><br>
<br>
Max Mühlbronner wrote:
<blockquote type="cite">
<pre> Hello,
Yes, the opensips will rewrite the sdp like you said, so it will contain
the ip of the rtpproxy (or mediaproxy). It can be used to proxy the rtp
traffic to a specific destination.
But the rtpproxy does not necessarily have to be the same machine as
your Opensips. The rtpproxy is a different tool which will be enabled by
setting the relevant modparam settings and also calling the rtpproxy in
your routing-script.
<a moz-do-not-send="true"
href="http://voiprookie.blogspot.com/2009/04/rtpproxy-12x-installation.html"
target="_blank">http://voiprookie.blogspot.com/2009/04/rtpproxy-12x-installation.html</a>
maybe there are also other, better tutorials but this link seems to be a
good start for setting up rtpproxy with opensips.
BR
Max M.
Am 27.08.2010 15:36, schrieb TeleCube - John:
</pre>
<blockquote type="cite">
<pre>Hi,
I have a setup as follows:
1.2.3.4 - Outbound Route
4.5.6.7 - Opensips proxy
4.5.6.8 - Asterisk server
The outbound route will only allow any traffic, signaling and media, via
the 4.5.6.7 IP address. It cannot currently accept media from a
different ip than the signaling.
Currently the astx server sends media direct to the outbound route.
Signaling is fine but I need to force the media stream from the asterisk
server through the opensips proxy.
Am I correct in expecting that nathelper/rtpproxy can do this?
Is it simply a matter of re-writing the sdp detail that will tell the
asterisk server to route media through the opensips ip address?
Any examples will be greatly appreciated.
Thanks,
John
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org"
target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>