HOW TO INSTALL ASTERISK FROM SOURCECODE, REV 0.0 (But it works ..)
1. Do some temporary "unauthorized editing" of the /etc/yum.conf file (At the moment I do not know any bether way to do it.)
Set [base], [addons] and [updates] to enabled
2. Install compilator environment. (Don't know if some of this stuff could had been left out.)
yum -y install gcc4.i386
yum -y install gcc-c++
yum -y install zlib-devel
3. Istall cvs
yum -y install cvs
4. Download the kernel soucecode pluss openssl-devel
http://mirror.centos.org/centos/4.3/apt/i386/SRPMS.os/http://mirror.centos.org/centos/4.3/apt/i386/RPMS.os/Install kernel source:
rpm -Uvh kernel-2.6.9-34.EL.src.rpm
install openssl-devel
rpm -Uvh --nodeps openssl-devel-0.9.7a-43.8.i586.rpm
5. Login to the Digium CVS server, download software:
cd /usr/src
cvs -d :pserver:anoncvs@cvs.digium.com:/usr/cvsroot login
Password: "anoncvs"
For zaptel installations only:
# cvs -d :pserver:anoncvs@cvs.digium.com:/usr/cvsroot checkout zaptel zapata libpri asterisk
For ip-telephony
cvs -d :pserver:anoncvs@cvs.digium.com:/usr/cvsroot checkout asterisk
6. Compile the software
Step A-C for Zaptel only
6A. Compile Zaptel
# cd zaptel
make install
6B Compile Zapata
# cd ../zapata
make install
6C Compile Libpri
# cd ../libpri
make install
6D Compile Asterisk
# cd ../asterisk
make install
7. Install sample configuration files:
make samples
8. Edit /etc/sip.conf, /etc/iax.conf and extentions.conf, eventualy other configuration files as required.
9. Start up the asterisk server:
asterisk start
10. Go into the CLI shell to monitor and control activity
asterisk -vvvr
11. Decide if to remove or keep development environment.
12. Reedit the temorary changes of the yum.conf file to its original values.
Note: I have tested this with a pure ip-telephony environment only (Not any Zaptel cards).
Best reg Arne