Pesquisar neste blog

sábado, 17 de agosto de 2013

Instalando OSLEC (Cancelador de ECHO)

cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.gz
tar -xvzf linux-2.6.28.tar.gz
mkdir /usr/src/dahdi/linux/drivers/staging
cp -fR /usr/src/linux-2.6.28/drivers/staging/echo /usr/src/dahdi/linux/drivers/staging
mkdir /usr/src/dahdi
cd /usr/src/dahdi
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.4.1.2+2.4.1.tar.gz
tar -zxvf dahdi-linux-complete-2.4.1.2+2.4.1.tar.gz
cp -fr /usr/src/dahdi-linux-complete-2.4.1.2+2.4.1 /usr/src/dahdi
sed -i "s|#obj-m += dahdi_echocan_oslec.o|obj-m += dahdi_echocan_oslec.o|" /usr/src/dahdi/linux/drivers/dahdi/Kbuild
sed -i "s|#obj-m += ../staging/echo/|obj-m += ../staging/echo/|" /usr/src/dahdi/linux/drivers/dahdi/Kbuild
echo 'obj-m += echo.o' > /usr/src/dahdi/linux/drivers/staging/echo/Kbuild
cd /usr/src/dahdi/linux
make
make install
# vim /etc/dahdi/system.conf
echocanceller=oslec,1-4

[root@asterisk]# lsmod |grep oslec
dahdi_echocan_oslec    36224  4
echo                   39040  1 dahdi_echocan_oslec
dahdi                 255124  25 dahdi_echocan_oslec,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte13xp,wcte12xp,dahdi_voicebus,wct4xxp
[root@asterisk asterisk]# lsdahdi
### Span  1: WCTDM/0 "Wildcard AEX410" (MASTER)
  1 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
  2 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
  3 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)
  4 FXO        FXSKS       (In use) (EC: OSLEC - INACTIVE)



Um comentário:

Unknown disse...

cara, estou muito perdido, como configuro o oslec no elastix ?
o dahdi-linux-complete-2.10.1-rc2+2.10.1-rc2.tar.gz é o oslec ?