Cron job is probably the lowest barrier to entry. Just get the sqlite3 client installed and go from there. Check out fs-install/db/voicemail_default.db, specifically the voicemail_msgs table:<br><br><span style="font-family:courier new,monospace"><font size="1">sqlite&gt; .schema voicemail_msgs<br>
CREATE TABLE voicemail_msgs (<br>   created_epoch INTEGER,<br>   read_epoch    INTEGER,<br>   username      VARCHAR(255),<br>   domain        VARCHAR(255),<br>   uuid          VARCHAR(255),<br>   cid_name      VARCHAR(255),<br>
   cid_number    VARCHAR(255),<br>   in_folder     VARCHAR(255),<br>   file_path     VARCHAR(255),<br>   message_len   INTEGER,<br>   flags         VARCHAR(255),<br>   read_flags    VARCHAR(255),<br>   forwarded_by  VARCHAR(255)<br>
);<br>CREATE INDEX voicemail_msgs_idx1 on voicemail_msgs(created_epoch);<br>CREATE INDEX voicemail_msgs_idx2 on voicemail_msgs(username);<br>CREATE INDEX voicemail_msgs_idx3 on voicemail_msgs(domain);<br>CREATE INDEX voicemail_msgs_idx4 on voicemail_msgs(uuid);<br>
CREATE INDEX voicemail_msgs_idx5 on voicemail_msgs(in_folder);<br>CREATE INDEX voicemail_msgs_idx6 on voicemail_msgs(read_flags);<br>CREATE INDEX voicemail_msgs_idx7 on voicemail_msgs(forwarded_by);<br>CREATE INDEX voicemail_msgs_idx8 on voicemail_msgs(read_epoch);<br>
CREATE INDEX voicemail_msgs_idx9 on voicemail_msgs(flags);<br></font></span><br>Just select uuid from voicemail_msgs where created_epoch &lt; xyz and then use the vm_delete API in fs_cli to zap the message:<br><br>vm_delete user@domain &lt;uuid&gt;<br>
<br>FS will do the rest: update the db, send out any MWI indications, etc.<br><br>If you get a working cron script let us know and we&#39;ll help you post it to the wiki for all the world to see. :)<br><br>-MC<br><br><br>
<div class="gmail_quote">On Tue, Aug 28, 2012 at 2:04 PM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I don&#39;t think it exists. You could either custom-code a C module that polls at various times..<div><br></div><div>Or just set a cron that queries the DB for old VMs then deletes the entry and the file.</div>


<div><div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div><br>
<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Aug 29, 2012 at 12:00 AM, Chris Ferreira <span dir="ltr">&lt;<a href="mailto:chris@gonumina.com" target="_blank">chris@gonumina.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">

How can I set FreeSWITCH up so that OLD voicemails get deleted automatically?<div><br></div><div>I havent found anything in the Wiki or other documentation.</div><div><br></div><div><br></div><div><br></div><div>Your input is much appreciated.</div>




<div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>-Chris</div><div><br></div><div><br></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>