Page 1 of 1

Recordings for Multi Server

PostPosted: Sun Oct 16, 2011 7:17 pm
by ruben23
Hi guys i have setup 4 Asterisk server load balance with 1 Web server and 1 Databased Scratch Install
ASterisk 1.4.27-vici
Dahdi-current
2.4 svntrunk
Ubuntu server 10.04 LTS

Any idea how do i geet recordings for the 4 Asterisk server being load balance..? can it be possible to centralized its recording access..? im thinking that recordings for sure are genrated per asterisk server and might do some FTP script to centralize the access of recordings, any suggestion.Thanks

PostPosted: Mon Oct 17, 2011 10:23 am
by randy_delgado_03
You can download this http://download.vicidial.com/iso/vicibo ... luster.pdf and check the Archive Installation Setup section ...

PostPosted: Mon Oct 17, 2011 11:09 am
by boybawang
for basic centralized archiving

1. uncomment this one on each of your asterisk servers #2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3


on your crontab

2. setup a ftp server using either pro or vsftpd then create a username and create a folder under it called RECORDINGS

3. modify all your asterisk servers /etc/astguiclient.conf and input the details needed to login to the ftp server


4. You need to modify your web servers configuration to point a certain directory to the ftp users directory if you want to access the recordings via a web browser

5. Vicidial will automatically produce hyperlinks of your recordings based on the data you filled in on /etc/astguiclient.conf of your asterisk servers. Vicidial by default uses archiving by date so an example of a recording link would be http://yourwebserver/RECORDINGS/10-03-2 ... ou-set.MP3

PostPosted: Mon Oct 17, 2011 5:40 pm
by ruben23
@boybawang

Thanks for the idea,

Do i access my recordings on all asterisk on my sole web server even do its separated form my 4 asterisk server, coz it automatically creates hyperlink, coz my setup are 4 asterisk, 1 web server and 1 databsed and added 1 archive server.How to mapped the link of the recordings to my web server surely the recordings are not there.Thanks

PostPosted: Tue Oct 18, 2011 1:13 am
by boybawang
heres how vicidial does it

if you have uncommented or added this to your crontab

2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

this perl script will upload the files under MP3 directory in /var/spool/asterisk/monitorDONE/ based on the credentials of /etc/astguiclient.conf on each of the asterisk servers that you have, the default will automatically create the full date as a folder on the ftp server in the format MM-DD-YYYY and place the recording under that directory

then it will save another copy of the uploaded mp3 file on your asterisk server which would be under /var/spool/asterisk/monitorDONE/FTP

then it writes to the database server the path of the recording filename that was upload and will use the archive servers ip address which is also found under /etc/astguiclient.conf

so to wrap up heres what you got to do


1. have ftp and apache installed on archive server

2. create a username

3. ftp to the archive server and login with your created username and password

4. do a mkdir RECORDINGS to create the folder RECORDINGS, this is the default folder which your recordings will be uploaded, check /etc/astguiclient.conf for more details

5. modify each /etc/astguiclient.conf on each asterisk server you have and point the ftp details to your archive server

6. on your archive server configure apache so that it will point /RECORDINGS/ /home/username/RECORDINGS

7. create a crontab command that changes file permissions every few minutes under /home/username/RECORDINGS

Thats just the basic then you can improve from there

PostPosted: Tue Oct 18, 2011 11:31 pm
by ruben23
@boybawang

Thanks a lot i got this all, implementing it now :)

Re: Recordings for Multi Server

PostPosted: Fri Jul 06, 2012 9:57 am
by benghoi
Hi,

Im trying to uncommend this line under /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl file

2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

then i got this error:

Bareword found where operator expected at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 17, near "/usr/share"
(Missing operator before hare?)
Bareword found where operator expected at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 17, near "--MP3"
(Missing operator before MP3?)
syntax error at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 17, near "/usr/share"
BEGIN not safe after errors--compilation aborted at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 319.

Please help.

Thanks

Re: Recordings for Multi Server

PostPosted: Mon Jul 09, 2012 7:04 pm
by williamconley
is this in crontab -e or /etc/crontab?

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 3:27 am
by rosnlama001
hello boybawang;
Could you provide me the information that
1. how to point the Ftp details of archive server into /etc/astguiclient.conf
2. What configuration I have to do with apache in my archive server to point the /RECORDINGS/ to /home/username/RECORDINGS

anybody can answer this question!!

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 6:25 am
by rrb555
I suggest u make some test first to fully grasp the technology. same thing i did :)

u also need to know if u want to save it by date or just same with the standard saving. hint i used the standard saving, for my own personal though lol!

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 6:44 am
by rosnlama001
I test my configuration by dialing extension extension inbound.
# FTP recording archive connection information
VARFTP_host => 172.16.3.11
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://172.16.3.11

i made a change into astguiclient.conf in FTP section
And My cronjob status is:-

### recording mixing/compressing/ftping scripts
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3

With this configuration I found that MP3 recordings file is transferring to the archive server inside /home/cron/201602....

But when i want to download the front end Web access.. it shows that
"The requested URL /2016-02-16/2016021625302_8001_8002-all.mp3 was not found on this server"

And this is the Web Link where the Front end redirect to me:-
"http://172.16.3.11/2016-02-16/2016021625302_8001_8002-all.mp3"

help me to configure recording download option from the front end.
I am not able to download the recording files from Web page access.

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 6:57 am
by rrb555
i did my test via agent interface and making outbound or inbound call

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 7:04 am
by rosnlama001
rrb555 wrote:I suggest u make some test first to fully grasp the technology. same thing i did :)

u also need to know if u want to save it by date or just same with the standard saving. hint i used the standard saving, for my own personal though lol!


I already did my test. and i found my recordings are moving to my ftp server with default cron user into ins /home/corn/201602... directory

But i am not able to download recordings from the Web access page...

How could it possible... any suggestion ???

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 7:11 am
by rosnlama001
Anybody can help me to shutout my problem..??

Re: Recordings for Multi Server

PostPosted: Tue Feb 16, 2016 10:35 pm
by rrb555
you may want to give sample of the recording link created by Vicidial server.

and were u able to create properly the apache vhost and conf file? check your apache directory listing if its working. :)

Re: Recordings for Multi Server

PostPosted: Thu Feb 18, 2016 9:48 am
by ruben23
Hi guys any idea if the FTP script erasing the recordings it uploads on the FTP server somehow..?

Re: Recordings for Multi Server

PostPosted: Thu Feb 18, 2016 10:37 am
by williamconley
ruben23 wrote:Hi guys any idea if the FTP script erasing the recordings it uploads on the FTP server somehow..?

1) I note your installation method with version is not in your listing. This is definitely an installation-related question. Think about it. :)

2) You should not bury a question like this inside someone else's post. A subject line that's "on point" could make a difference in who reads this and responds. Think some more. LOL

3) Prove that they are being erased by the FTP script. Turn on FTP logging. Then work from there. Presently I get the impression you're guessing. 8-)