[OpenSIPS-Users] Sip trunk and mediaproxy
dan at ag-projects.com
Wed Jan 4 07:36:04 EST 2017
On 28 Dec 2016, at 13:37, Saioa Perurena wrote:
> We already have a communications infrastructure composed by 2 opensips
> servers in different domain with 1 mediaproxy each and interconnected by
> a TLS trunk. We managed to interconnect both SIP networks and it does
> work. ICE is also working so when sip clients are in the same network
> then the call goes point to point between caller and callee.
> The problem is when we want to use mediaproxy to relay media, let's say
> when sip clients are in different networks. Each opensips server passes
> its mediaproxy candidate to their clients. So opensips-1 passes
> mediaproxy-1 to client-1 and opensips-2 passes mediaproxy-2 to client-2.
> Then when the call is done client-1 will use mediaproxy-1 and client-2
> will use mediaproxy2 and therefore voice in going on diversion, each
> takes its own way.
> Question: how to deal with this?
Media relays can be chained without problems and automatically, unless they are behind NAT or if they have IP addresses in the private ranges (10.x.x.x, 192.168.x.x, ...)
However it is a bit wasteful to have more than one in the path. One way to deal with this is to only engage the media relay on one of the proxies (the originator or the destination) if the call goes between users on the same platform.
More information about the Users