You need to configure rtpproxy in multihomed mode (bridge mode), so it does external/internal relay of rtp. Then opensips will instruct rtpproxy to do it. 

On freeswitch just configure the private IPs.

That’s really all there is to it. If it’s configured correctly, you should see in the SDPs the following:

- Client—[INVITE]—>opensips: the client will send its public IP (or maybe its private, but if opensips is doing NAT translation, shouldnt matter, but I suggest testing with a client which sends its public IP)

- Opensips—>[INVITE]—>freeswitch: opensips should send rtpproxy’s private IP

The on the 200 OKs:

- Freeswitch—[200 OK]—>opesnsips: fs should send its private IP

- Opensips—[200 OK]—>client: opensips should send rtpproxy’s public IP address.

If you don’t see exactly this, something mis-configured somewhere.

Hope this help.

On Sat, 5 Jun 2021 at 15:41, HS <bullehs@gmail.com> wrote:
David.

Thanks a lot for taking the time to explain. I think in my hurry to post I forgot to add details.

Instance 1
Opensips + RTPProxy (Registrar + routing).
Instance 2
Freeswitch (IVR/Conferencing/VoiceMail etc.)

Does that setup make sense? What would be the variables (bind_server_ip, external_rtp_ip, external_sip_ip) be please?

Thanks again.
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
--
Regards,

David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337