[asterisk-users] Delete voicemails after X days

David Florella dflorella at legos.fr
Tue May 22 01:10:02 MST 2007


Thank you knox. Finally, I have chosen this solution : find
/var/spool/asterisk/voicemail/default/*/Old/ -atime -7|xargs rm –f, executed
every night by the CRON. However, I would have preferred this feature was
implemented in Astrisk.

 

 

  _____  

De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Atlanticnynex
Envoyé : lundi 21 mai 2007 21:18
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] Delete voicemails after X days

 

You could schedule a cron job to run a shell script to delete any files in
the /..../voicemail/*/Old/ directory that are older than the amount of time
specified. You could craft something up by comparing the date modification
timestamp from `ls -l` or the access modification from `ls -lu`(?). I don't
know of any Asterisk features to delete the older voicemail. 

-kn0x

On 5/21/07, David Florella <dflorella at legos.fr> wrote:

Hello, 

 

            I want to delete the voicemail messages that are in the "Old"
voicemail directory, 7 days after the listening of the message by the user.
Is someone as an idea how to do that???

 

Thanks.


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
<http://lists.digium.com/mailman/listinfo/asterisk-users> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070522/e10d81ba/attachment.htm


More information about the asterisk-users mailing list