Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
# FTP recording archive connection information
VARFTP_host => 10.0.0.4
VARFTP_user => cron
VARFTP_pass => test
VARFTP_port => 21
VARFTP_dir => RECORDINGS
VARHTTP_path => http://10.0.0.4
# The IP address of this machine
VARserver_ip => xxxx
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 --HTTPS
dspaan wrote:Thanks! i added the --HTTPS flag to crontab
If i replace my IP in astguiclient.conf with an mydomain.com FQDN won't this break other functions of vicidial?
dspaan wrote:But i'm not using the FTP option. I'd like to change the URL for the recordings that are stored on the vicidial server itself.
# Customized Variables
#$server_ip = $VARserver_ip; # Asterisk server IP
$server_ip = "www.changeasyoulike.com";
williamconley wrote:1) Then he SHOULD be using the FTP archive script (since it's very useful for this purpose: Storing the audio recordings on a named domain).
williamconley wrote:2) Do not change your server IP just to edit the domain of the recordings link. Unnecessary (and risky if done improperly).
blackbird2306 wrote:Of course you shouldn't change the VARserver_ip variable, if it is only for recording purposes! The question is why do you want to change the working ip in your recording links?
williamconley wrote:* If you want the links Inside vicidial to change: Have a look at the options for this server under admin->Servers. Alternate IP, External IP ... these can be used to modify the URL presented to those who click on the recording links without altering any Vicidial configuration files or options. Once you've decided on "alternate" vs "external" (no difference really, but read the ?) then set "Recording Web Link" to your choice and the recording links are altered WITHOUT editing anything else in the system.
blackbird2306 wrote:1.
Admin --> Servers --> Select Server --> Select in "Recording Web Link" option "ALT_IP" and fill the "Alternate Recording Server IP" field with your FQDN.
This won't change the url in your database in real, but it will pretend the FQDN by replacing the database url.
blackbird2306 wrote:williamconley wrote:start a ftp transfer only to change url in database
blackbird2306 wrote:Sure you mentioned points, which are true and very important, but we were not discussing the advantages of using an external place for recordings at this point. I'm sure he was aware of. His question was, how to change the recording link URL in database. And I referred to his question.
The question is why do you want to change the working ip in your recording links?
blackbird2306 wrote:Yes we all did capisce now! But he was asking how to change the url in database. And we didn't know what he tried to establish. That's why I asked him:The question is why do you want to change the working ip in your recording links?
Perhaps, it is not just a simple change a value in Admin->Servers. Perhaps he wants to export the call report, where this simple change a value doesn't work or he is externally pulling these information directly from db or whatever. We don't know!
The recording url ip / FQDN will be populated by "VARserver_ip" in astguiclient.conf file.
Of course you shouldn't change the VARserver_ip variable...
If i replace my IP in astguiclient.conf with an mydomain.com FQDN won't this break other functions of vicidial?
as long as you're only talking about VARHTTP_path ... that is its only use. To generate those links.
blackbird2306 wrote:Bravo you won! You are right once more. But tomorrow is also a day...
blackbird2306 wrote:... which never arrives for you ...
dspaan wrote:Thanks! i added the --HTTPS flag to crontab
blackbird2306 wrote:Admin --> Servers --> Select Server --> Select in "Recording Web Link" option "ALT_IP" and fill the "Alternate Recording Server IP" field with your FQDN.
This won't change the url in your database in real, but it will pretend the FQDN by replacing the database url.
williamconley wrote:Do not change your server IP just to edit the domain of the recordings link. Unnecessary (and risky if done improperly).
* The server upon which Vicicial resides may have as many domains as you choose to point to that server's IP address. No limits. Vicidial neither knows nor cares.
* The domain in the URL will act exactly like the IP, you may substitute one for the other at will (unless you alter the apache configuration to block this: But if you do, you'll know you can point any domain anywhere you like without altering Vicidial's configuration).
* If you want the links Inside vicidial to change: Have a look at the options for this server under admin->Servers. Alternate IP, External IP ... these can be used to modify the URL presented to those who click on the recording links without altering any Vicidial configuration files or options. Once you've decided on "alternate" vs "external" (no difference really, but read the ?) then set "Recording Web Link" to your choice and the recording links are altered WITHOUT editing anything else in the system.
williamconley wrote:blackbird2306 wrote:williamconley wrote:start a ftp transfer only to change url in database
Actually, no: The Vicidial system stores ALL recordings in a single folder. This is a very bad thing.
* Over time that folder will fill up and it can literally become impossible to even view the list of files in the folder and very difficult to manage the files as a result.
* Storing the Audio Recordings on the same HD as the Vicidial Database allows those recordings to fill the HD and crash the system. Any time drive usage exceeds 75% we warn clients. Over 90% and production is notably affected. Over 95% and crashes begin to occur regularly. At 100%: System goes offline ... and now the client will begin to wonder if they should put the recordings somewhere else. We get these calls a lot.
* If the HD dies those recordings are all GONE. If you back it up and the HD dies, then you have thousands (hundreds of thousands?) of recordings to restore that have no reason to be on that HD any more. Takes much longer than restoring without those files. And Vicidial's backup script doesn't back them up in the first place, so you need a different method to back them up.
* Access to those files requires access to the Vicidial server itself. Even If you provide a direct link to just that one file, you must allow web access to the Vicidial web for it to work. If you move the files to an FTP server, however, access to that server is not related to Vicidial.
However: If you activate the FTP service and push those recordings to another server, those problems are solved.
Even if you use FTP on the SAME server you can solve all those problems pretty easily. Second HD mounted in the /home/ folder for instance will remove the need to restore that drive if the Vicidial HD dies. If you require redundancy, mirror that drive. The FTP system segregates the recordings into daily folders, so no single folder will ever be so full that it's difficult to manage.
So it's not just about one thing. FTP pushing is not difficult, but it has been known to save a lot of headaches over time (just like NOT using it has Caused a lot of headaches over time ... and resulted in support calls to us that we make money from, but we prefer Coding and Hosting for money more than fixing broken systems).
### remove old recordings more than 90 days old, and delete originals after 1 day
24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +90 -print | xargs rm -f
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f
# 80302-1958 - First Build
# 80731-2253 - Changed size comparisons for more efficiency
# 90727-1417 - Added GSW format option
# 101207-1024 - Change to GSW option because of SoX flag changes in 14.3.0
# 110524-1059 - Added run-check concurrency check option
# 160523-0652 - Added --HTTPS option to use https instead of http in local location
# 170212-0732 - Added --file-sorting option to put files into dated directories (THIS WILL NOT ALLOW FTP ARCHIVING)
blackbird2306 wrote:That's why I asked him:
The question is why do you want to change the working ip in your recording links?
dspaan wrote:Posting back on this issue, i found out that if you setup the recording URL like above the URL is broken on the QC modify page. I posted this in Mantis:
http://www.vicidial.org/VICIDIALmantis/view.php?id=1148
Users browsing this forum: Bing [Bot] and 85 guests