<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I wrote this for a client a while
back:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[del-all-vm]<BR>exten =>
s,1,Set(TIMEOUT(digit)=3)<BR>exten => s,2,Set(TIMEOUT(response)=6)<BR>exten
=> s,3,Background(enter-exten-for-vm-to-delete)<BR>exten =>
_XX,1,Set(THIER_EXTEN=${EXTEN})<BR>exten =>
_XX,2,Goto(del-all-vm-confirm,s,1)<BR>exten => i,1,Playback(invalid)<BR>exten
=> i,2,Goto(s,1)<BR>exten => t,1,Goto(s,1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[del-all-vm-confirm]<BR>exten =>
s,1,Set(TIMEOUT(digit)=3)<BR>exten => s,2,Set(TIMEOUT(response)=6)<BR>exten
=> s,3,Background(are-you-sure-del-all-vm)<BR>exten =>
s,4,Saynumber(${THIER_EXTEN})<BR>exten =>
s,5,Background(1-for-yes-2-for-no)<BR>exten => 1,1,System(rm -rf
/var/spool/asterisk/default/techmast/${THIER_EXTEN}/INBOX/*.*)<BR>exten =>
1,2,Playback(all-vm-deleted)<BR>exten => 1,3,Congestion<BR>exten =>
1,4,Hangup<BR>exten => 2,1,Playback(close-call-not-deleted)<BR>exten =>
2,2,Congestion<BR>exten => 2,3,Hangup<BR>exten =>
i,1,Playback(invalid)<BR>exten => i,2,Goto(s,1)<BR>exten =>
t,1,Goto(s,1)</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=voipcrazy@gmail.com href="mailto:voipcrazy@gmail.com">voip crazy</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 05, 2007 1:15
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [asterisk-users] How to delete
voice mail messages?</DIV>
<DIV><BR></DIV>Hello all,<BR><BR>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? <BR><BR>Thanks in advance.<BR><BR>VoipCrazy. <BR>
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation Provided by <A
href="http://www.api-digital.com">http://www.api-digital.com</A>--<BR><BR>asterisk-users
mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>