I found a mistake in the config.
Context:
if (!proxy_authorize("$fd", "subscriber")) {
xlog("L_INFO","proxy challenge received: ($ci)\n");
proxy_challenge("$fd", "0");
t_release();
exit;
}
Due to the deletion of the transaction, the client could not receive retransmissions. I removed t_release() and it worked as expected.

Thank you for your attention!

пн, 8 февр. 2021 г. в 13:59, Henning Westerholt <hw@skalatan.de>:

Hello,

 

do you actually create a transaction before sending the 407, or using t_reply() to do it statefully?

 

Check also if you not deactivated it on the module level, e.g. https://www.kamailio.org/docs/modules/5.2.x/modules/auth.html#auth.p.force_stateless_reply

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Marat Gareev
Sent: Sunday, February 7, 2021 10:02 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] Retransmission of 407

 

Isn't this the reason for sending retransmits?

 

First of all I checked the successful case (attached screenshot).

Then I replaced sending ACK with <timewait milliseconds="4000"/> so that the UAS has time to send retransmits before the connection drops. In this part of scenario:

<recv response="100" optional="true"/>

<recv response="180" optional="true"/>

<recv response="183" optional="true"/>

<recv response="200" rrs="true" optional="true" next="200ok"/>

<recv response="407" auth="true"/>

<send>

<![CDATA[

[last_Via:]

[last_From:]

[last_To:]

[last_Call-ID:]

[last_CSeq]

Max-Forwards: 70

Content-Length: [len]

]]>

</send>

And I expect the Kamailio to send a retransmit, but it doesn't.

 

вс, 7 февр. 2021 г. в 19:31, Alex Balashov <abalashov@evaristesys.com>:

That sounds like the client does not receive the 407.


Sent from mobile, with due apologies for brevity and errors.

> On Feb 7, 2021, at 11:12 AM, Marat Gareev <maratkin94@gmail.com> wrote:
>
> 
> Hello,
>
> 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.
> Is this the expected behavior?
> * UAC -- SIPp, UAS -- Kamailio.
>
> Can the Kamailio be configured to send 407 code retransmissions?
>
> Thanks!
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users