NOW WE DOWNLOAD AND INSTALL ASTGUICLIENT ON THE ASTERISK/VICIDIAL SERVER!!!!!!!
WE ARE NOW ON THE ASTERISK/VICIDIAL SERVER
**** for SVN 2.0.5 branch:
# mkdir /usr/src/astguiclient
# cd /usr/src/astguiclient
# svn checkout
svn://svn.eflo.net:43690/agc_2-X/branches/agc_2.0.5
# cd agc_2.0.5
# perl install.pl
**** for SVN 2.2.0 trunk:
# mkdir /usr/src/astguiclient
# cd /usr/src/astguiclient
# svn checkout
svn://svn.eflo.net:43690/agc_2-X/trunk
# cd trunk
# perl install.pl
: manual configuration [y]
: press enter until you get to webroot and set that to the following: /var/www
: press enter through to the Sample configuration files and set that to 'y'
: press enter through to the end of the script
Also be sure to set the DB SERVER IP ADDRESS to 192.168.1.69 which is the DB/WEB Servers IP address instead of localhost which is the default value.
NOW LETS TELL THE DATABASE SERVER THAT YOU WILL UPDATE YOUR IP ADDRESS FROM THE DEFAULT FIRST SERVER INSTALL SCRIPT
# /usr/share/astguiclient/ADMIN_update_server_ip.pl --old-server_ip=10.10.10.15 (Just answer Y to all steps after this, this will actually replace 10.10.10.15 with the ip address of your asterisk/vicidial server)
WE INSERT THE AREA CODES TO THE DATABASE SERVER
# /usr/share/astguiclient/ADMIN_area_code_populate.pl
WE DO THE PERFORMANCE TEST
# cp /usr/src/astguiclient/trunk/extras/performance_test_leads.txt /usr/share/astguiclient/LEADS_IN/
# /usr/share/astguiclient/VICIDIAL_IN_new_leads_file.pl --forcelistid=107 --forcephonecode=1
Now some post install processes:
# cd /var/lib/asterisk/sounds
# wget
http://downloads.vicidial.com/conf/conf.gsm
# cp conf.gsm park.gsm
EDIT THE CRONTAB AND ADD THE FOLLOWING LINES:
# crontab -e
Add the following lines:
### 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_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
### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl
### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl
### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl
### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl
### flush queue DB table every hour for entries older than 1 hour
11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q
### fix the vicidial_agent_log once every hour
33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl
### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q
### adjust the GMT offset for the leads in the vicidial_list table
1 1,7 * * * /usr/share/astguiclient/ADMIN_adjust_GMTnow_on_leads.pl --debug
### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
### optimize the database tables within the asterisk database
3 1 * * * /usr/share/astguiclient/AST_DB_optimize.pl
## adjust time on the server with ntp
30 * * * * /usr/local/bin/ntpdate -u pool.ntp.org 2>/dev/null 1>&2
### VICIDIAL agent time log weekly summary report generation
2 0 * * 0 /usr/share/astguiclient/AST_agent_week.pl
### remove old recordings more than 7 days old
# 24 0 * * * /usr/bin/find /var/spool/asterisk/monitor -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
NOW WE DOWNLOAD THE VICIDIAL init.d service
# cd /etc/init.d/
# wget
http://download.vicidial.com/ubuntu/vicidial
# chmod +x vicidial
# update-rc.d -f vicidial defaults
# shutdown -r 0
AFTER REBOOTING
# screen -ls (should show at least 6 screens, one of which should be asterisk)
In a web browser, go to (
http://192.168.1.69/vicidial/admin.php) to see if everything is working. You should also reboot at this point to make sure everything will start back up properly.
From here on you should follow the tutorials in the VICIDIAL Manager Manual(available at eflo.net)