Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Pre-Installation

Make sure that you have installed the linux kernel headers for your currently running kernel. By default, DAHDI will look for these in /lib/modules/`uname-r`/build. How to install stock headers varies from one linux distro to another.

 

Code Block
titleDebian & Ubuntu
apt-get install linux-headers-`uname -r`

Installation

Code Block
titleInstallation
git clone git://git.asterisk.org/dahdi/linux dahdi-linux
git clone git://git.asterisk.org/dahdi/tools dahdi-tools
cd dahdi-linux
make install
cd ../dahdi-tools
./configure
make install
make config
dahdi_genconf modules
cat /etc/dahdi/modules
modprobe <previously listed detected drivers>
dahdi_genconf system
dahdi_cfg

Your drivers should now be up and running and ready for use. This should leave you with a basic /etc/dahdi/system.conf customized for your existing hardware. You will likely want to edit the file to suit your specific needs.

Verification

Code Block
titleHow to test T1/E1 cards
cd dahdi-tools
make patlooptest
 
# Turn on digital loopback on span 1
dahdi_maint -s1 -l localhost
 
# Run a pattern test over channel 1
# If this passes with 0 errors, then you are looping data correctly from user space, through the hardware and back to user space correctly
./patlooptest 1 -t 10
 
# Disable local loop to allow proper operation
dahdi_maint -s1 -l off