<div dir="ltr"><div>Hi Mark,</div><div><br></div>You can solve this by using rtpengine module, it can rewrite SDP offer / answer and replace media addresses with correct IPs.<div><br></div><div> <a href="https://kamailio.org/docs/modules/5.0.x/modules/rtpengine.html#rtpengine.f.rtpengine_offer">https://kamailio.org/docs/modules/5.0.x/modules/rtpengine.html#rtpengine.f.rtpengine_offer</a><br></div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div><span style="font-size:12.8px">Arsen Semionov</span><br></div><div><a href="http://www.eurolan.info" target="_blank">www.eurolan.info</a></div><div>cell: +442035198881</div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jan 25, 2018 at 11:40 AM, Mark Boyce <span dir="ltr"><<a href="mailto:mark@darkorigins.com" target="_blank">mark@darkorigins.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I’m trying to create a relatively simple setup with Kamailio dual homed on public/private ip and asterisk on private ip only.  The idea is load balance / fail over asterisk boxes.<br>
<br>
Following the real-time tutorial I have clients registering with Kamailio, Kamailio registering on clients behalf with asterisk as well as invites going through.<br>
<br>
However what I’m seeing is that when an invite occurs asterisk offers media on its private ip, as it would. However this is making its way through Kamailio all the way to the client.<br>
<br>
After a bit of searching all I can find is people trying to get it working and failing, or putting asterisk on public IP.<br>
<br>
So questions - am I doing this completely the wrong way? Should Kamailio alter the media ip of asterisk on the way through or do I need to do that by hand?  Surely someone somewhere has a write up on this already :-)<br>
<br>
Thanks<br>
Mark<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div></div>