How To Install Asterisk1.6.2 On CentOS 5

 

 How To Install Asterisk1.6.2   On CentOS 5

Install dependencies:

# yum -y install kernel-devel bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++ make libxml2-devel

Download Asterisk and DAHDI:

# wget https://launchpad.net/asterisk/1.6.2/1.6.2.24/+download/asterisk-1.6.2.24.tar.gz && wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.3.0.1+2.3.0.tar.gz

Extract Asterisk and DAHDI:

# tar -xvzf asterisk-1.6.2.24.tar.gz && tar -xvzf dahdi-linux-complete-2.3.0.1+2.3.0.tar.gz

Build DAHDI:

# cd dahdi-linux-complete-2.3.0.1+2.3.0
# make all
# make install
# make config

Start DAHDI:

# service dahdi start

Build Asterisk:

# cd asterisk-1.6.2
# make clean
# ./configure

Configure Asterisk build:

# make menuselect
# make
# make install

Install sample files in /etc/asterisk:

# make samples
# make config

Verify the Asterisk installation:

# safe_asterisk
# asterisk -vvvvvr
CLI> reload
CLI> quit

Start Asterisk:

# service asterisk start

Set Asterisk and DAHDI to start on boot:

# chkconfig dahdi on
# chkconfig asterisk on

Leave a Reply

Your email address will not be published. Required fields are marked *