Hi,<br><br>I am using Asterisk 1.2.4 on a Debian GNU/Linux server. I am looking<br>for a simple way to automatically delete all voicemail messages older<br>than a certain number of days for a given mailbox number. For example,
<br>I want to be able to delete all voicemail messages older than 7 days<br>for telephone number 201. I can delete the messages like this:<br><br>find /var/spool/asterisk/voicemail/default/201/INBOX/msg????.* -ctime<br>+7 -exec rm {} \;
<br><br>but I need a way of renaming the remaining files, so they are numbered<br>correctly - Asterisk always expects the first voicemail message to be<br>called msg0000.WAV, the second message is msg0001.WAV etc. Anybody got
<br>any suggestions for an easy (and elegant!) way of doing this?<br><br>Thanks,<br><br>Sami