[SR-Users] ACK Cseq incrases after 404 on uac_auth()

Yuriy Gorlichenko ovoshlook at gmail.com
Mon Jul 16 21:13:00 CEST 2018


Hi
thx for answer
But still the same
I tried to use thids flag in case if answer not 401 or 407 in failure route
but ACK still incrased by kamailio.
route[HANDLE_FAILURE] {

if (t_check_status("401|407")) {

        uac_auth();
        t_on_failure("HANDLE_FAILURE");
        t_relay();
        exit;

    }
    else {

        if (t_check_status("40[02-689]|4[1-9][0-9]|5[0-9][0-9]") ||
(t_branch_timeout() && !t_branch_replied())) {

            msg_iflag_reset("UAC_AUTH");
            <getting VM addr here>
            t_relay();
            exit;
        }
}


2018-07-16 14:42 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com>:

> Hello,
>
> when you re-route to a new destination, can you try resetting the internal
> flag with:
>
> msg_iflag_reset("UAC_AUTH");
>
> Cheers,
> Daniel
>
> On 16.07.18 10:31, Yuriy Gorlichenko wrote:
>
> Hi. I found some additional scenario when kamailio works incorrect with
> ACK Cseq after succesfull auth with uac_auth but unsuccesfull call:
>
> 1.Caller via kamailio as proxy (Cseq 1)
> 2.Kamailio resends call to provider with Auth method (Cseq 1)
> 3. Provider answers 401/407 (Cseq 1)
> 4. Kamailio inrases Cseq and sends invite with credentians (dialog
> track_cseq_updates = 1, uac_auth()) (Cseq 2)
> 5. Provider says - 404. not found (Cseq 2)
> 6. Kamailio resends INVITE to another server (lets say VM). It contans not
> tracked yet Cseq (Cseq 1)
> 7. VM server says 200 (Cseq 1)
> 8. Kamailio resends 200 to the caller (Сseq 1)
> 9. Caller says ACK (Cseq 1)
> 10. Kamailio incrases CSeq of ACK and resends t VM server (Сseq 2)
>
> So in this case kamialio tries to track Sceq because thining that this ACK
> belongs to the dialog that was made to the auth server
>
> So as I see here is a misunderstanding on the dialog module
> Any suggestions how to avoid it or exclude resent INVITE from the dialog
> module tracking?
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180716/86298600/attachment.html>


More information about the sr-users mailing list