keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Oslec Echo Canceller installation on A400P / Trixbox 2.8

13 years 8 months ago #6038 by Paddy_ot
Hi,

I'm having very bad echo on my a400P. I have read that the Oslec Echo Canceller work well with DAHDI

I have tried to install it using the instructions below from their site. However I get an error when running the folowing:

sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" /usr/src/dahdi/drivers/dahdi/Kbuild

Gives me:

sed: couldn't edit /usr/src/dahdi/drivers/dahdi/Kbuild: not a regular file

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
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
13 years 8 months ago #6040 by lisa.gao
Hi,
You should download dahdi the same version as trixbox. Then run the following command. Please replace the path /usr/src/dahdi/drivers/dahdi/Kbuild with the path of your system.

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
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

Best regards!

13 years 8 months ago #6042 by Paddy_ot
Hi Lisa,

Thanks for the reply

I have downloaded the dahdi source version 2.2.0 the same as my Trixbox 2.8.0.1

I have the dahdi source sitting in /usr/src/dahdi

You said " Please replace the path /usr/src/dahdi/drivers/dahdi/Kbuild with the path of your system"

What do you mean the path to my system? Is this the path to the source files sitting in /usr/src/dahdi?

If so I tried this and it has not helped.

Regards
13 years 8 months ago #6043 by lisa.gao
Hi,
Assume that you download dahdi-linux-complete-2.2.0+2.2.0
You should execute the command like this:
sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" /usr/src/dahdi-linux-complete-2.2.0+2.2.0/drivers/dahdi/Kbuild
Others command is similar.

Best regards!

13 years 8 months ago #6044 by james.zhu
hi:
try: yum install oslec-modules

13 years 8 months ago #6046 by Paddy_ot
Hi James,

The module downloaded and installed ok

I have an a400p card with 4 x FXO modules

How do I configure the card / Modules to use the OSLEC echo canceller. The echo is all on my end. Please see below:

[trixbox1.localdomain ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 01 Slot 09
basechan=1
totchans=4
irq=82
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
Time to create page: 0.043 seconds
Powered by Kunena Forum