<div dir="ltr">I found a mistake in the config.<div>Context:<br></div><div><div style="color:rgb(51,51,51);background-color:rgb(245,245,245);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(75,105,198)">if</span> (<span style="color:rgb(119,119,119)">!</span>proxy_authorize(<span style="color:rgb(68,140,39)">"$fd"</span><span style="color:rgb(119,119,119)">,</span> <span style="color:rgb(68,140,39)">"subscriber"</span>)) {</div><div>    xlog(<span style="color:rgb(68,140,39)">"L_INFO"</span><span style="color:rgb(119,119,119)">,</span><span style="color:rgb(68,140,39)">"proxy challenge received: ($ci)</span><span style="color:rgb(119,119,119)">\n</span><span style="color:rgb(68,140,39)">"</span>)<span style="color:rgb(119,119,119)">;</span></div><div>    proxy_challenge(<span style="color:rgb(68,140,39)">"$fd"</span><span style="color:rgb(119,119,119)">,</span> <span style="color:rgb(68,140,39)">"0"</span>)<span style="color:rgb(119,119,119)">;</span></div><div>    t_release()<span style="color:rgb(119,119,119)">;</span></div><div>    <span style="color:rgb(170,55,49);font-weight:bold">exit</span><span style="color:rgb(119,119,119)">;</span></div><div>}</div></div></div><div>Due to the deletion of the transaction, the client could not receive retransmissions. I removed <span style="background-color:rgb(245,245,245);color:rgb(51,51,51);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;white-space:pre">t_release()</span> and it worked as expected.<br></div><div><br></div><div>Thank you for your attention!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 8 февр. 2021 г. в 13:59, Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_-2152711229997370117WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">do you actually create a transaction before sending the 407, or using t_reply() to do it statefully?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">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" target="_blank">
https://www.kamailio.org/docs/modules/5.2.x/modules/auth.html#auth.p.force_stateless_reply</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a></span><span>
<span lang="EN-GB"><u></u><u></u></span></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<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 <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Retransmission of 407<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Isn't this the reason for sending retransmits?<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">First of all I checked the successful case (attached screenshot).<u></u><u></u></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:rgb(51,51,51);background:rgb(253,246,227)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210);background:rgb(253,246,227)">timewait</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51);background:rgb(253,246,227)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161);background:rgb(253,246,227)">milliseconds</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51);background:rgb(253,246,227)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152);background:rgb(253,246,227)">"4000"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51);background:rgb(253,246,227)">/></span> so
 that the UAS has time to send retransmits before the connection drops. In this part of scenario:<u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"100"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">/><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"180"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">/><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"183"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">/><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"200"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">rrs</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">optional</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">next</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"200ok"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">/><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">recv</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">response</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"407"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(147,161,161)">auth</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">=</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">"true"</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">/><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">send</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)"><![CDATA[</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">ACK <a>
sip:[service]@[remote_ip]:[remote_port</a>] SIP/2.0</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">[last_Via:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">[last_From:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">[last_To:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">[last_Call-ID:]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">[last_CSeq]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">Max-Forwards: 70</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">Content-Length: [len]</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(42,161,152)">]]></span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:rgb(253,246,227)">
<span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)"></</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(38,139,210)">send</span><span style="font-size:10.5pt;font-family:"Courier New";color:rgb(51,51,51)">><u></u><u></u></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.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">вс, 7 февр. 2021 г. в 19:31, Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>>:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;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><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>

</blockquote></div>