Mediaproxy and SDP-mangle

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mediaproxy and SDP-mangle

Cosimo Fadda
Hi everybody,
I have a sever inside a DMZ with a private IP address (10.20.30.40)
reachable from the outside with a Public IP (90.80.70.60) Natted 1:1 to
the private IP.
I want to setup mediaproxy on this server, but since I cannot configure
it with the public IP, in the resulting SDP messages the Private IP will
appear .
Can I use the function:

sdp_mangle_ip("10.20.30.40","90.80.70.60");

to correct this behaviour?
Or there is another way to run mediaproxy in this scenario?
Thanks in advance,

Cosimo


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy and SDP-mangle

Klaus Darilion
I think you can not do this with mediaproxy. But rtpproxy can do this as
parameter in the force_rtp_proxy call.

regards
klaus

Cosimo Fadda schrieb:

> Hi everybody,
> I have a sever inside a DMZ with a private IP address (10.20.30.40)
> reachable from the outside with a Public IP (90.80.70.60) Natted 1:1 to
> the private IP.
> I want to setup mediaproxy on this server, but since I cannot configure
> it with the public IP, in the resulting SDP messages the Private IP will
> appear .
> Can I use the function:
>
> sdp_mangle_ip("10.20.30.40","90.80.70.60");
>
> to correct this behaviour?
> Or there is another way to run mediaproxy in this scenario?
> Thanks in advance,
>
> Cosimo
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy and SDP-mangle

Dan Pascu
In reply to this post by Cosimo Fadda
On Monday 17 November 2008, Cosimo Fadda wrote:

> Hi everybody,
> I have a sever inside a DMZ with a private IP address (10.20.30.40)
> reachable from the outside with a Public IP (90.80.70.60) Natted 1:1 to
> the private IP.
> I want to setup mediaproxy on this server, but since I cannot configure
> it with the public IP, in the resulting SDP messages the Private IP
> will appear .
> Can I use the function:
>
> sdp_mangle_ip("10.20.30.40","90.80.70.60");

This won't work, as it creates 2 lump changes on the same region of the
message and they won't be applied correctly (you will get both IPs
concatenated if you do that).

>
> to correct this behaviour?
> Or there is another way to run mediaproxy in this scenario?

Not ATM, but it's not difficult to add it.

--
Dan

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy and SDP-mangle

Cosimo Fadda
In reply to this post by Klaus Darilion
Thank you Klaus
I'll try rtpproxy,
Regards,

Cosimo

Klaus Darilion ha scritto:

> I think you can not do this with mediaproxy. But rtpproxy can do this
> as parameter in the force_rtp_proxy call.
>
> regards
> klaus
>
> Cosimo Fadda schrieb:
>> Hi everybody,
>> I have a sever inside a DMZ with a private IP address (10.20.30.40)
>> reachable from the outside with a Public IP (90.80.70.60) Natted 1:1
>> to the private IP.
>> I want to setup mediaproxy on this server, but since I cannot
>> configure it with the public IP, in the resulting SDP messages the
>> Private IP will appear .
>> Can I use the function:
>>
>> sdp_mangle_ip("10.20.30.40","90.80.70.60");
>>
>> to correct this behaviour?
>> Or there is another way to run mediaproxy in this scenario?
>> Thanks in advance,
>>
>> Cosimo
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy and SDP-mangle

Cosimo Fadda
In reply to this post by Dan Pascu
Dan Pascu ha scritto:

> On Monday 17 November 2008, Cosimo Fadda wrote:
>  
>> Hi everybody,
>> I have a sever inside a DMZ with a private IP address (10.20.30.40)
>> reachable from the outside with a Public IP (90.80.70.60) Natted 1:1 to
>> the private IP.
>> I want to setup mediaproxy on this server, but since I cannot configure
>> it with the public IP, in the resulting SDP messages the Private IP
>> will appear .
>> Can I use the function:
>>
>> sdp_mangle_ip("10.20.30.40","90.80.70.60");
>>    
>
> This won't work, as it creates 2 lump changes on the same region of the
> message and they won't be applied correctly (you will get both IPs
> concatenated if you do that).
>
>  
>> to correct this behaviour?
>> Or there is another way to run mediaproxy in this scenario?
>>    
>
> Not ATM, but it's not difficult to add it.
>
>  
You mean adding the correct IP in th e SDP body or making some changes
to mediaproxy?

Thanks in advance,

Cosimo

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Mediaproxy and SDP-mangle

Dan Pascu
On Tuesday 18 November 2008, Cosimo Fadda wrote:

> >> Can I use the function:
> >>
> >> sdp_mangle_ip("10.20.30.40","90.80.70.60");
> >
> > This won't work, as it creates 2 lump changes on the same region of
> > the message and they won't be applied correctly (you will get both
> > IPs concatenated if you do that).
> >
> >> to correct this behaviour?
> >> Or there is another way to run mediaproxy in this scenario?
> >
> > Not ATM, but it's not difficult to add it.
>
> You mean adding the correct IP in th e SDP body or making some changes
> to mediaproxy?

I meant making changes to mediaproxy.

--
Dan

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users