Hello,
check the docs of the module, there is a modparam to set the timer
interval, which by default is 20 secods.
Then, to troubleshoot, run with debug=3 and watch the log messages for
hints of what happens. Also, dump the htable via rpc to see its content.
Cheers,
Daniel
On 21.11.22 08:50, Bernd Krueger-Knauber wrote:
Hi members,
I run into a problemm with htable.
For user push notifications I need a loop.
So I did the following for a first test:
modparam("htable", "htable",
"user=>size=3;autoexpire=5")
...
event_route[htable:mod-init] {
xinfo("htable init");
$sht(user=>testkey) = "testvalue";
}
event_route[htable:expired:user] {
xinfo("Record expired $shtrecord(key) => $shtrecord(value)");
$sht(user=>$shtrecord(key)) = $shtrecord(value);
}
I see the htable init, and I reach Record expired, but only once.
The 'new' entry
$sht(user=>$shtrecord(key)) = $shtrecord(value);
seams not to be re-added, because I never reach the expired event again.
I expected to see cyclic expired events.
Also strange:
expire is set to 5 seconds I get:
Nov 21 08:34:50 xxx /usr/sbin/kamailio[254662]: INFO: <script>: htable
init
...
Nov 21 08:35:10 xxx /usr/sbin/kamailio[254671]: INFO: <script>: Record
expired testkey => testvalue
If I'm right, this are 20 seconds and not 5.
Any ideas what's wrong?
Best regards
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only
to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda