Hi Nicolas, you are right, even if the dependency is reported in the doc, kamailio shouldn't crash during the execution. I've created this PR to fix the issue: https://github.com/kamailio/kamailio/pull/3706. Thanks for reporting :)
Cheers, Federico On Tue, Jan 9, 2024 at 6:52 PM Chaigneau, Nicolas via sr-users < [email protected]> wrote: > Yes, I am (now) aware of that. :) > I was just proposing an improvement. It's bad to let Kamailio crash when > handling SIP requests, if we have an error in configuration. > > > -----Message d'origine----- > De : Fred Posner via sr-users <[email protected]> > Envoyé : mardi 9 janvier 2024 17:40 > À : Kamailio (SER) - Users Mailing List > Cc : Fred Posner > Objet : [SR-Users] Re: Crash of Kamailio when using module > http_async_client - function http_async_query, if module "tm.so" is not > loaded (Kamailio 5.7.3) > > ******This mail has been sent from an external source. Do not reply to it, > or open any links/attachments unless you are sure of the sender's > identity.****** > > The tm module is listed as a requirement to be loaded before the module: > > > https://www.kamailio.org/docs/modules/devel/modules/http_async_client.html#idm35 > > > Regards, > > Fred Posner > p: +1 (352) 664-3733 > > > > > On Jan 9, 2024, at 11:24 AM, Chaigneau, Nicolas via sr-users < > [email protected]> wrote: > > > > Hello, > > When using http_async_query function, provided by module > http_async_client: > > > > https://www.kamailio.org/docs/modules/devel/modules/http_async_client. > > html#http_async_client.f.http_async_query > > If module "tm.so" is not loaded, then immediately upon calling function > http_async_query, Kamailio crashes: > > 9(3807541) CRITICAL: <core> [core/pass_fd.c:281]: receive_fd(): EOF > > on 8 > > 0(3807527) ALERT: <core> [main.c:791]: handle_sigs(): child process > > 3807533 exited by a signal 11 > > 0(3807527) ALERT: <core> [main.c:795]: handle_sigs(): core was > > generated > > 0(3807527) INFO: <core> [main.c:818]: handle_sigs(): terminating due > > to SIGCHLD Of course, I now know that I must load the module "tm.so". > > But I think it would be better to catch the issue when Kamailio starts, > rather than crashing later on when trying to call http_async_query. > > What do you think ? > > Regards, > > Nicolas. > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, you > are not authorized to read, print, retain, copy, disseminate, distribute, > or use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of this > message. > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: >
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
