<p></p>
<p>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 (<a href="http://kamailio.org/wiki/cookbooks/5.4.x/core#real-time_parameters" rel="nofollow">http://kamailio.org/wiki/cookbooks/5.4.x/core#real-time_parameters</a>).</p>
<p>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 <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/NGSegovia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NGSegovia">@NGSegovia</a> can check if my assumptions are correct, he seems to be familiar with the module</p>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2476#issuecomment-692084778">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJCEEJ36O5PV2JL2STSFYRFBANCNFSM4RLLVEIQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOLW5L3LLZU7ATQVVLSFYRFBA5CNFSM4RLLVEI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFAGAKQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2476#issuecomment-692084778",
"url": "https://github.com/kamailio/kamailio/issues/2476#issuecomment-692084778",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>