<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I finally made it work.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i only needed to remove contact_host param  so that the Contact headers for Caller and Callee are taken from Record-Route.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> sr-users <sr-users-bounces@lists.kamailio.org> de la part de Marrold <kamailio@marrold.co.uk><br>
<b>Envoyé :</b> vendredi 18 mars 2022 10:42<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Objet :</b> Re: [SR-Users] help to configure topos module configuration</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
I recently looked into this and I don't believe it's possible.<br>
<br>
</div>
As a work around I used split DNS and an FQDN in the contact.<br>
<br>
</div>
<div>Thanks</div>
<div>Matthew<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Mar 18, 2022 at 8:44 AM Patrick Karton <<a href="mailto:patrickarton@hotmail.com">patrickarton@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>
<div><br>
</div>
<div>Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee</div>
<div><br>
</div>
<div><br>
</div>
<div>I have this set up of kamailio with 2 interfaces.</div>
<div><br>
</div>
<div>i use topos module for topology hiding and what i want to do is to </div>
<div>send  external_IP in Contact Header of request relayed to Callee and internal_IP</div>
<div>in Contact Header of response relayed to Caller. </div>
<div><br>
</div>
<div>i noticed that : </div>
<div>when i use topos module with contact_mode to 0 </div>
<div>all Record-Route and Caller Via Header are removed and thats great.</div>
<div>but i dont find way to put 2 different  ip addresses in Request and Response Contact Header?</div>
<div><br>
</div>
<div>when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore removed thats bad for
</div>
<div>topology hiding. And its seems we can not use $xavu(_tps_=>contact_host)  parameter of module
</div>
<div>to put 2 different  ip addresses in Request and Response Contact Header.</div>
<div><br>
</div>
<div><br>
</div>
<div>What i want is : </div>
<div><br>
</div>
<div>- remove all Record-Route and Caller Via Header for request like when contact_mode to 0</div>
<div><br>
</div>
<div>- and put 2 different  ip addresses in Request and Response Contact Header</div>
<div><br>
</div>
<div>is it possible to achieve it ? </div>
<div><br>
</div>
Thanks.<br>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<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>
</div>
</body>
</html>