From hw@gilawa.com Mon Oct 31 16:14:04 2022 From: Henning Westerholt To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] consume_credentials not working on PRACK? Date: Mon, 31 Oct 2022 15:13:57 +0000 Message-ID: In-Reply-To: <20221031155021.6777cf52@go.imp.ch> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1164889763==" --===============1164889763== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, this was actually changed some years ago to be like this: commit 2a77ed2bdc9341ecf7d7200e420a1f49e4e9b6ab Author: Daniel-Constantin Mierla 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 credenti= als 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 --=20 Henning Westerholt =E2=80=93 https://skalatan.de/blog/ Kamailio services =E2=80=93 https://gilawa.com -----Original Message----- From: Benoit Panizzon =20 Sent: Monday, October 31, 2022 3:50 PM To: Henning Westerholt Cc: Kamailio (SER) - Users Mailing List 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 therefor= e 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]