Now Free - Trixbox Monitor Files Archiver
Updated.. The script is done. As promised, once I recovered my costs, I would release it to all for free!
Basically, it monitors your /var/spool/asterisk/monitor directory and cross-references the CID tables to the files in existence and allows you to archive / delete them from your monitor directory. Allows you to specify where to archive the files to and most importantly, ends the reliance of the filenames on the CDR database. It renames the files to something that makes sense and also creates a comma-delimited file in the directory you specify with important info on the files in the directory itself.
Doesn't mess with ARI so nothing breaks. It's cute, web-based, and most importantly.. it works. Great tool for call-centers and anyone recording their telephone calls. It makes archiving of the files a reality as well.
Personally, I use it with an external USB drive mounted as /archives. This allows me to pick and choose what I want archived and it allows me to selectively delete the files from the directory as well. Great way to free up space on the trixbox install without damaging anything.
more info can be found here: http://www.virtutel.com/archiver.html
nothing like what i was thinking..
rename file to: date_time_src_dst.wav
put it in a subdirectory of your choosing at the time of archival.
basically a way to actually burn archives that can stand alone without the bs of having to have access to the original mysql tables..
if my spelling is atrocious, it's because i've been drinking tonight.. beer with me (pun intended).. lol
man.. i must be drunk.. learning php, drinking, and writing a backup script.. Geezus.. what am i doing!?!! it's 3:37AM and i'm on the forums as well.. lol.. this should make for an interesting night..
I guess i'll determine the price when i'm done.. drunk and figuring out php as i go.. i wonder if i'll remember what i learned in the morning.. lmao
OK.. It's done and Tested. I got sick of figuring out the php thing.. (had to do real work). So I paid a developer to finish it. It's purty and it works.
more info on it.. http://www.virtutel.com/archiver.html
Once I've recovered the money I paid the developer, I'm gonna SERIOUSLY consider releasing it to the GPL. I'd ask for donations, but I saw the sad state of how things are with donations.
It works quite well.. looks like I'll be using this tool very often as it allows me to archive without having to retain the CDR logs in MySQL to make sense of what it is.
Well.. It's not meant to be a shameless plug and anyway.. I see a huge need for this in the call center environment. so $20.00 to have this functionality isn't ridiculous.
Cheers.
-Percy
That's very slick there Percy... what effects if any are there on ARI? Could you say, allow users to still maintain their own recordings in /var/spool/asterisk/monitor/ while duplicating them out to another directory for office managers' system overview w/ easy searching?
Pretty nifty,
- J
Thanks for the kudos.. lol.. I'm glad someone else other than me sees the need for this.
No effects on ARI unless you select "delete" the file. Then it just doesn't show up as "Playable" in Ari.
I have extensive experience building enterprise-class apps (architecture). So this one's pretty solid. I was thinking of writing this as a module (for trixbox integration), but the hell of trying to figure out the API on how to "enclose it" within the standard interface seemed like too much trouble. I wanted to get the app out fast (as I needed it for myself) *chuckle*
I've tested it and it's solid... If there are any bugs, I'll be fixing it in extremely short order.
Well.. I'm not looking to make money off it, just looking to recover the change I put into developing it... Like I said.. Once I've recovered my outlay, I'm gonna seriously consider releasing it for free for all.. Although, $20.00 for some time and effort isn't exactly an unfair number, especially for the "useful" functionality this provides.
I was thinking of creating a series of these modules. I guess this is *maybe* the first of many.
Nope, it still doesnt work. Here is the error message dispalyed:
Not Found
The requested URL /archiver.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.virtutel.com Port 80
Hi percy
I'm testing your archiver script and when i try to move a registered file into a directory it gives me this message
Warning: mkdir(/archives/miki): No such file or directory in /var/www/html/archives/filemove.php on line 17 could not create directory: /archives/miki
i tried also ti create myself miki directory but nothing happened. Can you suggest me a solution? I have trixbox 2.2 asterisk 1.2.20 updated.
Thanks, your script ad idea is really nice and useful. help me get it work please.
smaikol
Okay, a couple things...
1.) In archiver.conf, base_directory should be /var/www/html/archiver (I think the default is just /archiver). This would confuse some, as it's actually writing files to the root directory of /archiver and NOT the documentroot of /var/www/html. And this is why people are getting directory doesn't exist.
2.) The delete foreach statement is spitting back errors if you DON'T delete anything (i.e. just archive). If you DO delete a call recording, then no error is spit out. Error is: Warning: Invalid argument supplied
3.) Similarly the archive foreach statement is also spitting back similar errors if you DON'T archive anything.
I'll patch it up if I can catch a break here, but otherwise it seems to be functioning...
- J
::updated::
It would be nice if the file was saved as the actual filename and not displaywav.wav, don't know how difficult that would be tho. Further, another page could be written (I'd imagine pretty easy w/ a different target directory) which would display files just for the new archived location (so you'd have two lists), otherwise it'd be left to Samba.
::updated again::
Okay, I had some time & it was bothering me...
http://www.EdgeProductions.com/files/TheShniz/archiver_patch.zip
...simply download, unzip, & overwrite
"Check to make sure someone isn't trying to do something evil ... Naughty naughty boy." ... lol, that one made me chuckle, heh
::updated yet again::
I updated the patch above w/ a new index.php. This makes it so you can remove index.html, fileread.html, and fileread.php. I don't know the original intent for index.html, but I don't think you wanted to share your call records with us in fileread.html.
It should be noted that if you archive a recording, go back, and archive the same recording again... it will NOT overwrite the previous recording. Instead it will create a duplicate file as {longfilename}_0002.wav. So you can't just blindly & periodically archive everything, you'll run out of diskspace quick.
Hi percy
i followed your suggestions about the archiver but i get still this message
Warning: mkdir(/archives/miki): No such file or directory in /var/www/html/archives/filemove.php on line 17
could not create directory: /archives/miki
when i try to move a recorded file to that directory.
i tried changing also owner and group and applied tha patch above.
what can i do?
thanks
smaikol
I have used the update patch, changed passwords as needed, changed the conf file to reflect the created /var/www/html/archives (chmod 0777), however nothing to archive shows up when searching under http://asterisk1/archiver/ .
The conf monitor directory is correct. I get no eror messages.
Any help would be greatly appreciated. Thanks
I have a problem that when i try archiving i get...
"Warning: mkdir(/archives/old): No such file or directory in /var/www/html/archiver/filemove.php on line 17
could not create directory: /archives/old"
This is either the directory exist or not.
Please advice...
Hussam Fawzy
Arkan Integrated Solutions
Cairo, Egypt
Hi guys,
A question, i'm trying to use the archiver application in a debian server with asterisk and freepbx installed.
The monitor directory is in /var/spool/asterisk/monitor but when i click search or view all data nothing appears in the web page.
Does the application works in debian? Am i wasting time?
Though i setted my base dir to the /var/www/debian/htdocs/archiver (/var/www/debian/htdocs/ is where freepbx is placed in debian) i get the usual error
"Warning: mkdir(var/www/debian/htdocs//archives/prova): No such file or directory in /var/www/html/archiver/filemove.php on line 17
could not create directory: var/www/debian/htdocs//archives/prova"
I see two // before archives is this correct? should i use the patch?
Thansk to all
smaikol
Can someone help figure out why I get the menu to search and list, but no call records show up at all. This would be extremely useful. I have read this thread about 5x over and applied what seems to be the appropriate fixes. Thanks
Is Percy's download update with the patch or is it the original? I assumed it needed to be poatched when reading what the patch does and why its needed.
Has anybody gotten this working with the latest release of TrixBox (2.4.2)? I have made all the patches suggested above, and checked the logs, but get no files when clicking View All. No errors are put in the error_log except those caused normally by parsing the conf file. Any insight into why it won't display the files I have in my monitor directory?
markh
====================================================
Mark A. Holm
InfoArch, Inc. Cell: (503) 750-9741
7456 SW Baseline, PMB#123. Office: (503) 943-3202
Hillsboro, OR 97123 ...
Hi does anyone have a solution for this now?
The download link on the page quoted by Percy no longer works.
I've a client who needs to make a monthly DVD copy of all call recordings, and by the sounds of it this would be perfect.
If anyone knows where a copy resides, or of a good alternative, i'd be very grateful.



Member Since:
2007-04-30