-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kamailio-5.4.: Crashs from keepalive module during adding destination #2476
Comments
Hello, thanks for the report. You might be interested in this #2448 bug, it deals with (probably different) bugs of this particular module as well. |
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. |
I think you are right @miconda, and I think your solution is right too. |
Thanks everyone,So will there be a patch? or use define event_route[htable:mod-init] ? @NGSegovia |
Yeah, that will be patched. Just need some time to work on that @buzhaodi . |
@NGSegovia thanks for this,i will test in next week(because today is Friday in china:smile:),and report you. |
i have beet test it. it work's.thanks |
Description
I just update kamailio 5.2.1 to 5.4.1. then there are some crashs from keepalive module.
Troubleshooting
Reproduction
Debugging Data
Log Messages
SIP Traffic
Possible Solutions
Additional Information
kamailio -v
The text was updated successfully, but these errors were encountered: