[OpenSIPS-Users] Mediaproxy configuration

John Quick john.quick at smartvox.co.uk
Thu Jan 21 09:40:18 EST 2021


Mark,

I recommend using rtpproxy (or possibly rtpengine) rather than mediaproxy
for your situation.
You need the address in the SDP to be the public IP 4x.xxx.xxx.xxx when it
is sending packets to the UAC but you need it to use its LAN address when
sending to the Asterisk server.
This is what bridge mode (or bridging mode) is used for, although the last
time I built a solution like this I didn't use bridge mode and instead
passed the relevant IP address as an argument when calling the rtpproxy
activation functions. Unfortunately, the latter approach means your
opensips.cfg script will need to be much more complicated.

I suspect your problem when using mediaproxy and advertised_ip =
4x.xxx.xxx.xxx is that it will pass that address to Asterisk in the SDP. In
which case, you might be able to get audio if you look at the network route
Asterisk would use to reach/connect to 4x.xxx.xxx.xxx and make sure the
mediaproxy relay is reachable. However, that does not sound like a good
solution to me - much better if Asterisk talks to the relay directly over
the LAN.

John Quick
Smartvox Limited
Web: www.smartvox.co.uk





More information about the Users mailing list