Thursday, 25 June 2015

Updating timezone for Vicidial server

As we have done the dependencies installation and mysql configuration, here you need to focus on the timezone as its telling you in which time-stamp you are working.

Simple command to be followed and some minor adjustments.

First we have to check what timezone our server has default.

Command to be used

"date"

Mon Sep 17 22:59:24 UTC 2010

means the server is in UTC, if you wish to change the timing to PDT or any .....just remove localtime

Commands to be used

# cd /etc
# rm localtime ( it will remove local time)

Now you can check what timezones are there on your server

Command to be used

# ls /usr/share/zoneinfo/US/ ( i have used united states, you can use Asia if you want)

Results will be ( according to the country)

Alaska          Arizona         Eastern         Hawaii          Michigan        Pacific
Aleutian        Central         East-Indiana    Indiana-Starke  Mountain        Samoa......

can be more according to the country.

Command to be used

# ls /usr/share/zoneinfo/US/

Link the file named as there region i will link Pacific file from the above United states directory to the /etc/localtime directory as

# cd /etc
# ln -s /usr/share/zoneinfo/US/Pacific localtim

Now your vicidial server will be in Pacific localtim

To cross check the timezone

# date
Mon Sep 17 23:10:14 PDT 2010

Now you have got skills to change the timezone of your Linux machine .








PHP , MSQL,PEARL,CPAN and its related dependencies

We have already covered first two points in the previous. so i will start from the  installation of PHP , MSQL,PEARL,CPAN and its related dependencies.

Now after login with the root you should run the command

Process 1.

"yum install rdate unzip make patch gcc gcc-c++ subversion php php-devel php-gd gd-devel php-mbstring 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 httpd libpcap libpcap-devel libnet ncurses ncurses-devel screen mysql-server mysql-devel ntp kernel* mutt glibc.i686 conntrack-tools telnet"

it will install all the packages which we have mentioned above automatically.

its not dependent on the Centos 32 bit or 64 bit.


Process.2 

Every application uses some database to hold its data, here you will be using MYSQL, so we need to apply the mysql password and will create the database.

So follow the command

first command
"/etc/init.d/mysqld start " and press "Enter"

Now it will start the installation and configuration simultaneously.

Second Command

"/usr/bin/mysqladmin -u root password 'MYSQL_PASSWORD'"

Please replace the "MYSQL_PASSWORD" with the password you want to have with the database.

Third Command

"mysql_secure_installation"

Now it will install all the mysql, but remember the password which it has asked you to put in the command .

it will ask you and just confirm password and then press only enter and enter until it will be finished.


Forth Command

"chkconfig mysqld on"

Its essential to check the services of the mysql because if its not working then dialer will not do any activity.

this command always check the services and send notification if its not working.

Remember one thing

as you have done the MYSQL installation, so we need to copy the original file of mysql configuration which can be needed in future.

Steps are as follows

Stoping the mysql services

A) "service mysqld stop"

Copying the file and renaming it with my.cnf.original

B) "cp /etc/my.cnf /etc/my.cnf.original"

Checking for errors

C) "echo "" > /etc/my.cnf"

Now there will be no file exist my.cnf , so we will create and paste the require configuration needed.

I will use nano its simple and quick.

D) "nano /etc/my.cnf"

and now copy all this and just right click in your file.

from this blue to end blue ( hahahah its funny but easy) 
service mysqld stop
cp /etc/my.cnf /etc/my.cnf.original
echo "" > /etc/my.cnf
[mysql.server]
user = mysql
#basedir = /var/lib

[client]
port = 3306
socket = /var/lib/mysql/mysql.sock

[mysqld]
datadir = /var/lib/mysql
#tmpdir = /home/mysql_tmp
socket = /var/lib/mysql/mysql.sock
user = mysql
old_passwords = 0
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
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

join_buffer_size = 1M
key_buffer = 512M
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

# If using replication, uncomment log-bin below
#log-bin = mysql-bin

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

[mysqld_safe]
#log-error = /var/log/mysqld/mysqld.log
#pid-file = /var/run/mysqld/mysqld.pid

Now do CTRL-X and press Enter.

your configuration has been saved.













List of Packages essential for Vicidial

We have to install one by one all the packages which are available online free of cost,

