You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
#Get stuff from the internet
|
|
cd /tmp
|
|
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
|
|
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz
|
|
wget -O jansson.tar.gz https://github.com/akheron/jansson/archive/v2.10.tar.gz
|
|
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
|
|
|
|
#Compile and Install DAHDI
|
|
cd /usr/src
|
|
tar xvfz /tmp/dahdi-linux-complete-current.tar.gz
|
|
tar xvfz /tmp/libpri-current.tar.gz
|
|
rm -f /tmp/dahdi-linux-complete-current.tar.gz /tmp/libpri-current.tar.gz
|
|
cd dahdi-linux-complete-*
|
|
make all
|
|
make install
|
|
make config
|
|
cd /usr/src/libpri-*
|
|
make
|
|
make install
|
|
|
|
#Compile and Install jansson
|
|
cd /usr/src
|
|
tar vxfz /tmp/jansson.tar.gz
|
|
rm -f /tmp/jansson.tar.gz
|
|
cd jansson-*
|
|
autoreconf -i
|
|
./configure --libdir=/usr/lib64
|
|
make
|
|
make install
|
|
|
|
#Compile and install Asterisk
|
|
cd /usr/src
|
|
tar xvfz /tmp/asterisk-16-current.tar.gz
|
|
rm -f /tmp/asterisk-16-current.tar.gz
|
|
cd asterisk-*
|
|
contrib/scripts/install_prereq install
|
|
./configure --libdir=/usr/lib64 --with-pjproject-bundled
|
|
contrib/scripts/get_mp3_source.sh
|
|
make full
|
|
|
|
make
|
|
make install
|
|
make config
|
|
ldconfig
|
|
chkconfig asterisk off
|
|
|