Recordings for Multi Server

All installation and configuration problems and questions

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

Recordings for Multi Server

Postby ruben23 » Sun Oct 16, 2011 7:17 pm

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
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby randy_delgado_03 » Mon Oct 17, 2011 10:23 am

You can download this http://download.vicidial.com/iso/vicibo ... luster.pdf and check the Archive Installation Setup section ...
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby boybawang » Mon Oct 17, 2011 11:09 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby ruben23 » Mon Oct 17, 2011 5:40 pm

@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
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby boybawang » Tue Oct 18, 2011 1:13 am

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby ruben23 » Tue Oct 18, 2011 11:31 pm

@boybawang

Thanks a lot i got this all, implementing it now :)
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Re: Recordings for Multi Server

Postby benghoi » Fri Jul 06, 2012 9:57 am

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
Vicibox5.0.3 64bit | Vicidial: 2.8-431a | Build: 140314-1134 | Asterisk: 1.8
Full Server
benghoi
 
Posts: 70
Joined: Fri Dec 09, 2011 4:56 pm

Re: Recordings for Multi Server

Postby williamconley » Mon Jul 09, 2012 7:04 pm

is this in crontab -e or /etc/crontab?
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Recordings for Multi Server

Postby rosnlama001 » Tue Feb 16, 2016 3:27 am

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!!
rosnlama001
 
Posts: 7
Joined: Tue Nov 17, 2015 5:38 am

Re: Recordings for Multi Server

Postby rrb555 » Tue Feb 16, 2016 6:25 am

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!
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: Recordings for Multi Server

Postby rosnlama001 » Tue Feb 16, 2016 6:44 am

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.
rosnlama001
 
Posts: 7
Joined: Tue Nov 17, 2015 5:38 am

Re: Recordings for Multi Server

Postby rrb555 » Tue Feb 16, 2016 6:57 am

i did my test via agent interface and making outbound or inbound call
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: Recordings for Multi Server

Postby rosnlama001 » Tue Feb 16, 2016 7:04 am

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 ???
rosnlama001
 
Posts: 7
Joined: Tue Nov 17, 2015 5:38 am

Re: Recordings for Multi Server

Postby rosnlama001 » Tue Feb 16, 2016 7:11 am

Anybody can help me to shutout my problem..??
rosnlama001
 
Posts: 7
Joined: Tue Nov 17, 2015 5:38 am

Re: Recordings for Multi Server

Postby rrb555 » Tue Feb 16, 2016 10:35 pm

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. :)
One server that I am managing | Single Server | ViciBox Redux 6.0 | VERSION: 2.12-549a | BUILD: 160404-0940 | revision 2508| No other hardware
For help you can send me a direct email info@support.com.ph
rrb555
 
Posts: 585
Joined: Tue Feb 08, 2011 4:24 pm
Location: Quezon City, Philippines

Re: Recordings for Multi Server

Postby ruben23 » Thu Feb 18, 2016 9:48 am

Hi guys any idea if the FTP script erasing the recordings it uploads on the FTP server somehow..?
SkypeID: rlacumba
IBM x3200 Dual Core 2.4 Ghz.
4GB Ram
VERSION: 2.4-311a
BUILD: 110514-1351
© 2011 ViciDial Group
Asterisk 1.4.27-vici
Another VICI_day, same trunK, same Channel-->Transcode...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Re: Recordings for Multi Server

Postby williamconley » Thu Feb 18, 2016 10:37 am

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-)
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: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 97 guests