Am Dienstag, den 22.05.2007, 20:37 -0500 schrieb Eric ManxPower
Wieling:
David Florella wrote:
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
PROTECTED] 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
David Florella wrote:
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.
You should expect this to massively
You should expect this to massively break voice mailboxes.
Well, it won't massively break them, just a bit. We do this on some
mailboxes and it works OK. The problem is that is you delete message 1
and leave 2, a new message will become 1, thus breaking the sequence.
They will be played back as
Sorry to say I have to disagree with you but I just had a heap of old
Voicemails which I couldn't be bothered deleting through my phone, So I
went in to /Old/ and ran rm -f on the first 20, I then had to listen to
another that wasn't deleted and it was still accessible from the phone,
upon further
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
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