briankelly63
Guru
- Joined
- Nov 14, 2008
- Messages
- 1,398
- Reaction score
- 320
Steps for OSLEC installation on PIAF Purple
amportal stop
reboot (shutdown –r 0) or whatever you prefer...
Comments:
Oslec functionality is almost completely in the kernel at this point. Perhaps another revision or two and it will be there. Because of that it is getting easier to install this component and get up and running.OSLEC is an alternative, open source cancellation system for Asterisk that many have had excellent success with…
No echo cancellation scheme is perfect and you should always look to cover the basics in term of the condition of the lines involved and how they are loaded. In addition you should always be looking to properly adjust the gains on the cards and telephone sets involved. With those things set properly the echo cancellation process will have a much easier job without creating a new set of issues.
The process outlined has been tested with PIAF Purple.
As I said OSLEC should be fully “built in” soon. When that happens you’ll be able to select it as easily as any of the existing choices like mg2.
GitHub is used for “echo” files download because of recent security and availability issues involving the kernel.org site.
What is being done:
We switch to the appropriate directory, download a recent revision of Linux, decompress the archive,copy the appropriate section into the directory structure that the “make” expects, un-comment two lines in a file, add a line to the Kbuild file, switch directories, compile, install. The last two sed lines are a further part of the configuration. You can use these two sed commands or go into the files and edit them yourself. Either way, when done, do a dahdi_cfg -vv
When all is said and done if you change mg2 to oslec in the etc/dahdi/system.conf file, run dahdi_cfg –vv and there is no error message you’ve been successful.
Note: During the "make" process there is a warning regarding a couple of vpmadt032 related files. Please disregard those warnings.
Best of Luck,
Brian Kelly
This "how to" version pulls together previous articles from various places, makes changes, adds further explanation and has been tested with the current Purple
amportal stop
Code:
cd /usr/src
wget -N --no-check-certificate --no-directories https://nodeload.github.com/mirrors/linux-2.6/tarball/master
tar xf master
mkdir –p /usr/src/dahdi/linux/drivers/staging
cp -fR //usr/src/mirrors-linux-2.6-9e79e3e/drivers/staging/echo /usr/src/dahdi/linux/drivers/staging
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
make
make install
sed -i "s|mg2|oslec|” /etc/dahdi/system.conf
sed -i 's|#DAHDI_UNLOAD_MODULES="dahdi echo"|DAHDI_UNLOAD_MODULES="dahdi echo"|' /etc/dahdi/init.conf
dahdi_cfg –vv
reboot (shutdown –r 0) or whatever you prefer...
Comments:
Oslec functionality is almost completely in the kernel at this point. Perhaps another revision or two and it will be there. Because of that it is getting easier to install this component and get up and running.OSLEC is an alternative, open source cancellation system for Asterisk that many have had excellent success with…
No echo cancellation scheme is perfect and you should always look to cover the basics in term of the condition of the lines involved and how they are loaded. In addition you should always be looking to properly adjust the gains on the cards and telephone sets involved. With those things set properly the echo cancellation process will have a much easier job without creating a new set of issues.
The process outlined has been tested with PIAF Purple.
As I said OSLEC should be fully “built in” soon. When that happens you’ll be able to select it as easily as any of the existing choices like mg2.
GitHub is used for “echo” files download because of recent security and availability issues involving the kernel.org site.
What is being done:
We switch to the appropriate directory, download a recent revision of Linux, decompress the archive,copy the appropriate section into the directory structure that the “make” expects, un-comment two lines in a file, add a line to the Kbuild file, switch directories, compile, install. The last two sed lines are a further part of the configuration. You can use these two sed commands or go into the files and edit them yourself. Either way, when done, do a dahdi_cfg -vv
When all is said and done if you change mg2 to oslec in the etc/dahdi/system.conf file, run dahdi_cfg –vv and there is no error message you’ve been successful.
Note: During the "make" process there is a warning regarding a couple of vpmadt032 related files. Please disregard those warnings.
Best of Luck,
Brian Kelly
This "how to" version pulls together previous articles from various places, makes changes, adds further explanation and has been tested with the current Purple