OSLEC manual install on trixbox 2.8.0.4
Note: Formating in progress
- What I am doing here is to install the oslec code and compile the dahdi_echocan_oslec using stock trixbox kernel and the same version of dahdi that is distributed with trixbox.
- Here's what I did to make it work: You need a small patch, and then follow the install-28.sh script..
- Download the dahdi_oslec_trixbox_28.patch from this page
- Save the following to install-28.sh
cd /usr/src
yum install subversion
yum -y install libxml2 gcc-c++ wget bison make
yum -y update kernel
yum -y install kernel-devel.i686
yum -y install kernel-headers.i386
#get oslec from svn
svn co http://svn.astfin.org/software/oslec/trunk/ oslec
# Wget dahdi to match trixbox
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.3.0.1.tar.gz
tar -xzvf dahdi-linux-2.3.0.1.tar.gz
ln -s dahdi-linux-2.3.0.1 dahdi
mkdir -p /usr/src/dahdi/drivers/staging/echo
cp -fR /usr/src/oslec/kernel/* /usr/src/dahdi/drivers/staging/echo
cp -fR /usr/src/oslec/spandsp-0.0.3 /usr/src/dahdi/drivers/staging/
cd /usr/src/dahdi/
patch -p1 < dahdi_oslec_trixbox_28.patch
make
make install
run it
sh -x ./install-28.sh
- That should do it...
Other things you have to do
- Follow the rules, make sure that chan_dahdi.conf is correct:
echocancel=256 ; or yes for the 128 taps 16ms version, I have mine set for 256 taps or 32ms
echocancelwhenbridged=no
;echotraining=800 -- THIS MUST BE DISABLES for oslec to work.
- Then change your channels to OSLEC in /etc/dahdi/system.conf
fxsks=1
echocanceller=oslec,1
fxoks=2
echocanceller=oslec,2
fxoks=3
echocanceller=oslec,3
fxoks=4
echocanceller=oslec,4
Then the typical
amportal stop
/etc/init.d/dahdi restart
/etc/init.d/oslec start
chkconfig oslec on
amportal start
Note: If you don't have the oslec transcoder running, dahdi will NOT start, and when you get into asterisk -r you won't have the dahdi module loaded.... Just make sure oslec is started
- Please msg me (sbrath) if this worked for you, I'd like to know posting this was worth the documentation :)