<div dir="auto">You always can realize all those things by your own by saving information in additional params in contact and ruri or locally in the db you are using with kamailio or in the hash.<div dir="auto">It's required to write more config aka codebut still a way. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 29 Jan 2020, 13:06 egemen ulus, <<a href="mailto:ulus_egemen@hotmail.com">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 dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Definitely you're right but remote site can't solve their problem, that's why I am trying to solve that.<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Btw, I ve achieved to hide the IP address of contact header thanks to topoh. But once kamailio got ack, it doesn't know where to send, that means it can't decode the key. (it is my opinion)<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
When I searched it, I saw that I should use topos & redis to store. But no module on Kamailio 4.3.x. it might be released on 5.x and above..
<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Is there any recommendation for decoding properly?<br>
<br>
</div>
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
<span id="m_-788615538718736154OutlookSignature">
<div dir="auto" style="direction:ltr;margin:0;padding:0;font-family:sans-serif;font-size:11pt;color:black">
Get <a href="https://aka.ms/ghei36" target="_blank" rel="noreferrer">Outlook for Android</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-788615538718736154divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users-bounces@lists.kamailio.org</a>> on behalf of Yuriy Gorlichenko <<a href="mailto:ovoshlook@gmail.com" target="_blank" rel="noreferrer">ovoshlook@gmail.com</a>><br>
<b>Sent:</b> Wednesday, January 29, 2020 12:25:03 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Re-write contact header</font>
<div> </div>
</div>
<div>
<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 dir="auto">
<div dir="ltr">On Wed, 29 Jan 2020, 09:52 egemen ulus, <<a href="mailto:ulus_egemen@hotmail.com" rel="noreferrer noreferrer" target="_blank">ulus_egemen@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
Hi everyone,</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
I have asterisk farm and kamailio which located front of asterisks farm as a proxy.</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
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 dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
How to rewrite my contact header as my kamailio (SBC) address ? </div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
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 dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
Please help! </div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
<br>
</div>
<div dir="auto" style="color:rgb(33,33,33);background-color:rgb(255,255,255);text-align:left">
Egemen </div>
<div id="m_-788615538718736154x_m_-8952056524737673405m_-4021647340761879394ms-outlook-mobile-signature">
<div><br>
</div>
Get <a href="https://aka.ms/ghei36" rel="noreferrer 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 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 noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</div>

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