Re: [asterisk-users] Deleting OLD Voicemails

2012-05-27 Thread Eric Wieling

I believe one of the patches involved in fixing for The Great Voicemail 
Problem* about a year ago was to make voicemail automatically renumber the 
mailbox files if it saw a gap.

* from memory: The Great Voicemail Problem is a bug where if you received a new 
voicemail while listening to a message, the mailbox was not renumbered 
correctly when you deleted a message.   

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Dias
Sent: Saturday, May 26, 2012 10:54 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Deleting OLD Voicemails

I did not understand. What do you mean with renumber all the messages?

El 25/05/2012 02:27, Edwin Lam edwin@officegeneral.com escribió:


On 5/23/12 2:42 AM, Danny Dias wrote:


Can i delete like this:

rm -rf 
/var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*

Is that ok? will this break something?



that's ok
no it shouldn't break anything.
however if you're going to delete some of the messages. you have to
renumber all the messages so that they are consecutive otherwise
the voicemail application may give you grief.



A little doubt here, once the user hears the voicemail using 
the phone, the
message is automatically moved to Old folder, is that right?



yes


-- 
Edwin Lam edwin@officegeneral.com
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 tel:%2B1%20415%20439%204988  Fax: +1 415 283 3370 
tel:%2B1%20415%20283%203370 
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
 http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users 
http://lists.digium.com/mailman/listinfo/asterisk-users 



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Deleting OLD Voicemails

2012-05-27 Thread Tiago Geada
I use find on a cron schedule to remove old recordings everyday. Im sure
you can do the same

