<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">
Thanks Henning. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I will try it.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
How topoh determines that it is a SIP message to be sent outside my network or not?</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 11:16<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}
span.x_E-MailFormatvorlage23
        {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">
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="left" style="border:0; display:table; width:100%; table-layout:fixed; border-collapse:seperate; float:none">
<tbody>
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px; background-color:#A6A6A6">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" color="#212121" style="width:100%; background-color:#EAEAEA; padding:7px 5px 7px 15px; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px; font-weight:normal; color:#212121; text-align:left; word-wrap:break-word">
<div>Vous ne recevez pas souvent de courriers de la part de hw@gilawa.com. <a href="https://aka.ms/LearnAboutSenderIdentification">
Découvrez pourquoi cela est important</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" color="#212121" style="width:75px; background-color:#EAEAEA; padding:7px 5px 7px 5px; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif; font-size:12px; font-weight:normal; color:#212121; text-align:left; word-wrap:break-word">
</td>
</tr>
</tbody>
</table>
<div>
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Hi Anthony,</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">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_MsoNormal"><span lang="EN-GB" style="">Just give it a try in your lab, you can easily see it on the network.</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>From:</b> Anthony Blandin <anthony.blandin@airnity.com>
<br>
<b>Sent:</b> Thursday, September 1, 2022 11:08 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?</p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Hi Henning,</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">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_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Regards,</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: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_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">Hello,</p>
<p class="x_xmsonormal" style="margin-left:35.4pt"> </p>
<p class="x_xmsonormal" style="margin-left:35.4pt"><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_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> 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_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 Community,</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">I have set up a SBC with Kamailio.</span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><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_xmsonormal" style="margin-left:70.8pt"><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_xmsonormal" style="margin-left:70.8pt"><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_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Could you help on this?</span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt; color:black">Thanks</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 Blandin</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>
</div>
</div>
</div>
</div>
</div>
</body>
</html>