STEPS to install Sangoma cards:-
=>yum -y install kernel-devel-$(uname -r) libtool* make gcc patch perl bison gcc-c++ ncurses-devel flex libtermcap-devel qt3 autoconf* automake* autoconf libxml2-devel cmake sqlite-devel openssl-devel newt-devel curl curl-devel
=>mkdir -p /usr/src/asterisk
=>cd /usr/src/asterisk
=>wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/dahdi-linux-complete-2.5.0.2+2.5.0.2.tar.gz
=>wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz
=>wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.6.2.22.tar.gz
=>mkdir -p /usr/src/wanpipe
=>cd /usr/src/wanpipe
=>wget ftp://ftp.sangoma.com/linux/custom/gsm/wanpipe-3.5.24.1gsm0.15.tgz
OR
=>ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.27.tgz
=>wget ftp://ftp.sangoma.com/linux/libwat/libwat-1.0-current.tgz
=>wget http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz
=>wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
Dahdi Installation
#>./configure
#>make
#>make install
LibPRI Installation
#>tar xvfz libpri-<version>
#>cd libpri-<version>
#>make
#>make install
Asterisk Installation
#>tar xvfz asterisk-<version>.tgz
#>cd asterisk-<version>
#>./configure
#>make
#>make install
#>make samples (in case of very first install)
Wanpipe Driver Installation
#>tar xvfz wanpipe-<version>.tgz
#>cd wanpipe-<version>
#>./Setup dahdi
Cmake Installation
./bootstrap
make
make install
Libwat Installation
#> tar xfz libwat-1.0-current.tgz
#> cd libwat-N.N.N/build
#> cmake ..
#> make
#> make install
Patching
#>tar xfz autoconf autoconf-2.68.tar.gz
#>./configure
#>make
#>make install
Copy patches to asterisk source directory. Make sure to use the patch version that matches your version of asterisk:
#>cd libwat-1.X.X/asterisk
#>cp asterisk-1.6.2.22.patch /usr/src/asterisk-1.6.2.22/
To patch your Asterisk installation:
#>cd asterisk-1.6.2.22
#>patch -p 1 < asterisk-1.6.2.22.patch
Re-configure and re-compile your Asterisk:
#>./bootstrap.sh
#>./configure
#>make clean
#>make
#>make install
Test
#>wanrouter hwprobe
#> wancfg_dahdi
#>wanrouter start