[asterisk-users] oslec + dahdi

Vincent Li vincent.mc.li at gmail.com
Thu Jan 22 12:47:06 CST 2009




On Thu, 22 Jan 2009, troxlinux wrote:

> I have dahdi-linux-2.1.0.3 in centos 5.2 and the last version oslec svn
>
> I have installed oslec and loaded, but it doesn't work me with dahdi
>
> modinfo oslec
> filename:       /lib/modules/2.6.18-92.1.22.el5/kernel/net/ipv4/oslec.ko
> description:    Open Source Line Echo Canceller Zaptel Wrapper
> author:         David Rowe
> license:        GPL
> srcversion:     13813ACD4A228F69FF4B5C1
> depends:
> vermagic:       2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.
>
> oslec is a great great great software, with the version of zaptel
> 1.4.11 I had it installed and without anything of echo in my card TDM
> 400

I almost have the same enviroment as you, I basically run the following 
script to get oslec work with my tdm411 card.

#!/bin/sh
cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2
tar xjf linux-2.6.28.tar.bz2
wget http://downloads.digium.com/pub/telephony/dahdi-tools/dahdi-tools-2.1.0.2.tar.gz
wget http://downloads.digium.com/pub/telephony/dahdi-linux/dahdi-linux-2.1.0.3.tar.gz
tar zxvf dahdi-linux-2.1.0.3.tar.gz
ln -s /usr/src/dahdi-linux-2.1.0.3 /usr/src/dahdi
mkdir /usr/src/dahdi/drivers/staging
cp -fR /usr/src/linux-2.6.28/drivers/staging/echo /usr/src/dahdi/drivers/staging
sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" /usr/src/dahdi/drivers/dahdi/Kbuild
sed -i "s|#obj-m += ../staging/echo/|obj-m += ../staging/echo/|" /usr/src/dahdi/drivers/dahdi/Kbuild
echo 'obj-m += echo.o' > /usr/src/dahdi/drivers/staging/echo/Kbuild
cd /usr/src/dahdi
make
make install
cd /usr/src
tar zxvf dahdi-tools-2.1.0.2.tar.gz
cd /usr/src/dahdi-tools-2.1.0.2
./configure
make
make install

Hope it helps.


Vincent Li
System Administrator
BRC,UBC
perl -e'print"\131e\164\040\101n\157t\150e\162\040\114i\156u\170\040\107e\145k\012"'







More information about the asterisk-users mailing list