I have already downloaded , but you need to download for that i will share the list 

1.  Centos latest version ( that we have laready install)

2.  Updating packages by command ( yum -y update) already done.

3.  PHP , MSQL,PEARL,CPAN and its related dependencies.

4.  Updating timezone

5.  Asterisk-Perl module

6.  Lame,ttyload,iftop,mtop,mytop,htop,sipsak and ploticus.

7.  eAccelerator for PHP

8.  Asterisk latest vesrion

9.  Installing astGUIclient from there website (ViciDial)

10 Making Final Adjustment.

11.Vicidial server has been installed.

So we will pick one by one point and then finally you will able to install your own vicidial server.

Updating the Packages in Centos for Vicidial

We have to update all the packages in the centos so that we have no need to update in between. it will take some time about 20-30 minutes.

Now just enter the command

"yum -y update"

Now you will find it update one by one all package

You will find some time it will ask for Y or N.

always type N

Then press enter. now it will go on and on.

So at the End it will complete

So next we will install packages require for Vicidial.

Watch next...

Assigning Static IP to Linux Server used for vicidial

Step-3 Start the Procedure

I have no machine and also m not interested , i will use the Vmware and will use the ISO image to configure my Machine which we have discussed earlier.

here we go login with root in Centos and check the version and bits

After Login just enter the command

uname -a

It will provide you the information
Linux pbx.testing.net 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Means my system is Linux Centos 64 Bit

you just need to do few changes in files which later i will tell you later.

Now you have to login into the machine and  assign a static IP address ( WAN IP) if dialer is static.

Just Login woth root

go to the directory

"cd /etc/sysconfig/network-script"

then do "ls" to check how many interfaces you have on your machine.

you can put the IP address on any interface you want.

Suppose it was ifcfg-etho

then do nano or VI or less any tool you want to edit the file

>>> nano ifcfg-eth0

then set the dynamic to static and save it.

now you should come out of directoty and retsrat the service of network

"service network restart"

Now you can verify the IP by running command
"ifconfig"

it will display all the information of the all the interfaces.



Items to be used to before Vicidial start Installation

Step -2 Items to be used to before Vicidial start Installation

Generally any body in there home/offices have centos CD, good bandwidth and procedure to be followed.

In this you need 2 items ( Centos & Good bandwidth)  because i have shared the procedure.

Dont laugh but focus on items because you require these in completing the installation.

if you not have Centos then go to the http://www.centos.org/download/

check the latest version and download it and make a ISO or Write it in DVD as bootable.

I think you need to follow the steps for Centos too.

So here are they

make sure you have made the DVD Bootable.

1. Insert the DVD in you system.

2. make sure boot prioirty is DVD/CD

3. Welcome page will come , so select the install or upgrade the system and press enter

4. Now select the Language i.e English.

5. Select Storage device to "Basic Storage Device" and press Next.

6. If any Warning comes for New hard disk , discard the message.

7. Please select the Minimal installation and press next.

8. it will start its installation.

9. Finally reboot.


Information about Vicidial before installation

Step-1 Introduction about Vicidial

The vicidial is an open source dialer which has i think solved 99% of the call center solution whether its a Inbound,Predictive Lead rains, blaster, survey.

it has made the call the centre setup so easy now a days that anyone who has some knowledge and idea for the call centre setup will be prefer Vicidial. it 

has many same version like goauto dial etc etc, the person who works on this dialer customize its graphical user end and tag him his name or any name and 
launch that dialer in market and start making money of it.

Question comes How and why its so RED HOT in the market.

1) its a open source.

2) Require minimal professional skills for installation.

3) NO PRI/DIGIUM cards required which are too costly.

4) Very handy Graphical user interface.

5) easy available in the market

For these reasons i started learning the techniques so that i can install my own dialer. but frankly gus's its a tuff job but not impossible as it only require time and time only . also some keen observation and 1% knowledge of linux so that you can edit save and files.

I personally prefer Centos to be used to install vicidial as it is easily available and very handy to use. here are some important points which we need to understand  before installing the vicidial.

How much you want ?

Are you having proper resources ?

Main Thing is the bandwidth.


If you have answer for all those question then you can gohead.

I have thats why iam writing this blog.


In Next Chapter we will discuss the list of resource to move further.