<div dir="ltr">Try to remove the public IP from your Asterisk Box, this will even provide additional security.<div>Then install RTPEngine, configure the RTP Engine accordingly, setup NAT to your Kamailio configuration and try.</div><div>the following URLs are very good info on how to integrate everything:</div><div><a href="http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/">http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/</a> </div><div><a href="https://blog.voipxswitch.com/2015/08/11/rtpengine-with-kamailio-as-load-balancer-and-ip-gateway/">https://blog.voipxswitch.com/2015/08/11/rtpengine-with-kamailio-as-load-balancer-and-ip-gateway/</a> </div><div><br></div><div>Hope this helps! <br></div><div> <br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(0,0,0);margin:0px;font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><b><span style="font-size:9pt;font-family:Arial,sans-serif"><br></span></b></p><div style="font-size:small"><div><div dir="ltr"><p style="color:rgb(0,0,0);margin:0px;font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><b><span style="font-size:9pt;font-family:Arial,sans-serif">Sérgio Charrua</span></b></p><p style="color:rgb(0,0,0);margin:0px;font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:red"><span style="color:rgb(0,0,0)"></span><span style="color:rgb(51,102,255)"><a href="http://www.voip.pt/" style="color:rgb(17,85,204)" target="_blank">www.voip.pt</a></span></span></b><span style="font-size:x-small"><span style="font-family:Arial,sans-serif;color:rgb(136,136,136)"><br></span><span style="font-family:Arial,sans-serif">Mobile: <span style="color:rgb(51,102,153)"><a href="callto:+351+91+104+12+66" style="color:rgb(51,102,153);text-decoration:none" target="_blank">+351 91 </a>631 11 44<br></span></span><span style="font-family:'Times New Roman',serif"></span></span></p><p style="color:rgb(0,0,0);margin:0px;font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><span style="font-size:x-small"><span style="font-family:Arial,sans-serif;color:rgb(187,187,187)"><span style="color:rgb(128,128,128)">Email : <strong><a href="mailto:sergio.charrua@voip.pt" style="color:rgb(17,85,204)" target="_blank">sergio.charrua@voip.pt</a></strong></span><br>Esta mensagem e quaisquer ficheiros anexos a ela são confidenciais e destinam-se a uso exclusivo da pessoa ou entidade a quem são dirigidos. Se, por lapso, recebeu este e-mail, não o deverá revelar, copiar ou distribuir a terceiros. É favor alertar de imediato o remetente e eliminar a mensagem juntamente com os documentos anexados.</span><span style="font-family:'Times New Roman',serif"></span></span></p><p style="color:rgb(0,0,0);margin:0px;font-size:11pt;font-family:Calibri,sans-serif;background-color:rgb(253,253,253)"><span style="font-size:x-small"> </span></p></div></div></div><div style="font-size:small"><br></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 8:06 PM hugues <<a href="mailto:huguesmax@gmail.com" target="_blank">huguesmax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello<br>
I'm trying to run Kamailio in front of an asterisk server due to security<br>
issues. Both servers have a public ip address. It works fine but the RTP<br>
voice traffic goes directly from the VOIP client to the asterisk server<br>
without going through the kamailio server. I want to shut down the asterisk<br>
server so that it only talks to the kamailio server.<br>
<br>
UA -> Kamailio public IP addr <-> Asterisk public ip addr<br>
<br>
How do I force RTP traffic to go through kamailio. Apparently I don't have<br>
NAT so I don't need rtpproxy.  But you need something that relays RTP<br>
traffic? <br>
If anyone has an idea I'll take it.<br>
Thank you for your help.<br>
Hugues.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html" rel="noreferrer" target="_blank">http://sip-router.1086192.n5.nabble.com/Users-f3.html</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>