Thanks for an answer? but what I want to do (already done :)) is totally opposite to your solution.
The main thing I wanted, so I don't need to open 5060/UDP on FreeSwitch for (entire world), BUT at the same time АЫ should work with RTP traffic directly, no matter is it NATed UAC or not.
This kind of "NAT traversal" (call it RTP NAT traversal :)) and UAC registrar are on Kami side. FS is pure softswitch here.
What I did to perform this is replace rtpproxy_manage("co");
with
fix_nated_sdp("10");
Now it works exactly as I wanted. Thanks for advice.
04.01.2018 12:42, Daniel-Constantin Mierla пишет:
Hello,
On 25.12.17 10:16, Yu Boot wrote:
Hello. I want to implement the following scheme:
Kami takes inbound call, replces SPD for correct NAT trversal and forward that call to FS. Kami should NOT be in RTP stream. Is it possible? Any advices?
Kamailio should not touch the SDP if it is not going to do the RTP relaying with rtpengine or rtpproxy. Just leave it untouch, freeswitch will handle what is needed in this regard.
What you have to do is to fix the signaling for nat traversal, which may mean to use path module for handling registrations as well as doing set_contact_alias() as well as handle_ruri_alias(), so you can route requests within dialog.
Cheers, Daniel