Review Board 1.7.16


Patch pbx_dundi.c to periodically clean it's database cache

Review Request #63 - Created Nov. 21, 2008 and submitted

Matthew Nicholson
1.6.0
13819
Reviewers
asterisk-dev
Asterisk
This is a modified version of the patch from bug 13819 (http://bugs.digium.com/view.php?id=13819).  It spawns a thread to remove expired entries from the dundi cache (in astdb) every 60 seconds.  This patch is necessary because asterisk normally cleans these entries when they are looked up, but entries that are not retrieved often (or retrieved only once ever) will stay in the database.
I tested this by creating some expired entries in the database using 'database put dundi/cache test 0|0' and observed asterisk clean them up.
Review request changed
Updated (Dec. 8, 2008, 10:19 a.m.)
Fixing previous upload.
Ship it!
Posted (Dec. 11, 2008, 10:13 a.m.)
Looks good

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.