Base Install of Asterisk on a CentOS/RHEL box:
Before you begin, you'll probably want to bring all your packages up to date. To do so, run 'yum -y update'. If any kernel files were updated as part of this process, you will need to reboot the machine (shutdown -r now). Repeat the process until no more updates are available.
Download the pre-requisite of asterisk:
gcc
kernel-devel
bison
openssl-devel
doxygen #para makagawa ka ng program documentations/manual pages para sa asterisk
kernel-devel
bison
openssl-devel
doxygen #para makagawa ka ng program documentations/manual pages para sa asterisk
Note: Kernel-smp-devel (instead of kernel-devel) is necessary if you are using a dual core processor.
either through apt-get:
apt-get update
apt-get install gcc kernel-devel bison openssl-devel
apt-get install gcc kernel-devel bison openssl-devel
or yum:
yum -y update
yum install gcc kernel-devel bison openssl-devel
yum install gcc kernel-devel bison openssl-devel
then download the latest asterisk version at asterisk.org to /usr/src:
cd /usr/src
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-<version>.tar.gz
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-<version>.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-<version>.tar.gz
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-<version>.tar.gz
#if you are going to use PRI cards(eg. TE110P, TE406P) you need to down this:
wget http://ftp.digium.com/pub/libpri/releases/libpri-<version>.tar.gz
then untar all the files
tar -zxf zaptel-<version>.tar.gz
tar -zxf asterisk-<version>.tar.gz
tar -zxf libpri-<version>.tar.gz
tar -zxf asterisk-<version>.tar.gz
tar -zxf libpri-<version>.tar.gz
### INSTALLING ZAPTEL ###
cd /usr/src/zaptel
make clean
make
make install
#If you want "service zaptel restart" command to work do this
make config
make clean
make
make install
#If you want "service zaptel restart" command to work do this
make config
### INSTALL LIBPRI ###
# If you are using E1 cards you need to install LIBPRI
cd /usr/src/libpri
make clean
make
make install
make clean
make
make install
### INSTALLING ASTERISK ###
cd /usr/src/asterisk
make mpg123 # kung gusto mong gumamit ng MoH
make clean
make
make install
#If you want sample files to be created in /etc/asterisk
make samples
#If you want program docs/manual pages for asterisk
make progdocs
#If you want "service asterisk restart" command to work do this
make config
make mpg123 # kung gusto mong gumamit ng MoH
make clean
make
make install
#If you want sample files to be created in /etc/asterisk
make samples
#If you want program docs/manual pages for asterisk
make progdocs
#If you want "service asterisk restart" command to work do this
make config
- note:
if you are using kernel 2.6.9-34.EL you need to edit spinlock.h or your zaptel will not compile.
vi /usr/src/kernels/2.6.9-34.EL-x86_64/include/linux/spinlock.h
then search for this line:
#define DEFINE_RWLOCK(x) rw_lock_t x = RW_LOCK_UNLOCKED
change it to:
#define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED
see the url for more info
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568
http://bugs.digium.com/view.php?id=6425
now you're finish installing asterisk.
Page Changes
http://forums.digium.com/viewtopic.php?t=13486&view=next&sid=c2e73027d8fcadc4107367e2c0c02a48
the target "linux26" appears to have been removed from the latest makefile, and instead some auto-detection of the kernel is happening.
Hindi Gumana
kasi ganito ang nangyare sa akin nung ako ay humawak ng isang IBM DUAL XEON na Computer na nakalagay sa server rack sa isang call center dito sa Ortigas, Pasig, Philippines.
Ako ay marunong mag install ng asterisk na merong FREEPBX na merong Vicidial.
Hindi ko alam na mali pala ang kernel-devel. SMP pala dapat :(
Sana matuto na tayo mag basa ng mabuti kung ano ang nakikita sa screen