Announcements
Sangoma Hardware
HW Installation Manuals
Wanpipe Drivers Download Linux | Windows
Wanpipe for Asterisk
Install
Configure
Operation
Debugging
Tutorials
Appendix
Trixbox
Faxing
FAQ
Tapping(*New)
BRI: B700 / A500
Netborder SIP PSTN Gateway
Linux
Windows
Release Notes
FAQ
Config Options
SMG-SS7
Install/Upgrade
Configure
Operation
Debugging
FAQ
Wanpipe TDM API
LibSangoma
Install/Config
FreeTDM
Wanpipe MTP2 API
Wanpipe for Wan/API
Install
Configure
RPMs
Operation
ADSL - S518
ADSL2+ - S519
Multi-Link PPP
Appendix
FAQ
Wanpipe for FreeSwitch
Install
Configure
Operation
FAQ
Wanpipe for Yate
Install
Configure-Linux
Wanpipe for Callweaver
Install
Configure
Wanpipe Case Studies
Troubleshooting
Tech Support
Glossary
| Wanpipe for Windows |
Dahdi / Asterisk / Wanpipe
- Requirements
- Download Asterisk/Dahdi/Libpri
- Installing Asterisk/Dahdi/Libpri
- Driver Installation
- Configuration/Operation
- Dahdi Documentation (voip-info)
For most distributions such as : CentOS, Fedora, RedHat, SuSE, Debian .... default packages are enough. Therefore, there is no need for downloading any extra packages.
For detailed information of package requirements click here.
Downloading Asterisk/Dahdi/LibPRI
Go to http://www.asterisk.org/downloads and download Asterisk/Dahdi/LibPRI (Look for Asterisk downloads on right-hand side) .
You can use wget command to download sources (tar ball) on your local directory.
For example:
#> wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.1-current.tar.gz
Installing Asterisk/Dahdi/Libpri
- Dahdi Installation
Download Dahdi into arbitrary directory (/usr/src) and untar it.
#>tar xvfz dahdi-linux-<version>
#>tar xvfz dahdi-tools-<version>#>ln -s dahdi-linux-<version> dahdi
#>cd dahdi-linux-<version>
#>make
#>make install
#>cd ..
#>cd dahdi-tools-<version>
#>./configure
#>make
#>make install - LibPRI Installation
Download libpri into arbitrary directory (/usr/src) and untar it.
#>tar xvfz libpri-<version>
#>cd libpri-<version>
#>make
#>make install - Asterisk Installation
If you are upgrading Asterisk make sure that old asterisk modules are removed from /usr/lib/asterisk/modules
#> cd /usr/lib/asterisk
Download Asterisk into arbirary directory (/usr/src/) and untar it.
#> mv modules modules.old
Untar Asterisk and proceed with installation#>tar xvfz asterisk-<version>.tgz
#>cd asterisk-<version>
#>./configure
#>make
#>make install
#>make samples (in case of very first install)
Please note: <version> refers to the specific release of your program. For instance, dahdi-linux-2.0.0.tar.gz, once untarred will create the folder dahdi-linux-2.0.0.
Once Dahdi, Libpri and Asterisk are downloaded and untarred, you may proceed with WANPIPE® installation.
After completing the WANPIPE® TDM installation, you may proceed to configuring the full Asterisk suite.
Wanpipe TDM/Dahdi Installation (Linux)
- Download the the latest feature frozen release -> Wanpipe Feature Frozen Driver
- Untar wanpipe release in arbitrary directory (/usr/src/ is recommended).
#>tar xvfz wanpipe-<version>.tgz
After untarring WANPIPE®, the wanpipe<version>/ directory will be created.
#>cd wanpipe-<version>
--- - Run ./Setup dahdi or make dahdi from the newly created wanpipe-<version> directory
#>./Setup dahdi
or
#> make dahdi DAHDI_DIR=<absolute path of dahdi>
#> make install
*** make should be used by power users who know exactly what they are doing :)
Proceed with installation Select "Y" for each option.
Setup will try to auto-detect dahdi sources in /usr/src directory ?
[By default Setup will look in /usr/src]
*** Setup is great for one off install, make is great for power users.
--- - Proceed with Defaults for the rest of the compilation.
-- - Last step in installation will ask you to configure wanpipe cards for Dahdi
-> Proceed with YES this is your initial installation
-> Note wancfg_dahdi configurator will overwrite your
system.conf and chan_dahdi.conf files and
save the originals as system.conf.bak and chan_dahdi.conf.bak
If any errors are encountered during the compilation of the utilities, click here for assistance.
Confirm Successful Wanpipe/Dahdi Installation
- Confirm successful Wanpipe/Dahdi installation run:
#>wanrouter hwprobe
This command will load the wanpipe and Dahdi modules and will print out list of all Sangoma hardware installed on the system.
- Create Wanpipe/DAHDI Configuraiton Files -> run:
#> wancfg_dahdi
---
(Note -> this step was offered at the end of the ./Setup zaptel,
if you already configured the card proceed to the next step)
- Creates Dahdi configuration files
- Creates wanpipe configuration files in /etc/wanpipe
- Creates dahdi config file in /etc/dahdi/system.conf
- Creates Asterisk dahdi config file in /etc/asterisk/chan_dahdi.conf
--- - Start Wanpipe Ports
#> wanrouter start
- Starts all wanpipe ports
- Check /var/log/messages for info or errors
--- - Configure DAHDI module
#> dahdi_cfg
- configures DAHDI kernel modules from /etc/dahdi/system.conf ( Previously - ztcfg )
--- - Start Asterisk
#> safe_asterisk
Wanpipe requires a list of packages on your system prior to installed. The Setup script will check for those packages prior to installation.
Confirm that you have all the packages installed:
Wanpipe Driver Minimum Requirements
C developement tools ...(gcc)
C++ developement tools
Make utility
Ncurses library
Perl developement tools
AWK
FLEX
Patch
libtermcap-devel
bison
Note: The following assumes your linux distribution uses "yum" or "apt" package managers, adjust to your distros package manager (for example Suse uses "yast").
Mandatory packages - required for wanpipe drivers/modules:
- Kernel headers (or source) in /lib/modules/$(uname -r)/build
use "yum install kernel-devel" or apt-get kernel-devel" to install. - C Development tools (gcc )
use "yum install gcc" or "apt-get install gcc" to install. - Bash v2
- AWK
- Patch
use "yum install patch" or "apt-get install patch" to install. - Perl Development tools.
use "yum install perl" or "apt-get install perl" to install. - Bison
use "yum install bison".
Optional packages - required if you want to install Wanpipe utilities:
Note: Wanpipe utilities are required to create configuration files for Sangoma cards.
- C++ Development tools
use "yum install gcc-c++" or "apt-get install gcc-c++" to install. - ncurses & ncurses-devel library
use "yum install ncurses" or "apt-get install ncurses" to install.
use "yum install ncurses-devel" or "apt-get install ncurses-devel" to install - flex package
use "yum install flex" or "apt-get install flex" to install. - libtermcap-devel
use "yum install libtermcap-devel" or "apt-get install libtermcap-devel" to install.