Error while compiling Dhadi in SAAS HDD

Issue :

While compiling dahdi in SAAS HDD we are getting the error as you do not appear to have the sources for the 2.6.18-164.el5 kernel installed.

Make[1] : *** [modules] Error 1
Make[1] : Leaving directory ‘/usr/src/asterisk/dahdi-linux-complete-2.4.1+2.4.1/linux’
Make : *** [all] Error 2

Solution :

Step1 – Mount the cdrom & insert the centos

Step2– go to vi /etc/yum.repos.d/CentOS-Media.repo
go to line number: 20 enabled=1

Step3 – Then run the command :
yum –disablerepo=\* –enablerepo=c5-media install kernel-devel kernel-header