Astribank drivers are part of DAHDI packages. So in most of the cases, you can use the binary packages from your Linux distribution repositories. But sometimes you may want to build the DAHDI drivers from sources.
In this article, we will give you outlines of the DAHDI building process for Debian and RedHat Linux including their derived distros such as Ubuntu, CetOS etc. Step 1. Install Required Packages
In order to build the DAHDI the following packages must be installed on your system:
- the kernel source package
- newt-devel for RedHat/CentOS or newt-dev for Debian/Ubuntu
- libusb-devel for RedHat/CentOS or libusb-dev for Debian/Ubuntu
If you run a kernel from your Linux distribution, the distribution will typically provide you with a package including a partially compiled kernel tree. Please follow the instructions below (which vary based on your Linux distribution), in order to install the prerequisite packages. You may need to change the Linux kernel package name, depending on the kernel that is installed on your system.
apt-get install linux-headers-`uname -r` build-essential libnewt-dev libusb-dev
yum install -y kernel-devel-`uname -r` gcc newt-devel libusb-devel
You have also to install the fxload package:
- CentOS 5:
rpm -Uvh http://updates.xorcom.com/astribank/fxload/fxload-2002_04_11-5xr.i386.rpm
apt-get install fxload
Step 2. Download, Build and Install the DAHDI
Download and unpack the latest DAHDI sources package from http://www.asterisk.org/downloads
Copy http://updates.xorcom.com/astribank/hwec/OCT6104E-256D.ima to the source tree before running “make install”:
wget http://updates.xorcom.com/astribank/hwec/OCT6104E-256D.ima mv OCT6104E-256D.ima drivers/dahdi/xpp/firmwares/
Step 3. Reset the Astribank(s)
Each DAHDI package contains the corresponding Astribank firmware. In order to force the Astribank to reload the firmware, it is necessary to either reset it or simply switch it off/on.
a) Stop Asterisk and DAHDI:
b) Wait until the Astribank will appear in the lsusb output as e4e4:1162 device
c) start DAHDI and Asterisk: