Installing wanpipe on Asterisk@Home/TrixboxTo install wanpipe on Asterisk@Home/Trixbox you need to perform the following steps: Note: Do not perform yum update after installing asterisk@home/Trixbox
1. Remove Zaptel autoload on bootup 2. Install required packages 3. Download and install zaptel sources 4. Install Wanpipe 5. Re-compile/re-install Zaptel 6. Configure Zaptel and Asterisk 7. Configure Sangoma cards 8. Add script to auto-execute Zaptel 9. Make sure your Zap channels registered in Asterisk 10. Configure your dialplan
1. Remove Zaptel autoload on bootup Asterisk@Home/Trixbox comes with a script that loads Digium modules upon system bootup. If your system has only Sangoma cards, then you can remove that script:
#>rm /etc/init.d/zaptel
Remove the corresponding symbolic links #>rm /etc/rc?.d/*zaptel -f
2. Install required packages You will need a c++ compiler to be able to compile our utilities.
a. If your system is connected to the internet:
#>yum install gcc-c++
b. if your system is not connected to the internet, you will have to download the RPM packages and install them. libstdc++-devel is required to be able to install gcc-c++.
#>rpm --install libstdc++-devel-3.4.4-2.i386.rpm #>rpm --install gcc-c++-3.4.4-2.i386.rpm (Note: Any version of gcc-c++ and lidstdc++ should work)
You will need the yacc package to be able to compile our utilities. a. If your system is connected to the internet:
#>yum install byacc
b. if your system is not connected to the internet, you will have to download the RPM package and install them.
#>rpm --install byacc-1.9-26.i386.rpm (Note: Any version of byacc should work)
3. Download and install Zaptel sources (trixbox only)
#> cd /usr/src/ #> wget ftp://ftp.digium.com/pub/zaptel/zaptel-1.2-current.tar.gz #> tar xvfz zaptel-1.2-current.tar.gz #> ln -s zaptel-(the current zaptel version) /usr/src/zaptel Reboot your system so that it loads without the zaptel/wct* modules The current Trixbox kernel headers (Trixbox 1.1) have a typo and this causes Zaptel not to compile. See this 4. Install Wanpipe Download the latest wanpipe drivers (2.3.3 or 2.3.4) here. Untar them in the /usr/src/ directory. #>mv wanpipe-beta2-2.3.4.tgz /usr/src #>cd /usr/src #>tar xvfz wanpipe-beta2-2.3.4.tgz #>cd wanpipe #>./Setup install --protocol=TDM
Select Yes for all (Y/N) prompt. After installation, type:
#>wanrouter hwprobe
To confirm that your wanpipe installation modules were installed properly.
4. Re-compile/re-install Zaptel (2.3.3 drivers only) Wanpipe drivers patch Zaptel so that the HDLC framing is performed in hardware, therefore zaptel re-compilation/re-installation is needed. a. If you have wanpipe 2.3.3 drivers, you need to re-compile/re-install zaptel
#>cd /usr/src/zaptel #>make clean;make install; make install-udev
b. If you have wanipe 2.3.4 drivers or later, and you answered "yes" to the "Would you like to recompile/reinstall zaptel?" during step 3, then you do not have to recompile/reinstall zaptel.
5. Configure Zaptel and Asterisk Sample zaptel.conf and zapata.conf files can be found here. #>vi /etc/zaptel.conf #>vi /etc/asterisk/zapata.conf
Note: for asterisk@home 2.5 or later, put the zapata settings in zapata-auto.conf instead of zapata.conf.
7. Configure Sangoma cards Click here for information on how to configure Sangoma cards.
8. Add script to auto-execute Zaptel Click here for information on how to auto-execute Zaptel after Wanpipe driver load.
9. Make sure your Zap channels are registered In the Asterisk CLI, type:
#>zap show channels
Check that you have the correct amount of channels registered in Asterisk, and in the proper context. You should an entry for each of your zap channels in addition to your pseudo channel, for example: Chan Extension Context pseudo from-incoming 1 from-pstn 2 from-pstn 3 from-pstn 10. Configure your dialplan Configure your dialplan
#>vi /etc/asterisk/extensions_additional.conf or through the AMP Portal.
|