Please follow the steps below to install your Sangoma PRI/BRI/GSM/Analog Hardware
You must prepare your server with the following software requirements before continuing.
Simply Copy&Paste the string of command in the application table below, based on your Linux distribution
|Redhat Distributions YUM Packages (i.e. Centos, Trixbox/Elastix source (.tgz) install )|
|yum -y install kernel-devel-$(uname -r) libtool* make gcc patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake* autoconf|
* For W400 GSM, include "yum -y install libxml2-devel cmake"
* For Legacy SMG(BRI), include "yum -y install lksctp-tools-devel"
|Ubuntu/Debian 6 Distributions Apt-get Packages|
|apt-get -y install gcc g++ automake autoconf libtool make libncurses5-dev flex bison patch libtool autoconf linux-headers-$(uname -r)|
For all other distributions please go to http://wiki.sangoma.com/Wanpipe-Requirements for a full list of requirements to install before compiling.
- Download the required software
Software Source Download Source (tgz) Asterisk 1.8-current Dahdi dahdi-linux-complete-current Libpri
(for PRI/BRI only)
Change directory to /usr/src:
Copy&paste each line of the following in your command line to automatically download sources (tgz)
You will now have Asterisk/Dahdi/Libpri sources downloaded in /usr/src/
Untar Dahdi sources previously downloaded in /usr/src/ and install
tar xvzf dahdi-linux-complete<version>
cd dahdi-linux-complete <version>
- LibPRI Installation (required for PRI/BRI only)
Untar libPRI sources previously downloaded in /usr/src/ and install
tar xvfz libpri-<version>
- Asterisk Installation
Note: if you are upgrading Asterisk make sure that old asterisk modules are removed from /usr/lib/asterisk/modules
mv modules modules.old
Untar asterisk sources previously downloaded in /usr/src/ and install
tar xvfz asterisk-<version>.tgz
make samples (in case of very first install
Once Asterisk, Dahdi, LibPRI are installed on your system, please proceed to install the Sangoma Driver (Wanpipe)
Sangoma Driver Installation
- Download the latest release official Sangoma Driver (Wanpipe)
Sangoma Driver Download Page
- Untar wanpipe release in /usr/src
tar xvfz wanpipe-<version>.tgz
- Run ./Setup dahdi from the newly created wanpipe-<version> directory to build and install
****For power users only:
make dahdi DAHDI_DIR=<absolute path of dahdi>
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]
- 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
- Confirm Successful Sangoma Driver Installation
Type the following in your commandline:
The above should output information describing your Hardware and ports
If the above command fails, please consult the Sangoma Driver debugging page
- Configure your Asterisk System with the following:
Note -> this step was offered at the end of the ./Setup dahdi, if you already configured the card skip this step and 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 the Sangoma Driver (Wanpipe Ports)
- check /var/log/messages for any errors
- Configure DAHDI module
Note: the option to have this step performed automatically was offered at the end of ./Setup dahdi.
If you selected YES, then you can skip this step as it will perform automatically after "wanrouter start"
Configures DAHDI kernel modules from /etc/dahdi/system.conf ( Previously - ztcfg )
- Start Asterisk
- Access the Asterisk CLI and fun some basic commands to verify your Asterisk suite is ready for production
CLI> asterisk -rv
Type the following CLI command to verify all your channels (dahdi channels) are loaded into asterisk:
CLI> dahdi show channels
If you receive an error or no output from the above command, verify chan_dahdi loaded into asterisk
CLI> module load chan_dahdi.so
If the above returns an error message check /var/log/asterisk messages ( or /var/log/asterisk/full) for the reason why
Run the following command to verify if your PRI or BRI spans are UP and Active:
CLI> pri show spans