Delete recordings less than xxkb

Discussions about new features or changes in existing features

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Delete recordings less than xxkb

Postby perci100 » Thu Feb 08, 2018 6:16 pm

Would be great to have an option in astguiclient.conf for the audio transfer scripts to delete recordings under xx kb or even before that point i feel like anything under like 25k is not worth saving but maybe i am wrong depending on compression. I figure it would be great to not even convert those files and save the resources. If i had the time id give it a shot
8 server cluster web/tel x 5/db/archive(rec only) in production inbound/outbound/AMD/full recording |Vicibox 5.0.3 Standard ISO | VERSION: 2.12-549a BUILD: 160404-0940 | Asterisk 1.8.25.0-vici | No added software all servers in RAID 10
perci100
 
Posts: 74
Joined: Thu Feb 09, 2012 1:47 pm

Re: Delete recordings less than xxkb

Postby mflorell » Thu Feb 08, 2018 6:27 pm

Sounds like a good idea, I would suggest posting your feature request to the Issue Tracker.
mflorell
Site Admin
 
Posts: 18335
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Delete recordings less than xxkb

Postby VoIPEssential » Tue Mar 06, 2018 2:54 pm

Or you can just add a one-liner cron job:
0 0 * * * /bin/find /var/spool/asterisk/monitorDONE/MP3 -name "*.mp3" -size -25k -delete
VoIP Essential Inc.
VoIP Services; Vicidial Specialists
www.voipessential.com
Tel: 855-455-VOIP (8647)
VoIPEssential
 
Posts: 17
Joined: Thu May 26, 2016 3:45 pm

Re: Delete recordings less than xxkb

Postby williamconley » Tue Mar 06, 2018 3:02 pm

VoIPEssential wrote:Or you can just add a one-liner cron job:
0 0 * * * /bin/find /var/spool/asterisk/monitorDONE/MP3 -name "*.mp3" -size -25k -delete

Doesn't save the CPU power from the scripts managing the file. Also doesn't delete the Recording DB entry which will still be linked to a non-existent file. But will save HD space (just not much).

We like to set the recording delay to about 5 seconds, which greatly reduces these but does not eliminate them.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Delete recordings less than xxkb

Postby dito » Thu Mar 08, 2018 6:32 am

williamconley wrote:
VoIPEssential wrote:Or you can just add a one-liner cron job:
0 0 * * * /bin/find /var/spool/asterisk/monitorDONE/MP3 -name "*.mp3" -size -25k -delete

Doesn't save the CPU power from the scripts managing the file. Also doesn't delete the Recording DB entry which will still be linked to a non-existent file. But will save HD space (just not much).

We like to set the recording delay to about 5 seconds, which greatly reduces these but does not eliminate them.


i tried the delay option and it's working fine.
may be adding POSTSTATUS to record filename option
then the deletion will be based on non useful statuses (dnc drop etc) and just keeping sales callback etc..
did not try it yet but i will give it a try
VoIP TUNISIE
support@crm.tn - https://crm.tn
dito
 
Posts: 49
Joined: Wed Nov 11, 2015 9:29 pm

Re: Delete recordings less than xxkb

Postby williamconley » Thu Mar 08, 2018 10:17 am

Now that sounds useful. A daily purge of useless recordings is an interesting concept.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Delete recordings less than xxkb

Postby blackbird2306 » Thu Mar 08, 2018 1:44 pm

Here is something similar based on call length (delete if less than xx sec.). It also updates the recording_log table in database and takes account of certain states of lead:
http://www.vicidial.org/VICIDIALforum/viewtopic.php?f=4&t=37868
Vicibox 6.0.2 from Vicibox_v.6.0.x86_64-6.0.2.iso | Vicidial 2.12-560a build: 160617-1427 | Asterisk 1.8.32.3
blackbird2306
 
Posts: 409
Joined: Mon Jun 23, 2014 5:31 pm

Re: Delete recordings less than xxkb

Postby perci100 » Sun Mar 25, 2018 2:08 pm

Sweet thanks guys. I was doing it with cron shortly after posting but didn't like the table entry still being there . Unclean data makes me twitch lol.

I just waste the bandwidth transferring them and my archive server does the rest so i'm not interfering with anything.
8 server cluster web/tel x 5/db/archive(rec only) in production inbound/outbound/AMD/full recording |Vicibox 5.0.3 Standard ISO | VERSION: 2.12-549a BUILD: 160404-0940 | Asterisk 1.8.25.0-vici | No added software all servers in RAID 10
perci100
 
Posts: 74
Joined: Thu Feb 09, 2012 1:47 pm

Re: Delete recordings less than xxkb

Postby perci100 » Sun Mar 25, 2018 2:08 pm

Sweet thanks guys. I was doing it with cron shortly after posting but didn't like the table entry still being there . Unclean data makes me twitch lol.

I just waste the bandwidth transferring them and my archive server does the rest so i'm not interfering with anything.
8 server cluster web/tel x 5/db/archive(rec only) in production inbound/outbound/AMD/full recording |Vicibox 5.0.3 Standard ISO | VERSION: 2.12-549a BUILD: 160404-0940 | Asterisk 1.8.25.0-vici | No added software all servers in RAID 10
perci100
 
Posts: 74
Joined: Thu Feb 09, 2012 1:47 pm


Return to Features

Who is online

Users browsing this forum: No registered users and 23 guests