Hello,

do you also get error log messages that include "failed to send request with authentication"?

Which CRITICAL log appears when you call uac_req_send()? You pasted a couple of them in the initial email?

Cheers,
Daniel

On 05.10.23 17:32, Dr. Barabás Péter wrote:

Hello,

 

I used kamailio version 5.6.2. I refreshed to 5.7.2 today.

As I remember it was in kamailio long time ago therefore I could skip evroute route.

But this CRITICAL log appears always when I call uac_req_send().

I call it with settings:

$uac_req(auser) = $var(username);

$uac_req(apasswd) = $var(password);

 

Where username and password are retrived from web service before call.

In event_route I got first 401 after 200.

 

Peter

 

 

From: Daniel-Constantin Mierla <miconda@gmail.com>
Date: Thursday, 2023. October 5. 17:25
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Dr. Barabás Péter <dr.peter.barabas@gmail.com>
Subject: Re: [SR-Users] uac_req_send + evroute + crash

Hello,

On 05.10.23 16:34, Dr. Barabás Péter via sr-users wrote:

Hi All,

 

I use kamailio In front of Asterisk and kamailio needs to refresh registrations periodically towards Asterisk to ensure the availability of users from Asterisk side.

I use uac module and call uac_req_send() for sending REGISTER requests.

I set $uac_req(evroute)=1

 

The event_route[uac:reply] is called fine, but in kamailio logs I see the next lines:

 

CRITICAL: <core> [core/mem/q_malloc.c:519]: qm_free(): BUG: freeing already freed pointer (0x7f114995ada8), called from uac: uac_send.c: uac_send_tm_callback(860), first free uac: uac_send.c: uac_resend_tm_callback(732) - ignoring

 

After some time, kamailio has crashed.

 

CRITICAL: <core> [core/mem/q_malloc.c:519]: qm_free(): BUG: freeing already freed pointer (0x7f114995ada8), called from uac: uac_send.c: uac_send_tm_callback(860), first free uac: uac_send.c: uac_resend_tm_callback(732) – ignoring

 

CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 34

ALERT: <core> [main.c:774]: handle_sigs(): child process 1407950 exited by a signal 6

what version of Kamailio are you using? Is Asterisk challenging for authentication?

Does it happen every time or seldom?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy and Development Services
Kamailio Advanced Training - Online - Nov 14-16, 2023 -- asipto.com
-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy and Development Services
Kamailio Advanced Training - Online - Nov 14-16, 2023 -- asipto.com