Compile-install Zaptel (DHADI) and Asterisk

cd /usr/src/dahdi-linux-complete-2.4.0+2.4.0
make clean && make all && make install && make config

cd /usr/src/libpri-1.4.11.4
make clean && make && make install

cd /usr/src/asterisk-1.6.2.13
make clean
&& ./configure && make menuselect

select core sounds and uncheck all except ulaw.  Same with addon sounds
At menu press "x" to save

make && make install

mkdir /var/run/asterisk

Comments

for dahdi-linux-complete, you must install the kernel source that matches your kernel version before "make all", and that by doing this: sudo yum install kernel-devel-`uname -r`

otherwise you will get the following message: you do not appear to have the sources for the <kernel-version> kernel installed

 

hope it helps some newbies ...

 

Yes, you must have kernel source installed.  I will double check if core or base groups install that and if not I need to add that to my package list.  Thanks for pointing that out.

I believe that libpri sould be installed before dahdi. I once tried installing dahdi before libpri and after all was finished sangoma card didn't work. Resolved by installing again 1-st libpri, 2-nd dahdi, 3-rd asterisk.

Hi,

I run the command sudo yum install kernel-devel-`uname -r` but i still get the error:

make[2]: Leaving directory `/usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-238.19.1.el5PAE kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux'
make: *** [all] Error 2

Kindly help!

regards.

Are you sure kernel-devel is installing?  You should only have to do "yum install kernel-devel" as root or "sudo yum install kernel-devel" running as non-root.  You do not need the 'uname-r' part for RHEL as far as I know.

I found that performing a yum install kernel-PAE-devel got me passed this error where the uname-r didn't ( the give away was the PAE on the end of the line) using CentOS 5.6