<div dir="ltr"><div>Hi,</div><div>I'm using kamailio 5.3 & rtpengine ( both kamailio and rtpengine resides on public IP on same machine)</div><div>am using below logic to handle clients behind NAT</div><div><br></div><div>                if(nat_uac_test("8")){<br>                        rtpengine_manage("SIP-source-address replace-origin replace-session-connection ");<br>                }else{<br>                        rtpengine_manage("trust-address replace-origin replace-session-connection ");<br>                }<br></div><div><br></div><div>I don't want all the rtp packet to go over the server, i just want to make it use the rtpengine just in case it is needed.</div><div>but am not sure how this can be done using kamailio,</div><div>from the client side i'll try to use STUN, but i understand STUN doesn't work all the time ( ~90% of the cases it will work)</div><div><br></div><div>can anyone help me with this ? </div><div><br></div><div>another question - if one client works with STUN and the other is behind NAT how this should be handled?</div><div><br></div><div>Cheers</div></div>