<div dir="auto"><div>It is wrong if your remote party ignores record-route. If it does not support work with RR/Route headers it at least should interrupt transaction on the first reply that contains RR. </div><div dir="auto"><br></div><div dir="auto">However There are a couple of ways to make kamailio work as SBC: </div><div dir="auto">- topos module</div><div dir="auto">- Rewrite contact header manually ( by removing old and inserting new one)</div><div dir="auto"> </div><div dir="auto">NAT helper functions will not help you as they are check source address of the message and fix contact based on this part. So it will not Rewrite Contact address on SBC address. It will Rewrite contact if it does not match with the source address of the message. <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, 29 Jan 2020, 09:52 egemen ulus, <<a href="mailto:ulus_egemen@hotmail.com" target="_blank" rel="noreferrer">ulus_egemen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Hi everyone,</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
I have asterisk farm and kamailio which located front of asterisks farm as a proxy.</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
When someone send a invite from outside to my kamailio (without record route), i forward it to my Asterisk farm. Then My one of Asterisk reply it as 200 ok. Then my kamailio forward this 200 ok to remote side with record route. But in my 200 ok message, contact
 header contains my Asterisk IP address. That is why remote side tries to send ACK to Asterisk.</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
How to rewrite my contact header as my kamailio (SBC) address ? </div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Actually I tried fixed nated contact and advertise ip but I couldn't make it worked. I am really new on that. Kamailio cfg file is attached.</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Please help! </div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
<br>
</div>
<div style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left" dir="auto">
Egemen </div>
<div id="m_-8952056524737673405m_-4021647340761879394ms-outlook-mobile-signature">
<div><br>
</div>
Get <a href="https://aka.ms/ghei36" rel="noreferrer noreferrer" target="_blank">Outlook for Android</a></div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</div></div>