CRON - Audio Scripts - Improvements

Discussions about development of VICIDIAL and astGUIclient

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

CRON - Audio Scripts - Improvements

Postby aouyar » Mon Feb 02, 2009 5:05 pm

Hi Matt,

I have been trying to do some minor improvements to the CRON scripts for audio archival for a Call Center implementation that I have been working on.

In a prior call recording project we had come to the conclusion that it is better to avoid thousands of recording files in a single folder. I am modifying the STEP-1 scripts to improve scalability and to facilitate administration tasks like backups and archival of expired recordings by creating a folder for each day. I am also trying to improve the robustness of the scripts by improving error checking.

Would you be interesting in revising the scripts to see if you will be interested in integrating the changes?
aouyar
 
Posts: 124
Joined: Fri Jan 30, 2009 12:49 pm

Postby mflorell » Mon Feb 02, 2009 6:19 pm

What version of the scripts are you working off of?
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby aouyar » Tue Feb 03, 2009 8:06 pm

I have one small client that is using SVN version at production. I am doing all changes on SVN Trunk.
aouyar
 
Posts: 124
Joined: Fri Jan 30, 2009 12:49 pm

Postby mflorell » Tue Feb 03, 2009 9:27 pm

Very good, please post your changes to the Issue Tracker and link the posting to this topic.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby aouyar » Wed Feb 04, 2009 3:20 pm

I have initially modified only the STEP-1 Script and it is at production use now. I do not use STEP-2 and STEP-3 scripts because I record direct to .WAV (GSM encapsulated in WAV format) to tmpfs on /var/spool/monitor and the recordings are moved to /var/spool/recordings/YYYY/MM/dd on completion.

I will be posting the script to the issue tracker after adding some more error checking.

Ali
aouyar
 
Posts: 124
Joined: Fri Jan 30, 2009 12:49 pm

Postby okli » Wed Feb 04, 2009 5:16 pm

Would this be of any interest too?
http://www.eflo.net/VICIDIALforum/viewtopic.php?t=6552

I've been using it since it was posted without any issues, but always a good idea if someone experienced takes a look on it.
okli
 
Posts: 669
Joined: Mon Oct 01, 2007 5:09 pm

Postby mflorell » Wed Feb 04, 2009 6:30 pm

Yes, I do have that one on my list, but I've been too swamped with paid work to take the time to test it properly and put it into SVN.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby aouyar » Mon Feb 09, 2009 7:43 pm

I would rather prefer to use rsync instead of using FTP and scripting tricks to check if the file was transferred correctly. Rsync would be much more reliable than using FTP.
aouyar
 
Posts: 124
Joined: Fri Jan 30, 2009 12:49 pm

Postby mflorell » Tue Feb 10, 2009 12:17 am

I would agree with you if we were always transferring to Linux servers, but a sizable chunk of our clients just have simple Windows FTP servers set up to archive recording onto, so FTP is the easiest and most universal way of handling all possible types of archive servers.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby Baylink » Tue Feb 10, 2009 8:47 am

I will concur with the original observation that avoiding directories with too many entries is an excellent plan on *nix systems.

What constitutes "too many" is variable, but generally has to do with the filesystem's implementation of directory storage: if you get the directory contents into extended blocks, things will become unpleasant.

In general, if
Code: Select all
ls
takes more than a second or 3 to start returning results, your directory is too full, and you should hash it somehow.
Baylink
 
Posts: 77
Joined: Wed Aug 06, 2008 10:58 am


Return to Development

Who is online

Users browsing this forum: No registered users and 26 guests