[SR-Users] consume_credentials not working on PRACK?

Henning Westerholt hw at gilawa.com
Mon Oct 31 16:13:57 CET 2022


Hello,

this was actually changed some years ago to be like this:


commit 2a77ed2bdc9341ecf7d7200e420a1f49e4e9b6ab
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sun Apr 14 10:11:29 2013 +0200

    auth: skip processing of PRACK in consume_credentials()

The issue probably was that the module logs an error if there are no credentials in the message.

This could be improved e.g. by a pull-request. For now you could just use the remove_hf(..) function.

Cheers,

Henning

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

-----Original Message-----
From: Benoit Panizzon <benoit.panizzon at imp.ch> 
Sent: Monday, October 31, 2022 3:50 PM
To: Henning Westerholt <hw at gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] consume_credentials not working on PRACK?

Hi Henning

> Maybe the PRACK is not a new request, but an in-dialog request and therefore is not handled from the code quoted below.

It is handled:

                if(!is_method("REGISTER|PUBLISH")) {
                        consume_credentials();
                        xlog("L_INFO", "$cfg(route): $rm creds: Mmmmmmh!\n");
                }

Log:

[...] 3 PRACK]<script>: AUTH: Authentication successful!
[...] 3 PRACK]<script>: AUTH: PRACK creds: Mmmmmmh!

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________


More information about the sr-users mailing list