[OpenSIPS-Users] Media proxy basic setup

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Fri Oct 16 22:25:56 CEST 2009


On Friday 16 October 2009 18:51:12 Daniel Goepp wrote:
> Yes, I do realize that I'm breaking the rules...but that never stopped me
> from trying before.  And yes, RTPproxy has the same problem, which is why I
> decided to give media proxy a try to see if I could get it working, same
> problem though as you note.  I guess next I'm going to have to get in and
> hack up some code...would seem a straight forward fix though, just have two
> parameters in the config, one to offer and one to bind to.
>
> -dg

Just a question ... are you trying to use mediaproxy on a private IP, but to 
announce a public IP? ... that's your goal? .. if yes, it will NEVER run, 
mediaproxy/rtpproxy was designed to work on public IP's.
Try to image what will occurs on this situation:

UAC -> Proxy
		MP

With MP working on a private IP, let say ... 10.10.10.10 behing a NAT 
router ... let say 222.222.222.222 with the port range 10.000-20.000 
redirected to mediaproxy IP.
Now you setup mediaproxy to announce 222.222.222.222 as it's media-ip and let 
it bind to 10.10.10.10 (first of all, as you have seen that's not possible 
with current code)

Now a nat-fixing request cames from the proxy ... and mediaproxy decides to 
use 10000:10001 and you send out that on the SDP to your UAC's, so your UAC1 
send it's RTP to 222.222.222.222:10000 and your UAC2 should do the same but 
to 222.222.222.222:10001, how do you think that your NAT router would 
behalf ? ... wrongly on 99% of times, for sure.

-- 
Raúl Alexis Betancor Santana
Dimensión Virtual



More information about the Users mailing list