<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Anthony,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">the restore happens internally and in the configuration you are able to access the headers, this is transparent for you.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Just give it a try in your lab, you can easily see it on the network.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="mso-fareast-language:EN-US"><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="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Kamailio services –
</span><span style="mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="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?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:black">Hi Henning,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:black">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt;color:black">Anthony<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="margin-left:35.4pt;text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="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>
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<table class="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="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<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><o:p></o:p></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="xmsonormal" style="margin-left:35.4pt">Hello,<o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"> <o:p></o:p></p>
<p class="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><o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span><o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Cheers,</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span><o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">Henning</span><o:p></o:p></p>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span><o:p></o:p></p>
<div>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB">-- </span><o:p></o:p></p>
<p class="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><o:p></o:p></p>
<p class="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><o:p></o:p></p>
</div>
<p class="xmsonormal" style="margin-left:35.4pt"><span lang="EN-GB"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="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?<o:p></o:p></p>
</div>
</div>
<p class="xmsonormal" style="margin-left:70.8pt"> <o:p></o:p></p>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black">Hi Community,</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black">I have set up a SBC with Kamailio.</span><o:p></o:p></p>
</div>
<div>
<p class="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><o:p></o:p></p>
</div>
<div>
<p class="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><o:p></o:p></p>
</div>
<div>
<p class="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><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black">Could you help on this?</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black">Thanks</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black">Anthony Blandin</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;color:black"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>