support

Now Free - Trixbox Monitor Files Archiver

percykwong
Posts: 753
Member Since:
2007-04-30

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

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



cosmicwombat
Posts: 1151
Member Since:
2006-05-31
Why not just use Mondo?

I thought script-trix.us had something like this...

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Get Official FreePBX Training



percykwong
Posts: 753
Member Since:
2007-04-30
nothing like what i was

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

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



percykwong
Posts: 753
Member Since:
2007-04-30
man.. i must be drunk..

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

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



pkaplan
Posts: 209
Member Since:
2007-02-28
A general rule of thumb is

A general rule of thumb is that if you want to charge people for your code, you should not tell them you were drunk when you wrote it. ;)



percykwong
Posts: 753
Member Since:
2007-04-30
lol.. i'm probably gonna

lol.. i'm probably gonna release it free.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



phonebuff
Posts: 430
Member Since:
2007-02-15
Never -------

Hey Percy,

The 1st rule of programming - NEVER Drink & Code !

It may work but you will never be able to debug it.

:-)



bubbapcguy
Posts: 3344
Member Since:
2006-06-02
I do my best work loaded

Hey Now I do my best loaded...debug??
no need my code does not have BUGS.
those are random features.
which popup from time to time.
no added charge for those.



percykwong
Posts: 753
Member Since:
2007-04-30
hell.. i needed a reason to

hell.. i needed a reason to learn php.. lol.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



percykwong
Posts: 753
Member Since:
2007-04-30
OK.. It's done and Tested.

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

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



TheShniz
Posts: 213
Member Since:
2006-06-01
That's very slick there

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



percykwong
Posts: 753
Member Since:
2007-04-30
No effects on ARI unless you

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.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



iBrokeIt
Posts: 25
Member Since:
2007-01-18
What happened to the link?

What happened to the link?



percykwong
Posts: 753
Member Since:
2007-04-30
sorry about that.. my

sorry about that.. my provider was upgrading servers and screwed it up. It's back now.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



cosmos
Posts: 27
Member Since:
2007-05-06
Nope, it still doesnt work.

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



iBrokeIt
Posts: 25
Member Since:
2007-01-18
Provider must be drinking

Provider must be drinking while upgrading...this must be one of those new "features" bubbapcguy was talking about. lol



percykwong
Posts: 753
Member Since:
2007-04-30
lol.. completely.

lol.. completely.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



smaikol
Posts: 63
Member Since:
2007-01-28
Hi percy I'm testing your

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



percykwong
Posts: 753
Member Since:
2007-04-30
chmod +777 /archives also

chmod +777 /archives

also make sure you have a /archives directory.. lol.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



percykwong
Posts: 753
Member Since:
2007-04-30
you can modify archiver.conf

you can modify archiver.conf to your liking also. :)

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



TheShniz
Posts: 213
Member Since:
2006-06-01
Okay, a couple things...1.)

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.



percykwong
Posts: 753
Member Since:
2007-04-30
lol.. you rock!

lol.. you rock!

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



smaikol
Posts: 63
Member Since:
2007-01-28
still not working

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



percykwong
Posts: 753
Member Since:
2007-04-30
send me your # in pm and

send me your # in pm and let's troubleshoot over the phone.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



TheShniz
Posts: 213
Member Since:
2006-06-01
w/out more information... I

w/out more information... I would assume you've set the wrong base_directory in archiver.conf. In your case it should be set to /var/www/html/archives/miki and NOT /archives/miki.

- J



smaikol
Posts: 63
Member Since:
2007-01-28
Thanks shniz u were right! i

Thanks shniz

u were right!
i have corrected the problem and now its working!

bye
smaikol



global_dev
Posts: 31
Member Since:
2006-07-19
archiver question

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



fawezy
Posts: 6
Member Since:
2007-08-27
HUssam Fawzy Arkan

HUssam Fawzy
Arkan Integrated Solutions
Cairo, Egypt

--

Hussam Fawzy
Arkan Integrated Solutions
Cairo, Egypt



fawezy
Posts: 6
Member Since:
2007-08-27
Great tool but the archiving is not working

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

--

Hussam Fawzy
Arkan Integrated Solutions
Cairo, Egypt



bubbapcguy
Posts: 3344
Member Since:
2006-06-02
read the thread

Did you read this thread???
The answer is here....



smaikol
Posts: 63
Member Since:
2007-01-28
Hi guys, A question, i'm

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



jfinstrom
Posts: 1247
Member Since:
2007-03-07
Percy likely wrote this on a

Percy likely wrote this on a trixbox system so it is likely formatted for CentOS(RHEL)



global_dev
Posts: 31
Member Since:
2006-07-19
Archiver ..maybe someone will help

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.



oneobserve
Posts: 85
Member Since:
2006-06-06
Doesn't work with latest release of TrixBox

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                     ...

--

====================================================
Mark A. Holm
InfoArch, Inc.                                  Cell:    (503) 750-9741
7456 SW Baseline, PMB#123.          Office: (503) 943-3202
Hillsboro, OR 97123                     ...



jfinstrom
Posts: 1247
Member Since:
2007-03-07
Well percy jumped ship so as

Well percy jumped ship so as far as getting free support for this probably wont happen but opening your wallet might motivate. I am not sure if this script will live past 2.2.x installs unless someone rewrites it on their own



oneobserve
Posts: 85
Member Since:
2006-06-06
That's OK. Ended up writing

That's OK. Ended up writing a new script that moved them into the ARI interface instead, and posted it in a new thread. It has a few issues of it's own, but is working with the new release at least...

markh

--

====================================================
Mark A. Holm
InfoArch, Inc.                                  Cell:    (503) 750-9741
7456 SW Baseline, PMB#123.          Office: (503) 943-3202
Hillsboro, OR 97123                     ...



nedster
Posts: 5
Member Since:
2007-02-26
Call monitor archiving

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.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.