Re: [asterisk-users] Deleting voicemail by program

2023-10-11 Thread Mike Diehl
John, that is some serious script-fu! I does exactly what I was going to do in perl. However, my initial testing indicates that asterisk will renumber voicemail boxes to eliminate holes. But I'm still testing. Thanks again, Mike. On Tuesday, October 10, 2023 11:47:35 AM EDT John Harragin

Re: [asterisk-users] Deleting voicemail by program

2023-10-10 Thread John Harragin
Here is something I wrote years ago. I expect you can adjust it for your needs # cat remove_blank_vmail #!/bin/bash # remove_blank_vmail takes arguments as voicemail boxes and removes messages with audio files shorter then MINSIZE (in bytes)

Re: [asterisk-users] Deleting voicemail by program

2023-10-09 Thread Antony Stone
On Monday 09 October 2023 at 21:05:55, Mike Diehl wrote: > Hi all, > > I need to be able to delete a voicemail message using a program. > > Is is sufficient to simply delete the .wav and .txt files in the spool > directory? Or do I need to also renumber the remaining files? My approach in a

Re: [asterisk-users] Deleting voicemail by program

2023-10-09 Thread Carlos Chavez
    The script included with Asterisk (messages-expire.pl) deletes older messages and then renumbers the rest of the messages.  I guess you need to do the same. On 09/10/23 2:24 PM, Mike Diehl wrote: Unfortunately, I'm using a version of asterisk that is old enough to not benefit from this...

Re: [asterisk-users] Deleting voicemail by program

2023-10-09 Thread Mike Diehl
Unfortunately, I'm using a version of asterisk that is old enough to not benefit from this... Mike. On Monday, October 9, 2023 3:15:45 PM EDT Michael Bradeen wrote: > Hi Mike, > > New AMI actions were recently added to app_voicemail to let you remotely > manipulate a mailbox: >

Re: [asterisk-users] Deleting voicemail by program

2023-10-09 Thread Michael Bradeen
Hi Mike, New AMI actions were recently added to app_voicemail to let you remotely manipulate a mailbox: https://github.com/asterisk/asterisk/issues/181 Hope this helps. BR, -Mike On Mon, Oct 9, 2023 at 1:06 PM Mike Diehl wrote: > Hi all, > > I need to be able to delete a voicemail message

[asterisk-users] Deleting voicemail by program

2023-10-09 Thread Mike Diehl
Hi all, I need to be able to delete a voicemail message using a program. Is is sufficient to simply delete the .wav and .txt files in the spool directory? Or do I need to also renumber the remaining files? For example, let say a given mailbox has 20 messages in it and I want to delete