cd /usr/src
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.2.6.tar.gz
wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.1+2.2.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.6.2.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.2.6.tar.gz
wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.2.1+2.2.1.tar.gz
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-addons-1.6.2.0.tar.gz
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.2.tar.gz
tar -zxvf asterisk-1.6.2.6.tar.gz
tar -zxvf dahdi-linux-complete-2.2.1+2.2.1.tar.gz
tar -zxvf asterisk-addons-1.6.2.0.tar.gz
tar -zxvf libpri-1.4.10.2.tar.gz
Install Dahdi -
**** START - ONLY REQ for dahdi version below 2.3 ****
cd /usr/src/dahdi-linux-complete-2.2.1+2.2.1/linux/include/dahdi
edit dahdi_config.h
REPLACE :
#ifndef _DAHDI_CONFIG_H
#define _DAHDI_CONFIG_H
#ifdef __KERNEL__
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <linux/config.h>
#else
#include <linux/autoconf.h>
#endif
#endif
WITH :
#ifndef _DAHDI_CONFIG_H
#define _DAHDI_CONFIG_H
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#ifdef __KERNEL__
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <linux/config.h>
#endif
#endif
tar -zxvf dahdi-linux-complete-2.2.1+2.2.1.tar.gz
tar -zxvf asterisk-addons-1.6.2.0.tar.gz
tar -zxvf libpri-1.4.10.2.tar.gz
Install Dahdi -
**** START - ONLY REQ for dahdi version below 2.3 ****
cd /usr/src/dahdi-linux-complete-2.2.1+2.2.1/linux/include/dahdi
edit dahdi_config.h
REPLACE :
#ifndef _DAHDI_CONFIG_H
#define _DAHDI_CONFIG_H
#ifdef __KERNEL__
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <linux/config.h>
#else
#include <linux/autoconf.h>
#endif
#endif
WITH :
#ifndef _DAHDI_CONFIG_H
#define _DAHDI_CONFIG_H
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#ifdef __KERNEL__
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#include <linux/config.h>
#endif
#endif
cd /usr/src/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/wcb4xxp
Modify base.c
Remove #include <linux/autoconf.h>
cd ..
cd wct4xxp
Modify vpm450m.c
Remove
#else
#include <linux/autoconf.h>
**** END - ONLY REQ for dahdi version below 2.3 ****
Modify base.c
Remove #include <linux/autoconf.h>
cd ..
cd wct4xxp
Modify vpm450m.c
Remove
#else
#include <linux/autoconf.h>
**** END - ONLY REQ for dahdi version below 2.3 ****
cd /usr/src/dahdi-linux-complete-2.2.1+2.2.1
make clean
make
make install
make config <-- creates startup scriptsmodprobe dahdi_dummy
Install libpri -
cd /usr/src/libpri-1.4.10.2
make clean
make
make install
Install Asterisk -
cd /usr/src/asterisk-1.6.2.6
sed -i 's/PROC=@HOST_CPU@/PROC=arm/g' /usr/src/asterisk-1.6.2.6/makeopts.in
make clean
./configure - this checks for all required pkgs before it can compile - Must be clean - will see Asterisk logo if OK
make menuconfig - this will allow you to select options to install with Asterisk
make
If the building ran fine, you should read on the screen:
+--- Asterisk Build Complete ---
+ Asterisk has successfully been built, and
+ can be installed by running:
+
+ make install
+--------------------
make install
You should then read something like:
+-- Asterisk Installation Complete ---+
...
...
make samples - To install sample config files
Having Asterisk to start at boot is as simple as running, in the /asterisk-1.6.2.1 folder, run the command:
Install libpri -
cd /usr/src/libpri-1.4.10.2
make clean
make
make install
Install Asterisk -
cd /usr/src/asterisk-1.6.2.6
sed -i 's/PROC=@HOST_CPU@/PROC=arm/g' /usr/src/asterisk-1.6.2.6/makeopts.in
make clean
./configure - this checks for all required pkgs before it can compile - Must be clean - will see Asterisk logo if OK
make menuconfig - this will allow you to select options to install with Asterisk
make
If the building ran fine, you should read on the screen:
+--- Asterisk Build Complete ---
+ Asterisk has successfully been built, and
+ can be installed by running:
+
+ make install
+--------------------
make install
You should then read something like:
+-- Asterisk Installation Complete ---+
...
...
make samples - To install sample config files
Having Asterisk to start at boot is as simple as running, in the /asterisk-1.6.2.1 folder, run the command:
make config
which will choose the right init files for your distribution, and copy them in /etc/asterisk
For your information, those files are located in the contrib/init.d/ folder
Install asterisk-addons
cd /usr/src/asterisk-addons-1.6.2.0
./configure
make menuselect
make
make install
make samples (use only for a fresh install, might overwrite your config!)
ln -s /lib/modules/`uname -r`/ /lib/modules/`uname -r`/asterisk
depmod
TEST ASTERISK
=============
As the superuser root, from whatever folder you are in, run:
asterisk
asterisk -rvvvvv
Asterisk will load it’s modules and it’s configuration, you should then read:
Asterisk Ready.
*CLI>
this is the command line interface of Asterisk, to logout run the command:
*CLI> core stop now
No comments:
Post a Comment