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

2007-11-12 Thread Dovid B
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@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___
--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

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

2007-11-06 Thread Robert Lister
On Mon, Nov 05, 2007 at 12:47:52PM +0100, Michiel van Baak wrote:
 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.

Yes, but you must not just barge in and start deleting them, they have to be 
renumbered in sequence after you delete the ones you want, otherwise the vm 
app breaks when the user is listening to their messages.

I think there is also a way to lock the files (I think with .LCK files) so 
that the vm app does not try to write them while you are manupulating. (and 
so your script can detect that there is a message being created.)

I expect you will be able to find some code out there that does it without 
breaking it. (vmspool_manager) ?

Rob


-- 
Robert Lister - London Internet Exchange - http://www.linx.net/
sip:[EMAIL PROTECTED] - inoc-dba:5459*710- tel: +44 (0)20 7645 3510

___
--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


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

2007-11-05 Thread voip crazy
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

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

2007-11-05 Thread Michiel van Baak
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
[EMAIL PROTECTED]
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer afficionados are both called users?


___
--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