find -H /var/log/asterisk/asterisk_rec/* -mtime +90 -type f -exec rm -v {}
\;

anything older than 90 days

On 27 May 2012 09:20, Eric Wieling ewiel...@nyigc.com wrote:


 I believe one of the patches involved in fixing for The Great Voicemail
 Problem* about a year ago was to make voicemail automatically renumber the
 mailbox files if it saw a gap.

 * from memory: The Great Voicemail Problem is a bug where if you received
 a new voicemail while listening to a message, the mailbox was not
 renumbered correctly when you deleted a message.

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Dias
 Sent: Saturday, May 26, 2012 10:54 PM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Deleting OLD Voicemails

 I did not understand. What do you mean with renumber all the messages?

 El 25/05/2012 02:27, Edwin Lam edwin@officegeneral.com escribió:


On 5/23/12 2:42 AM, Danny Dias wrote:


Can i delete like this:

rm -rf
 /var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*

Is that ok? will this break something?



that's ok
no it shouldn't break anything.
however if you're going to delete some of the messages. you have to
renumber all the messages so that they are consecutive otherwise
the voicemail application may give you grief.



A little doubt here, once the user hears the voicemail
 using the phone, the
message is automatically moved to Old folder, is that right?



yes


--
Edwin Lam edwin@officegeneral.com
Systems Engineer, OfficeWyze, Inc.
 Ph: +1 415 439 4988 tel:%2B1%20415%20439%204988  Fax: +1 415
 283 3370 tel:%2B1%20415%20283%203370
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 
 http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20


--

  _
-- Bandwidth and Colocation Provided by http://www.api-digital.com--
New to Asterisk? Join us for a live introductory webinar every
 Thurs:
 http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users 
 http://lists.digium.com/mailman/listinfo/asterisk-users



 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-26 Thread Danny Dias
I did not understand. What do you mean with renumber all the messages?
El 25/05/2012 02:27, Edwin Lam edwin@officegeneral.com escribió:

 On 5/23/12 2:42 AM, Danny Dias wrote:

 Can i delete like this:

 rm -rf /var/spool/asterisk/voicemail/**voicemailcontextcustomer/300/**
 INBOX/*.*

 Is that ok? will this break something?


 that's ok
 no it shouldn't break anything.
 however if you're going to delete some of the messages. you have to
 renumber all the messages so that they are consecutive otherwise
 the voicemail application may give you grief.

  A little doubt here, once the user hears the voicemail using the phone,
 the
 message is automatically moved to Old folder, is that right?


 yes


 --
 Edwin Lam edwin@officegeneral.com
 Systems Engineer, OfficeWyze, Inc.
 Ph: +1 415 439 4988 Fax: +1 415 283 3370
 http://pgpkeys.mit.edu:11371/**pks/lookup?op=getsearch=**0xD6506D20http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20


 --
 __**__**_
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  
 http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-24 Thread Ing CIP. Alejandro Celi

El mié, 23-05-2012 a las 11:42 +0200, Danny Dias escribió:

 Can i delete like this:
 rm
 -rf /var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*


You can make that without problems


 Is that ok? will this break something?


Yes, that's ok

regards,

-- 
Ing CIP. Alejandro Celi Mariátegui 
a...@linux.org.pe
http://cipher.pe 
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-24 Thread Edwin Lam

On 5/23/12 2:42 AM, Danny Dias wrote:

Can i delete like this:

rm -rf /var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*

Is that ok? will this break something?


that's ok
no it shouldn't break anything.
however if you're going to delete some of the messages. you have to
renumber all the messages so that they are consecutive otherwise
the voicemail application may give you grief.


A little doubt here, once the user hears the voicemail using the phone, the
message is automatically moved to Old folder, is that right?


yes


--
Edwin Lam edwin@officegeneral.com
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Deleting OLD Voicemails

2012-05-23 Thread Mehmet Avcioglu

You can delete old files, it won't break anything. Also to prevent saving files 
in multiple formats, edit voicemail.conf and change format parameter under 
general.

-- 
Mehmet Avcioglu
meh...@activecom.net

On May 23, 2012, at 1:03 AM, Danny Dias wrote:

 Thanks Jason, 
 
 But how to delete them? there are a lot of old voicemails, but i don't want 
 to break the app_voicemail.
 
 
 
 2012/5/22 Jason Parker jpar...@digium.com
 On 05/22/2012 04:54 PM, Danny Dias wrote:
  There are 4 files for each voicemail:
 
  msg.gsm
  msg.txt
  msg.wav
  msg.WAV
 
 
 That is perfectly normal.  The .txt file is metadata that contains things like
 caller ID and duration.  Asterisk will also save voicemails into every format
 you have specified in voicemail.conf.
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 
 -- 
 www.danntel.net
 sip:danny4...@thesipschool.com
 sip:dann...@opensips.org
 
 
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-23 Thread Danny Dias
Hi, thanks for your answers...

Can i delete like this:

rm -rf /var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*

Is that ok? will this break something?

A little doubt here, once the user hears the voicemail using the phone, the
message is automatically moved to Old folder, is that right?

Many thanks!



2012/5/23 Mehmet Avcioglu meh...@activecom.net


 You can delete old files, it won't break anything. Also to prevent saving
 files in multiple formats, edit voicemail.conf and change format parameter
 under general.

 --
 Mehmet Avcioglu
 meh...@activecom.net

 On May 23, 2012, at 1:03 AM, Danny Dias wrote:

 Thanks Jason,

 But how to delete them? there are a lot of old voicemails, but i don't
 want to break the app_voicemail.



 2012/5/22 Jason Parker jpar...@digium.com

 On 05/22/2012 04:54 PM, Danny Dias wrote:
  There are 4 files for each voicemail:
 
  msg.gsm
  msg.txt
  msg.wav
  msg.WAV
 

 That is perfectly normal.  The .txt file is metadata that contains things
 like
 caller ID and duration.  Asterisk will also save voicemails into every
 format
 you have specified in voicemail.conf.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




 --
 www.danntel.net
 *sip:danny4...@thesipschool.com*
 sip:dann...@opensips.org




  --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
www.danntel.net
*sip:danny4...@thesipschool.com*
sip:dann...@opensips.org
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-23 Thread Johann Steinwendtner

Please check out the scripts located in contrib/scripts

Regards

Hans

On 2012-05-23 11:42, Danny Dias wrote:

Hi, thanks for your answers...

Can i delete like this:

rm -rf /var/spool/asterisk/voicemail/voicemailcontextcustomer/300/INBOX/*.*

Is that ok? will this break something?

A little doubt here, once the user hears the voicemail using the phone, the 
message is automatically moved to Old folder, is that right?

Many thanks!



2012/5/23 Mehmet Avcioglu meh...@activecom.net mailto:meh...@activecom.net


You can delete old files, it won't break anything. Also to prevent saving 
files in multiple formats, edit voicemail.conf and change format parameter 
under general.

--
Mehmet Avcioglu
meh...@activecom.net mailto:meh...@activecom.net

On May 23, 2012, at 1:03 AM, Danny Dias wrote:


Thanks Jason,

But how to delete them? there are a lot of old voicemails, but i don't want 
to break the app_voicemail.



2012/5/22 Jason Parker jpar...@digium.com mailto:jpar...@digium.com

On 05/22/2012 04:54 PM, Danny Dias wrote:
 There are 4 files for each voicemail:

 msg.gsm
 msg.txt
 msg.wav
 msg.WAV


That is perfectly normal.  The .txt file is metadata that contains 
things like
caller ID and duration.  Asterisk will also save voicemails into every 
format
you have specified in voicemail.conf.




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Deleting OLD Voicemails

2012-05-22 Thread Danny Dias
Hello,

I was checking how to DELETE old voicemail from Asterisk, for my extension
300, i have 20 MB

[root@pbx INBOX]# pwd
/var/spool/asterisk/voicemail/default/300/INBOX

[root@pbx INBOX]# du -s -h
20M

There are 4 files for each voicemail:

msg.gsm
msg.txt
msg.wav
msg.WAV

I've read on some forums that deleting could break the app_voicemail; so
i'm a little afraid of break something. Why 4 files for each voicemail?

Is there any best way to do without breaking app_voicemail?

Many thanks


-- 
www.danntel.net
*sip:danny4...@thesipschool.com*
sip:dann...@opensips.org
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-22 Thread Jason Parker
On 05/22/2012 04:54 PM, Danny Dias wrote:
 There are 4 files for each voicemail:
 
 msg.gsm
 msg.txt
 msg.wav
 msg.WAV
 

That is perfectly normal.  The .txt file is metadata that contains things like
caller ID and duration.  Asterisk will also save voicemails into every format
you have specified in voicemail.conf.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Deleting OLD Voicemails

2012-05-22 Thread Danny Dias
Thanks Jason,

But how to delete them? there are a lot of old voicemails, but i don't want
to break the app_voicemail.



2012/5/22 Jason Parker jpar...@digium.com

 On 05/22/2012 04:54 PM, Danny Dias wrote:
  There are 4 files for each voicemail:
 
  msg.gsm
  msg.txt
  msg.wav
  msg.WAV
 

 That is perfectly normal.  The .txt file is metadata that contains things
 like
 caller ID and duration.  Asterisk will also save voicemails into every
 format
 you have specified in voicemail.conf.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
www.danntel.net
*sip:danny4...@thesipschool.com*
sip:dann...@opensips.org
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Deleting OLD Voicemails

2012-05-22 Thread Abdul Basit
You can delete old voicemails. Why not your install webvmail?

This is web based GUI for voicemails. You can select and delete from font
end without breaking anything.
http://www.voip-info.org/wiki/view/Asterisk+gui+vmail.cgi

--
regards,

abdul basit


On Wed, May 23, 2012 at 3:03 AM, Danny Dias ing.diasda...@gmail.com wrote:

 Thanks Jason,

 But how to delete them? there are a lot of old voicemails, but i don't
 want to break the app_voicemail.



 2012/5/22 Jason Parker jpar...@digium.com

 On 05/22/2012 04:54 PM, Danny Dias wrote:
  There are 4 files for each voicemail:
 
  msg.gsm
  msg.txt
  msg.wav
  msg.WAV
 

 That is perfectly normal.  The .txt file is metadata that contains things
 like
 caller ID and duration.  Asterisk will also save voicemails into every
 format
 you have specified in voicemail.conf.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




 --
 www.danntel.net
 *sip:danny4...@thesipschool.com*
 sip:dann...@opensips.org





 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users