<div dir="ltr"><div>Hello,</div><div>I haven't added that feature, but afaik, db_expires control if the value of the expires column from database is loaded in memory. htable does not automatically reload anything from database -- it does it at startup and then only upon an RPC command.</div><div>You can eventually make a cron job that issues the rpc reload command periodically.</div><div>Cheers,<br></div><div>Daniel<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 12:34 AM Daniel Greenwald <<a href="mailto:dgreenwald@gmail.com">dgreenwald@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I have an htable that loads from mysql. The data loads fine on startup but disappears on expiry. If I issue kamcmd htable.reload it loads again until expiry. It seems as if db_expires is not taking affect. I see them expiring in the debug log but not an errors. Mysql general log does not show any attempt to connect on expiry. Another odd thing is that if I set the expires column in db to anything other than 0 the data doesn't load at all.  Any ideas would be appreciated.</div><div></div><div><br></div><div>modparam("htable", "timer_interval", 10)</div>modparam("htable", "htable", "h=>size=20;autoexpire=20;dbtable=validdomains;updateexpire=0;")<br>modparam("htable", "db_url", AUTHDBURL)<br><div>modparam("htable", "db_expires", 1)</div><div><br></div><div>create or replace view validdomains as select distinct subscriber.domain as key_name, 1 as key_value, 0 as key_type, 0 as value_type, 0 as expires from subscriber;<br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>