Beruflich Dokumente
Kultur Dokumente
Sidebar
… ***********************************************************
1. Centos 6.x installation in Linux text mode
… 2 2. Dependicies installation for vicidial asterisk
3. Asterisk , Dahdi ,libpri installation
… 4. Vicidial installation
5. Other Settings
…
***********************************************************
…
Check this link to install centos in linux text mode for vicidial installation link
For netinstall step check this link
After Installation
Disable Firewall and Selinux before starting the Installations
Stopping the Firewall
[~]# iptables -F
[~]# service iptables save
1 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
........................................................................................................
Update the Os
…
[~]# yum -y update
[~]# reboot
… ........................................................................................................
Installing EPEL
… 2
[~]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-
… 6-8.noarch.rpm
[~]# rpm -ihv epel-release-6-8.noarch.rpm
… ........................................................................................................
Dependicises
Install the Following software
…
[~]# yum install -y gcc gcc-c++ php php-devel php-gd gd-devel php-mbstring
… 2
php-mcrypt php-imap php-ldap php-mysql php-odbc php-pear php-xml php-
xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
1
httpd libpcap libpcap-devel ncurses ncurses-devel screen sox mysql-server
mysql-devel ntp kernel-devel mutt glibc.i686
........................................................................................................
Setting up Mysql
[~]# mysql_install_db
[~]# /etc/init.d/mysqld start
[~]# mysql_secure_installation
[~]# service mysqld stop
[~]# cp /etc/my.cnf /etc/my.cnf.original
[~]# echo "" > /etc/my.cnf
[~]# nano /etc/my.cnf ; copy the below config to this file.
[mysql.server]
user = mysql
#basedir = /var/lib
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
datadir = /var/lib/mysql
Dynamic Views theme. Powered by Blogger.
2 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
ft_min_word_len = 3
max_connections = 800
max_allowed_packet = 32M
skip-external-locking
…
log-error = /var/log/mysqld/mysqld.log
…
query-cache-type = 1
… 2 query-cache-size = 32M
… long_query_time = 1
#slow_query_log = 1
… #slow_query_log_file = /var/log/mysqld/slow-queries.log
tmp_table_size = 128M
…
table_cache = 1024
… 2
join_buffer_size = 1M
key_buffer = 512M
1
sort_buffer_size = 6M
read_buffer_size = 4M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 64M
max_tmp_tables = 64
thread_cache_size = 8
thread_concurrency = 8
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
Dynamic Views theme. Powered by Blogger.
3 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
…
[mysqlhotcopy]
…
interactive-timeout
… 2 [mysqld_safe]
#log-error = /var/log/mysqld/mysqld.log
…
#pid-file = /var/run/mysqld/mysqld.pid
…
........................................................................................................
…
CPAN modules installation
........................................................................................................
… 2
yum -y install perl-YAML
perl -MCPAN -e shell
1
You will then go through CPAN setup, just hit ENTER for most prompts
except
for the mirrors list, you will want to select at least 4 mirrors
yes for manual configuration
enter for the next 18 prompts
for the "make install" option, it's a good idea to add UNINST=1
enter for the next 4 prompts
select your continent and country
select a few cpan mirrors
enter for the next 2 prompts
Once you see the cpan> prompt you can begin installing modules.
####################
- install MD5
- install Digest::MD5
- install Digest::SHA1
- install readline (just hit Enter when it asks for operator)
- install Bundle::CPAN
- reload cpan
- install Pod::Usage
- install Getopt::Long
4 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
- install Net::Server
- install Mail::Sendmail
- install Unicode::Map
- install Jcode
…
- install Spreadsheet::WriteExcel
- install OLE::Storage_Lite
…
- install Proc::ProcessTable
- install IO::Scalar
… 2 - force install Scalar::Util
- install Spreadsheet::ParseExcel
… - install Archive::Zip
- install Compress::Raw::Zlib
… - install Spreadsheet::XLSX
- install Test::Tester
- install Spreadsheet::ReadSXC
…
- install Text::CSV
- install Test::NoWarnings
… 2
- install Text::CSV_PP
- install File::Temp
1
- install Text::CSV_XS
- install Spreadsheet::Read
- install LWP::UserAgent
- install HTML::Entities
- install HTML::Strip
- install HTML::FormatText
- install HTML::TreeBuilder
- install Switch
- install Time::Local
- install MIME::Decoder
- install Mail::POP3Client
- install Mail::IMAPClient
- install Mail::Message
- install IO::Socket::SSL
- install MIME::Base64
- install MIME::QuotedPrint
- install Crypt::Eksblowfish::Bcrypt
- quit
........................................................................................................
5 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
make all
make install
........................................................................................................
Additional Softwares (Lame,ttyload,mtop,sipsak,eaccelerator....)
…
........................................................................................................
download all to usr/src directory
…
cd /usr/src
wget http://downloads.sourceforge.net/project/lame/lame/3.98.2/lame-
… 2 398-2.tar.gz
wget http://download.vicidial.com/required-apps/ttyload-0.5.tar.gz
… wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
wget http://download.vicidial.com/required-apps/mtop-0.6.6.tar.gz
… wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
wget http://download.vicidial.com/required-apps/sipsak-0.9.6-1.tar.gz
wget http://download.vicidial.com/required-apps/pl241src.tar.gz
…
wget http://sourceforge.net/projects/eaccelerator/files/eaccelerator
/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip/download
… 2
Untar All
1
cd /usr/src
tar -xvzf lame-398-2.tar.gz
tar -xvzf ttyload-0.5.tar.gz
tar -xvzf iftop-0.17.tar.gz
tar -xvzf mtop-0.6.6.tar.gz
tar -xvzf mytop-1.6.tar.gz
tar -xvzf sipsak-0.9.6-1.tar.gz
tar -xvzf pl241src.tar.gz
unzip eaccelerator-0.9.6.1.zip
cd /usr/src/ttyload-0.5
make
make install
cd /usr/src/iftop-0.17
./configure
make
Dynamic Views theme. Powered by Blogger.
6 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
make
make install
cd /usr/src/mytop-1.6
…
perl Makefile.PL
make
…
make install
… 2 cd /usr/src/sipsak-0.9.6-1
./configure
… make
make install
…
cd /usr/src/pl241src/src
make
…
make install
mkdir -p /var/www/html/vicidial/ploticus/
… 2
cp pl /var/www/html/vicidial/ploticus/
1
cd /usr/src/eaccelerator-0.9.6.1
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --with-php-
config=$PHP_PREFIX/bin/php-config
make
make install
........................................................................................................
PHP Settings
........................................................................................................
nano /etc/php.ini
search for below words and change (hint press / and type the word to search
and press n to next
7 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
;For CentOS 32-bit:
zend_extension="/usr/lib/php/modules/eaccelerator.so"
eaccelerator.shm_size="48"
…
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
…
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
… 2 eaccelerator.debug="0"
eaccelerator.filter=""
… eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
… eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
…
eaccelerator.compress_level="9"
… 2
save and exit
........................................................................................................
1
Eaccelerator setting
........................................................................................................
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
php -v
........................................................................................................
Settings up web config for vicidial
........................................................................................................
nano /etc/httpd/conf/httpd.conf
change
8 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
… 2 Forcetype application/forcedownload
run
…
/etc/init.d/httpd restart
… 2
mkdir /usr/src/asterisk
cd /usr/src/asterisk
**Note asterisk 1.8 or asterisk 1.4 the installation is same. so decide which
once you want and download the source file
** Asterisk 1.4 tested and supported by vicidial
** Asterisk 1.8 for vicidial is still in Beta , use under your own risk
For asterisk 1.8
wget http://download.vicidial.com/required-apps/asterisk-1.8.23.0-
vici.tar.gz
For asterisk 1.4
wget http://downloads.vicidial.com/required-apps/asterisk-1.4.39.1-
vici.tar.gz
9 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
cd dahdi-linux-complete-2.9.1.1+2.9.1/
make all
make install
make config
…
LibPri installation
… cd /usr/src/asterisk
cd libpri-1.6.0
… 2 make clean
make
… make install
… Asterisk Installation
** follow same for asterisk 1.4
cd /usr/src/asterisk/asterisk-1.8.23.0
…
./configure
make clean
… 2
make
make install
1
make samples
........................................................................................................
Enabling the asterisk to start at startup
........................................................................................................
cp /usr/src/asterisk/asterisk-1.8.23.0/contrib/init.d/rc.redhat.asterisk
/etc/init.d/asterisk
chkconfig --add asterisk
........................................................................................................
Installing Sound files
........................................................................................................
downloading the sound files
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-
sounds-en-ulaw-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-
sounds-en-wav-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-
sounds-en-gsm-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-
sounds-en-ulaw-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-
Dynamic Views theme. Powered by Blogger.
10 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
opsound-gsm-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-moh-
opsound-ulaw-current.tar.gz
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-moh-
…
opsound-wav-current.tar.gz
…
Setting the sounds in place
cd /var/lib/asterisk/sounds
… 2 tar -zxf /usr/src/asterisk-core-sounds-en-gsm-current.tar.gz
tar -zxf /usr/src/asterisk-core-sounds-en-ulaw-current.tar.gz
… tar -zxf /usr/src/asterisk-core-sounds-en-wav-current.tar.gz
tar -zxf /usr/src/asterisk-extra-sounds-en-gsm-current.tar.gz
… tar -zxf /usr/src/asterisk-extra-sounds-en-ulaw-current.tar.gz
tar -zxf /usr/src/asterisk-extra-sounds-en-wav-current.tar.gz
…
mkdir /var/lib/asterisk/mohmp3
mkdir /var/lib/asterisk/quiet-mp3
… 2
mkdir /var/lib/asterisk/default
cd /var/lib/asterisk
1
ln -s mohmp3 default
ln -s moh mohmp3
cd mohmp3
tar -zxf /usr/src/asterisk-moh-opsound-gsm-current.tar.gz
tar -zxf /usr/src/asterisk-moh-opsound-ulaw-current.tar.gz
tar -zxf /usr/src/asterisk-moh-opsound-wav-current.tar.gz
rm -rf CHANGES*
rm -rf LICENSE*
rm -rf CREDITS*
cd /var/lib/asterisk/moh
rm -rf CHANGES*
rm -rf LICENSE*
rm -rf CREDITS*
cd /var/lib/asterisk/sounds
rm -rf CHANGES*
rm -rf LICENSE*
rm -rf CREDITS*
cd /var/lib/asterisk/quiet-mp3
11 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
0.25
sox -t ul -r 8000 -c 1 ../mohmp3/macroform-robot_dity.ulaw -t ul
macroform-robot_dity.ulaw vol 0.25
sox ../mohmp3/macroform-the_simplicity.wav macroform-
…
the_simplicity.wav vol 0.25
sox ../mohmp3/macroform-the_simplicity.gsm macroform-
…
the_simplicity.gsm vol 0.25
sox -t ul -r 8000 -c 1 ../mohmp3/macroform-the_simplicity.ulaw -t ul
… 2 macroform-the_simplicity.ulaw vol 0.25
sox ../mohmp3/reno_project-system.wav reno_project-system.wav vol 0.25
… sox ../mohmp3/reno_project-system.gsm reno_project-system.gsm vol 0.25
sox -t ul -r 8000 -c 1 ../mohmp3/reno_project-system.ulaw -t ul
… reno_project-system.ulaw vol 0.25
sox ../mohmp3/manolo_camp-morning_coffee.wav manolo_camp-
morning_coffee.wav vol 0.25
…
sox ../mohmp3/manolo_camp-morning_coffee.gsm manolo_camp-
morning_coffee.gsm vol 0.25
… 2
sox -t ul -r 8000 -c 1 ../mohmp3/manolo_camp-morning_coffee.ulaw -t ul
manolo_camp-morning_coffee.ulaw vol 0.25
1
svn co svn://svn.eflo.net:43690/agc_2-X/trunk
cd trunk
perl install.pl
**when promots jsut press enter except for below three ptions*
server webroot path or press enter for default[/srv/htdocs]:/var/www/html
Enter asterisk version or press enter for default: [1.4]1.8
Copy sample configuration files to /etc/asterisk/ ? [n]y
........................................................................................................
12 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
GRANT SELECT,INSERT,UPDATE,DELETE,LOCK TABLES on asterisk.*
TO cron@localhost IDENTIFIED BY '1234';
GRANT RELOAD ON *.* TO cron@'%';
GRANT RELOAD ON *.* TO cron@localhost;
…
flush privileges;
SET GLOBAL connect_timeout=60;
…
use asterisk;
\. /usr/src/astguiclient/trunk/extras/MySQL_AST_CREATE_tables.sql
… 2 \. /usr/src/astguiclient/trunk/extras/first_server_install.sql
\. /usr/src/astguiclient/trunk/extras/sip-iax_phones.sql
… quit
........................................................................................................
… Updating the area codes
........................................................................................................
run the below command at linux terminal as root user
…
/usr/share/astguiclient/ADMIN_area_code_populate.pl
........................................................................................................
… 2
Entering the startup scripts and services in rc.local
........................................................................................................
1
open the rc.local and paste the below entries
nano/etc/rc.d/rc.local
copy and paste the below details in rc.local
13 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
…
### sleep for 20 seconds before launching Asterisk
sleep 20
… 2
…
Step 5: Other Settings
… 2
........................................................................................................
Cronjob entries
1
........................................................................................................
[root@~] crontab -e
copy and paste the below entries and save and exit
for the latest vicidial cron jobs refer docs folder under downloaded vicidial
source fi
14 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
…
### 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 and the full day run at night
… 2 33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl
50 0 * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl --last-24hours
… ## uncomment below if using QueueMetrics
#*/5 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl --only-qm-
… live-call-check
… 2
### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q
1
### 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
### VICIDIAL agent time log weekly and daily summary report generation
2 0 * * 0 /usr/share/astguiclient/AST_agent_week.pl
22 0 * * * /usr/share/astguiclient/AST_agent_day.pl
15 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
#30 1 1 * * /usr/share/astguiclient/ADMIN_archive_log_tables.pl
### 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
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4
… 2 -print | xargs rm -f
…
save and exit
…
By default the vicidial db comes with ip 10.10.10.15, run the below command
to update to your current server ip and just press enter
…
/usr/share/astguiclient/ADMIN_update_server_ip.pl --old-
server_ip=10.10.10.15
… 2
........................................................................................................
1 Updating the music on hold configuration to work with asterisk
.......................................................................................................
nano /etc/asterisk/musiconhold.conf
change the below settings
[old-default]
(to)
[default]
(and)
[old-quiet]
(to)
[quiet]
.......................................................................................................
Reboot after the installation completed
.......................................................................................................
.......................................................................................................
Final Adjustments
.......................................................................................................
It is important to change the externip and localnet values in the sip.conf
The externip needs to be the public ip of your server.
The localnet will consist of the public ip/netmask of your server.
Dynamic Views theme. Powered by Blogger.
16 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
Run this perl script to update the server_ip fields in the asterisk tables (copy
the command as-is)
…
/usr/share/astguiclient/ADMIN_update_server_ip.pl --old-
server_ip=10.10.10.15
…
nano /etc/asterisk/musiconhold.conf
… ;
; Music on Hold -- Sample Configuration
… ;
[default]
…
mode=files
directory=/var/lib/asterisk/mohmp3
… 2
[quiet]
1
mode=files
directory=/var/lib/asterisk/quiet-mp3
#include musiconhold-vicidial.conf
reboot
.......................................................................................................
Diagnostics
.......................................................................................................
After reboot, check your logs for any errors, make sure asterisk is up and
running. Be proactive and look for problems before you start configuring
vicidial.
Run these commands to view log files:
tail -f -n 50 /var/log/asterisk/messages
tail -f -n 50 /var/log/messages
more /var/log/dmesg
Dynamic Views theme. Powered by Blogger.
17 of 18 5/25/2019, 5:48 PM
VICIdial Scratch Installation in Centos 6.x, Asterisk 1.8, Dahdi & Libpri ... http://asterisk-vicidial.blogspot.com/2013/10/vicidial-scratch-installation...
Sidebar
screen -ls
The output should look similar to this:
There are screens on:
4090.asterisk (Detached)
…
4077.ASTfastlog (Detached)
8325.ASTsend (Detached)
…
8322.ASTupdate (Detached)
4004.astshell20110228193500 (Detached)
… 2 8334.ASTVDremote (Detached)
8328.ASTlisten (Detached)
… 12192.ASTVDadapt (Detached)
8331.ASTVDauto (Detached)
… 9 Sockets in /var/run/screen/S-root.
When you get vicidial configured and working, make sure to follow basic
common sense server administration rules like setting up a firewall, changing
default passwords, disallow remote mysql connections or limiting it, etc...
View comments
18 of 18 5/25/2019, 5:48 PM