On Tuesday 06 December 2011, Alex Balashov wrote:
Question: how does the 'autoexpire' parameter to the 'htable' modparam interact with the 'expires' value now present in the database table definition for a DB-backed 'htable'? Which one has priority?
The autoexpireparameter is used only for newly added items from the script. On shutdown the current expire value is written to the DB and restored on start.
So if an item is added with an autoexpire of 300 and kamailio is restarted after 50 sec, the item will still be present after restart, but with an expiry of 250 sec.