[Home]

Summary:ASTERISK-00346: [request] Delayed delete of voicemail
Reporter:Tilghman Lesher (tilghman)Labels:
Date Opened:2003-10-02 23:06:05Date Closed:2011-06-07 14:04:43
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Instead of unlinking the associated files for voicemail immediately, delay the actual deletion of the underlying files for an arbitrary time (e.g. 28 hours), so that they may be retrieved later (by an admin) if accidently deleted.

****** ADDITIONAL INFORMATION ******

Affectionately known as the "Law & Order feature", since I saw this feature in a voicemail system on that TV show.
Comments:By: John Todd (jtodd) 2003-10-06 15:03:41

So, how would you propose the reaping of these deleted messages?  Setting up a timer that scans through everyone's voicemail directories seems to be a little on the bulky side.  Perhaps instead of a fixed hourly timer, simply check the timer on the "deleted" messages every time some new voicemail is deleted.  In other words, the reaping of old voicemail would be occur if the timer on a particular message was >28 hours, AND the user has just deleted a new piece of voicemail.

I think this would probably require quite a bit of programming to weave this into the existing voicemail structure.  Would a simpler approach be to simply (conifigurably) copy deleted messages to a mailbox called "DELETED" and then just run a cron job external to Asterisk that deletes based on timestamps on the header (and subsequently named .wav/gsm) files?  That sounds somewhat easier, since the concepts of moving messages between mailboxes already exists within voicemail2.

By: John Todd (jtodd) 2003-12-02 14:14:56.000-0600

This is a nice feature; anyone (cough, cough, <tilghman>) feel like doing it?  

A bit more thought makes me think that a command-line would be optimal for the deletion tasks once mail was moved into the "DELETED" mailbox, so that one could do something like:

asterisk -rx "mail reap"

or

asterisk -rx "mail reap 1234@somemailcontext"

Thus, this could be called from cron.

More options in voicemail.conf for each mailbox:

savedeleted=yes ; do we move deleted VM to DELETED mailbox?
reapinterval=48  ;hours - how often do we delete mail in DELETED?

By: Brian West (bkw918) 2003-12-03 19:25:39.000-0600

thats doable.... I will look at this.. wonder how hard this will be! :P

By: Brian West (bkw918) 2003-12-03 19:35:38.000-0600

save_to_folder and move it to DELETED instead (rename cust5 DELETED)

By: Brian West (bkw918) 2004-01-28 00:23:57.000-0600

Good idea but why not CC it to an archiver process via email.  We can add this to our todo list along with the newuser stuff.