First some background: I use Asterisk to route my calls through multiple VoIP providers. Calls to Australian landlines through iiNet since they’re free, and the rest through Pennytel since they’re cheap. My el-cheapo ATA simply registers with Asterisk and my mum just calls as usual, and everything’s automagically cost optimised.
Problem: I did an apt-get -y dist-upgrade after not having touched this system for quite a while, and one of Asterisk’s dependencies, dahdi, failed to install with the error message FATAL: Module dahdi not found.
Basically, the dependecies don’t cause automatic installation of the needed kernel drivers, so the following will fix it:
apt-get -y install linux-headers-`uname -r` build-essential apt-get -y remove dahdi* apt-get -y install dahdi-source cd /usr/src tar jxvf dahdi.tar.bz2 cd modules/dahdi make make install apt-get -y asterisk
source: http://cryptwizard.info/?p=691