I pushed a commit to master branch implementing the option 1) -- see db_timer_clean parameter. Not much testing for it, if any issue, open a new bug.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/30#issuecomment-174314816