Topic: Dahdi kernel source missing
In this article you are going to learn how to solve the error you don't appear to have sources for kernel installed while installing the Dahdi driver in asterisk scratch installations. You will be facing the kernel issue while installing the dahdi in the linux server which is not updated up to date or in the older version of linux or installing the old dahdi versions.
What is DAHDI?
DAHDI is a collection of open source drivers, for
linux, that are used to interface with a variety of telephony related
It consists of two parts.
The DAHDI-Linux project contains the individual board drivers for the supported hardware.
The DAHDI-Tools project contains an assortment of user space utilities that are used to setup and test the drivers.
Reason for DAHDI kernel Issue
You might not installed the latest Kernel in you linux server or you might have installed older DAHDI version which not supporting the current kernel version installed or kernel devel missing or kernel version mismatch
Workaround for DAHDI kernel issue
Here I have listed the possible workaround to resolve the Kernel source missing issue while installing DAHDI driver in asterisk PBX.
Latest Kernel and Kernel-devel installation
Before proceeding with the DAHDI installation you have to install the latest kernel and kernel devel package , run the below command to update or install latest kernel, note this command is for centos for Debian OS use apt-get
yum install kernel*yum update kernel*yum install kernel-devel
yum install kernel-devel kernel-headers
yum install kernel-$(uname -r)
yum install kernel-devel-$(uname -r)
Edit Kernel version in Grub file
Sometimes the installed kernel version might not be updated
properly in the grub file, the grub file still refers to the old kernel
Follow the below steps to update the kernel version in grub file
Run the below command to check the kernel version
Softlink kernel Version
ln -s /usr/src/kernels/2.6.32-573.12.1.el6.x86_64/ buildrebootreinstall dahdi
Modifying the Dahdi Source code
Download the latest DAHDI Software from the asterisk website, unzip or untar the file and edit the source code as shown below ,followed to that proceed with the DAHDI installation
cd /usr/srcwget https://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gzuntar dahdi-linux-complete-current.tar.gzcd /usr/src/asterisk/dahdi-linux-complete-3.1.0+3.1.0/
Now edit the file
Once file saved proceed with the dahdi installation
dahdi installation steps
make allmake installmake config
Hope this article is helpful in resolving the issue "you do not appear to have sources for kernel installed" while installing the DAHDI driver. for professional support reach me on skype or telegram id: strker24x7