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