Hello all, Could I create a script to delete the first messages on my voice mail? In this script should I update any "messages index file" or there isn't any file to index them? Could you share any script to do that? Thanks in advance. VoipCrazy. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071105/a497296b/attachment.htm
Michiel van Baak
2007-Nov-05 11:47 UTC
[asterisk-users] How to delete voice mail messages?
On 12:15, Mon 05 Nov 07, voip crazy wrote:> Hello all, > > Could I create a script to delete the first messages on my voice mail? In > this script should I update any "messages index file" or there isn't any > file to index them? Could you share any script to do that?Hi, Voicemails are stored in /var/spool/asterisk/voicemail/<context>/<vmbox> by default. There's some .wav files and a .txt file for every message. You can easily delete them using some shellscript. -- Michiel van Baak michiel at vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer afficionados are both called users?"
I wrote this for a client a while back: [del-all-vm] exten => s,1,Set(TIMEOUT(digit)=3) exten => s,2,Set(TIMEOUT(response)=6) exten => s,3,Background(enter-exten-for-vm-to-delete) exten => _XX,1,Set(THIER_EXTEN=${EXTEN}) exten => _XX,2,Goto(del-all-vm-confirm,s,1) exten => i,1,Playback(invalid) exten => i,2,Goto(s,1) exten => t,1,Goto(s,1) [del-all-vm-confirm] exten => s,1,Set(TIMEOUT(digit)=3) exten => s,2,Set(TIMEOUT(response)=6) exten => s,3,Background(are-you-sure-del-all-vm) exten => s,4,Saynumber(${THIER_EXTEN}) exten => s,5,Background(1-for-yes-2-for-no) exten => 1,1,System(rm -rf /var/spool/asterisk/default/techmast/${THIER_EXTEN}/INBOX/*.*) exten => 1,2,Playback(all-vm-deleted) exten => 1,3,Congestion exten => 1,4,Hangup exten => 2,1,Playback(close-call-not-deleted) exten => 2,2,Congestion exten => 2,3,Hangup exten => i,1,Playback(invalid) exten => i,2,Goto(s,1) exten => t,1,Goto(s,1) ----- Original Message ----- From: voip crazy To: asterisk-users at lists.digium.com Sent: Monday, November 05, 2007 1:15 PM Subject: [asterisk-users] How to delete voice mail messages? Hello all, Could I create a script to delete the first messages on my voice mail? In this script should I update any "messages index file" or there isn't any file to index them? Could you share any script to do that? Thanks in advance. VoipCrazy. ------------------------------------------------------------------------------ _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071113/ff26de0c/attachment.htm