[asterisk-users] How to delete voice mail messages?

Dovid B asteriskusers at dovid.net
Mon Nov 12 19:14:48 CST 2007


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 


More information about the asterisk-users mailing list