<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 01.05.18 20:48, Nicolas Breuer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:HE1PR04MB1162F930493DD834FA9DB51489810@HE1PR04MB1162.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:#002060;}
span.quote
{mso-style-name:quote;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%">Hello
The list,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US">What do you think of the purpose of this
function
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US">Nat_Uac_test(‘16’)<o:p></o:p></span></b></p>
<p class="MsoNormal"><em><span
style="font-family:"Calibri",sans-serif;color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US">16</span></em><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"> - Test if the source port is different from
the port in the <span class="quote">
“Via”</span> header<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US">Correct me if I’m wrong but compare the source
port of the message with the source port of the via
<br>
is only valid on the initial invite ?</span></p>
</div>
</blockquote>
It is valid for all requests, not only for initial INVITE.<br>
<br>
<blockquote type="cite"
cite="mid:HE1PR04MB1162F930493DD834FA9DB51489810@HE1PR04MB1162.eurprd04.prod.outlook.com">
<div class="WordSection1">
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US">All subsequent messages or replies don’t list
the UAC anywhere in the via.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#203864;mso-style-textfill-fill-color:#203864;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
The test should not be done for replies, iirc, in the default config
is done only for requests.<br>
<br>
Requests have always the Via of the initial sender, including the
subsequent requests within a dialog.<br>
<br>
Cheers,<br>
Daniel<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>