<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=utf-8">
<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;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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 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">Hello,<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">do you actually create a transaction before sending the 407, or using t_reply() to do it statefully?<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">Check also if you not deactivated it on the module level, e.g.
<a href="https://www.kamailio.org/docs/modules/5.2.x/modules/auth.html#auth.p.force_stateless_reply">
https://www.kamailio.org/docs/modules/5.2.x/modules/auth.html#auth.p.force_stateless_reply</a><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>
<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 style="mso-fareast-language:EN-US">
<span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<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> sr-users <sr-users-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Marat Gareev<br>
<b>Sent:</b> Sunday, February 7, 2021 10:02 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Subject:</b> Re: [SR-Users] Retransmission of 407<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Isn't this the reason for sending retransmits?<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">First of all I checked the successful case (attached screenshot).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Then I replaced sending ACK with <span style="font-size:10.5pt;font-family:"Courier New";color:#333333;background:#FDF6E3"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2;background:#FDF6E3">timewait</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333;background:#FDF6E3">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1;background:#FDF6E3">milliseconds</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333;background:#FDF6E3">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198;background:#FDF6E3">"4000"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333;background:#FDF6E3">/></span> so
that the UAS has time to send retransmits before the connection drops. In this part of scenario:<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"100"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"180"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"183"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"200"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">rrs</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">next</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"200ok"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"407"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:#93A1A1">auth</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">/><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">send</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198"><![CDATA[</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">ACK <a href="sip:[service]@[remote_ip]:[remote_port">
sip:[service]@[remote_ip]:[remote_port</a>] SIP/2.0</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">[last_Via:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">[last_From:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">[last_To:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">[last_Call-ID:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">[last_CSeq]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">Max-Forwards: 70</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">Content-Length: [len]</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#2AA198">]]></span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#FDF6E3">
<span style="font-size:10.5pt;font-family:"Courier New";color:#333333"></</span><span style="font-size:10.5pt;font-family:"Courier New";color:#268BD2">send</span><span style="font-size:10.5pt;font-family:"Courier New";color:#333333">><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">And I expect the Kamailio to send a retransmit, but it doesn't.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">вс, 7 февр. 2021 г. в 19:31, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>>:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-left:35.4pt">That sounds like the client does not receive the 407.<br>
<br>
—<br>
Sent from mobile, with due apologies for brevity and errors.<br>
<br>
> On Feb 7, 2021, at 11:12 AM, Marat Gareev <<a href="mailto:maratkin94@gmail.com" target="_blank">maratkin94@gmail.com</a>> wrote:<br>
> <br>
> <br>
> Hello,<br>
> <br>
> UAC sends INVITE to UAS, authorization procedure is required, therefore UAS responds with an 407 error code. At this point, the client does not respond with ACK, but the server does not send retransmits.<br>
> Is this the expected behavior?<br>
> * UAC -- SIPp, UAS -- Kamailio.<br>
> <br>
> Can the Kamailio be configured to send 407 code retransmissions?<br>
> <br>
> Thanks!<br>
> _______________________________________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>