The steps taken to install the wanpipe drivers from source help on systems that you can't upgrade the kernel on due to problems like the Intel RAID controllers.
For this example the kernel used was 2.6.18-53.1.4.el5, asterisk 1.4.26.1, dahdi 2.2.0 and wanpipe 3.6.5.
Pre-reqs - These are important otherwise you'll have a world of pain.
- Kernel-devel for the kernel you have installed
- kernel-headers
- make
- gcc
- gcc-cpp
- bison
- flex
- ncurses and ncurses-devel
- perl
- patch
- libtermcap-devel
Asterisk Installation
This works for an upgrade as well as a clean install. If upgrading remember to backup the config files first and move or delete the /usr/lib/asterisk/modules.
To make life easy for the dahdi install, download the files to the /usr/src directory and work from there.
#> wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.4.26.1.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.2.0.2.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.2.0.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.1.tar.gz
#> wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.4.9.tar.gz
#>tar xvfz dahdi-linux-2.2.0.2.tar.gz
#>tar xvfz dahdi-tools-2.2.0.tar.gz
#>cd cd dahdi-linux-2.2.0.2
#>make
#>make install
#>cd ..
#>cd cd dahdi-tools-2.2.0
#>./configure
#>make
#>make install
#>tar xvfz llibpri-1.4.10.1.tar.gz
#>cd cd libpri-1.4.10.1
#>make
#>make install
#>tar zxvf asterisk-addons-1.4.9.tar.gz
#>cd cd asterisk-addons-1.4.9
#>./configure
#>make
#>make install
#>tar xvfz asterisk-1.4.26.1.tar.gz
#>cd asterisk-1.4.25.1
#>./configure
#>make
#>make install
#>make samples (only for a first install)
Once Asterisk have been installed. You can install the wanpipe drivers, only do the next step if you have installed all the pre-reqs.
#>tar zxvf wanpipe-3.5.6.tgz
#>cd wanpipe-3.5.6
#>./Setup dahdi
Proceed with installation
Select "Y" for each option.
Once it is complete (no errors unless you are missing a pre-req. if you get an error check you have everything installed), the version we ran went straight into the configuration tool. The following will work for an ISDN30 from BT:
1. Select E1
2. If it is already showing CRC4 and HBC then select no
3. Select Normal (only select master is testing a loop back port or cross over to another PRI)
4. Select PRI NE
5. Select EuroISDN
6. Select 1
7. Select from-pstn
Once those options have been selected you need to make the follwing changes:
#>vi /etc/asterisk/chan_dahdi.conf
in the section [channels] add:
pridialplan=unknown
prilocaldialplan=unknown
save the file and exit
You need to change the country on the system.conf from us to uk:
#>vi /etc/dahdi/system.conf
look for loadzone and defaultzone change to:
loadzone=uk
defaultzone=uk
Next you need to delete or move zapata.conf, then
#>cd /etc/asterisk
#>mv zapata.conf zapata.old
#>ln -s chan_dahdi.conf zapata.conf
Start asterisk and you now have the dahdi drivers installed and talking to the sangoma card.
#>service asterisk start
or if you have freepbx installed
#>amportal restart
if you log into the console you can check the status of the PRI card:
#>asterisk -rvvvc
Asterisk 1.4.26.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.26.1 currently running on trixbox1 (pid = 22088)
Verbosity is at least 5
trixbox1*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4
wanpipe1 card 0 OK 0 0 0
wanpipe2 card 1 OK 0 0 0
The installation is now complete and you can setup your dialplan for outbound calling. If you are using freepbx you should see a new trunk zap/g0.
To see the hardware installed type:
#>wanrouter hwprobe
and you should see something like:
-------------------------------
| Wanpipe Hardware Probe Info |
-------------------------------
1 . AFT-A102-SH : SLOT=1 : BUS=17 : IRQ=169 : CPU=A : PORT=1 : HWEC=0 : V=33
2 . AFT-A102-SH : SLOT=1 : BUS=17 : IRQ=169 : CPU=A : PORT=2 : HWEC=0 : V=33
Card Cnt: A101-2=1
This means that the driver is installed ok.
Article ID: 43, Created On: 9/3/2009, Modified: 9/3/2009