<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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);" class="elementToProof">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I tried topoh and topology hiding is working well towards the external network but it does not restore the Via and Record-Route on the replies.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Maybe I miss something in the configuration, I attached a pcap file if you can help me.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
What I want is to restore all the Via and Record-Route headers from the incoming INVITE to the Session Progress returned back to the previous node.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Anthony<br>
</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> Henning Westerholt <hw@gilawa.com><br>
<b>Envoyé :</b> jeudi 1 septembre 2022 12:14<br>
<b>À :</b> Anthony Blandin <anthony.blandin@airnity.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Objet :</b> RE: How to hide Via and Record-Route header to external network and restore them to internal network?</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Segoe UI"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xxmsonormal, li.x_xxmsonormal, div.x_xxmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_E-MailFormatvorlage25
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Hello,</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">the topology hiding is applied to both sides, so the modules not care. You can control execution with parameters and also some event route, depending on the module and Kamailio version.</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Just note if you want the headers to really removed from the message, consider using topos with a SQL DB or redis.</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Cheers,</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Henning</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<p class="x_MsoNormal"><span lang="EN-GB" style="">-- </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Henning Westerholt – </span><span style=""><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style=""></span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Kamailio services – </span><span style=""><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="EN-GB" style=""></span></p>
</div>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin-left:35.4pt"><b><span lang="EN-GB">From:</span></b><span lang="EN-GB"> Anthony Blandin <anthony.blandin@airnity.com>
<br>
<b>Sent:</b> Thursday, September 1, 2022 11:42 AM<br>
<b>To:</b> Henning Westerholt <hw@gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Subject:</b> RE: How to hide Via and Record-Route header to external network and restore them to internal network?</span></p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span></p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Thanks Henning.
</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">I will try it.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">How topoh determines that it is a SIP message to be sent outside my network or not?</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Anthony</span></p>
</div>
<div class="x_MsoNormal" align="center" style="margin-left:35.4pt; text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin-left:35.4pt"><b><span style="color:black">De :</span></b><span style="color:black"> Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>><br>
<b>Envoyé :</b> jeudi 1 septembre 2022 11:16<br>
<b>À :</b> Anthony Blandin <<a href="mailto:anthony.blandin@airnity.com">anthony.blandin@airnity.com</a>>; Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>><br>
<b>Objet :</b> RE: How to hide Via and Record-Route header to external network and restore them to internal network?</span>
</p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
</div>
</div>
<div>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td width="0%" style="width:.7%; background:#A6A6A6; padding:5.25pt 1.5pt 5.25pt 1.5pt">
</td>
<td width="97%" style="width:97.64%; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="x_MsoNormal" style=""><span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif; color:#212121">Vous ne recevez pas souvent de courriers de la part de
<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>. <a href="https://aka.ms/LearnAboutSenderIdentification">
Découvrez pourquoi cela est important</a></span></p>
</div>
</td>
<td width="1%" style="width:1.66%; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 3.75pt">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="x_xmsonormal" style="margin-left:35.4pt">Hi Anthony,</p>
<p class="x_xmsonormal" style="margin-left:35.4pt"> </p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">the restore happens internally and in the configuration you are able to access the headers, this is transparent for you.</span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Just give it a try in your lab, you can easily see it on the network.</span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Cheers,</span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Henning</span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span></p>
<div>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">-- </span></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Henning Westerholt –
</span><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Kamailio services –
</span><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></p>
</div>
<p class="x_xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_xmsonormal" style="margin-left:70.8pt"><b>From:</b> Anthony Blandin <<a href="mailto:anthony.blandin@airnity.com">anthony.blandin@airnity.com</a>>
<br>
<b>Sent:</b> Thursday, September 1, 2022 11:08 AM<br>
<b>To:</b> Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>>; Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> RE: How to hide Via and Record-Route header to external network and restore them to internal network?</p>
</div>
</div>
<p class="x_xmsonormal" style="margin-left:70.8pt"> </p>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Hi Henning,</span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Yes, I looked to topoh to hide topology but I didn't find a way to restore back the Via and Record-Route headers when I get replies from the external network.</span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Regards,</span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Anthony</span></p>
</div>
<div style="margin-left:35.4pt">
<div class="x_MsoNormal" align="center" style="margin-left:35.4pt; text-align:center">
<hr size="2" width="98%" align="center">
</div>
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_xmsonormal" style="margin-left:70.8pt"><b><span style="color:black">De :</span></b><span style="color:black"> Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>><br>
<b>Envoyé :</b> jeudi 1 septembre 2022 11:01<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>><br>
<b>Cc :</b> Anthony Blandin <<a href="mailto:anthony.blandin@airnity.com">anthony.blandin@airnity.com</a>><br>
<b>Objet :</b> RE: How to hide Via and Record-Route header to external network and restore them to internal network?</span>
</p>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"> </p>
</div>
</div>
<div>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td width="0%" style="width:.7%; background:#A6A6A6; padding:5.25pt 1.5pt 5.25pt 1.5pt">
</td>
<td width="97%" style="width:97.64%; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 11.25pt">
<div>
<p class="x_xmsonormal" style=""><span style="font-size:9.0pt; font-family:"Segoe UI",sans-serif; color:#212121">Vous ne recevez pas souvent de courriers de la part de
<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>. <a href="https://aka.ms/LearnAboutSenderIdentification">
Découvrez pourquoi cela est important</a></span></p>
</div>
</td>
<td width="1%" style="width:1.66%; background:#EAEAEA; padding:5.25pt 3.75pt 5.25pt 3.75pt">
</td>
</tr>
</tbody>
</table>
<div>
<div>
<p class="x_xxmsonormal" style="margin-left:70.8pt">Hello,</p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"> </p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">already investigated the topology hiding modules (topos, topoh)? They might be not doing exactly what you are describing, but usually are used for this kind of scenarios.</span></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB"> </span></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">Cheers,</span></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB"> </span></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">Henning</span></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB"> </span></p>
<div>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">-- </span>
</p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">Henning Westerholt –
</span><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></p>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB">Kamailio services –
</span><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></p>
</div>
<p class="x_xxmsonormal" style="margin-left:70.8pt"><span lang="EN-GB"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_xxmsonormal" style="margin-left:106.2pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Anthony Blandin<br>
<b>Sent:</b> Thursday, September 1, 2022 10:58 AM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] How to hide Via and Record-Route header to external network and restore them to internal network?</p>
</div>
</div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"> </p>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">Hi Community,</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">I have set up a SBC with Kamailio.</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">I am testing voice call from external network to my network and voice call from my network to external network.</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">When I send SIP messages to external network, I want to hide Via and Record-Route headers but when I receive replies from the external network I want to restore
 these Via and Record-Route headers to my network.</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">How to store and restore these headers in Kamailio configuration ?</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">Could you help on this?</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">Thanks</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black">Anthony Blandin</span></p>
</div>
<div>
<p class="x_xxmsonormal" style="margin-left:106.2pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>