[sr-dev] [kamailio/kamailio] Kamailio-5.4.: Crashs from keepalive module during adding destination (#2476)

Daniel-Constantin Mierla notifications at github.com
Mon Sep 14 16:21:04 CEST 2020


This looks like adding the destination into timer list before the timer process has been initialized. Seems to happen in the modparam function callback and likely the timer is created after config parsing to get the values for real-time parameters (http://kamailio.org/wiki/cookbooks/5.4.x/core#real-time_parameters).

The approach should be to create the list of the items via the modparam callback and then add them to the timer in mod_init. This has to be done in the c code. Maybe @NGSegovia can check if my assumptions are correct, he seems to be familiar with the module

An workaround for now is to load htable module, define event_route[htable:mod-init] and there add the destinations for keepalive with the function.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2476#issuecomment-692084778
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200914/87a21b9c/attachment.htm>


More information about the sr-dev mailing list