/var/logs/messages
- Code: Select all
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078125] Processing WAN device wanpipe1...
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078127] wanpipe1: Locating: A101/1D/2/2D/4/4D/8/8D/16/16D card, CPU A, PciBus=2, PciSlot=4
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078130] wanpipe1: Found: A101/1D/2/2D/4/4D/8/8D/16/16D card, CPU A, PciBus=2, PciSlot=4, Port=0
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078162] wanpipe1: AFT PCI memory at 0xDFE00000
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078163] wanpipe1: IRQ 16 allocated to the AFT PCI card
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078171] wanpipe1: Starting AFT 2/4/8 Hardware Init.
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078176] wanpipe1: Enabling front end link monitor
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.078178] wanpipe1: Global Chip Configuration: used=1 used_type=1
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.081494] wanpipe1: Global T1 Front End configuration
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.082550] wanpipe1: AFT Data Mux Bit Map: 0x01234567
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.082566] wanpipe1: Configuring DS DS26521 T1 FE
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.082567] wanpipe1: Port 1,B8ZS,ESF,0db
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.082568] wanpipe1: Clk Master:0, Channels: FFFFFFFF
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.082569] wanpipe1: AIS on LOS: Off (default)
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.088297] wanpipe1: Rx Sensitivity Gain 36dB (default).
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.088934] wanpipe1: Front end successful
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089161] wanpipe1: Front End Interface Ready 0x80090000
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089164] wanpipe1: WARNING: No Echo Canceller channels are available!
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089179] wanpipe1: Configuring Device :wanpipe1 FrmVr=37
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089180] wanpipe1: Global MTU = 1500
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089181] wanpipe1: Global MRU = 1500
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089182] wanpipe1: Data Mux Map = 0x01234567
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089183] wanpipe1: Rx CRC Bytes = 0
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089184] wanpipe1: Memory: Card=73688 Wandev=2088 Card Union=13464
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089185] wanpipe1: Global TDM Int = Enabled
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089186] wanpipe1: Global TDM Ring= HW Ring
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089187] wanpipe1: Global SPAN IRQ= RX/TX
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089188] wanpipe1: TDM HW TONE = Disabled
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089190] wanpipe1: TDMV Span = 1 : Enabled
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089191] wanpipe1: RTP TAP = Disabled
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089216]
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089217] wanpipe1: Error: TDM VOICE prot not compiled
Oct 5 22:38:59 linux-6ovr kernel: [ 1609.089218] wanpipe1: during installation process!
Oct 5 22:39:01 linux-6ovr kernel: [ 1611.091903] wanpipe1: Open Circuit is detected!
Oct 5 22:39:01 linux-6ovr kernel: [ 1611.091905] wanpipe1: Lost of Signal is detected!
Oct 5 22:39:01 linux-6ovr kernel: [ 1611.092277] wanpipe1: T1 disconnected!
Oct 5 22:39:01 linux-6ovr kernel: [ 1611.092290] wanpipe1: Enable transmit YEL alarm
Oct 5 22:39:05 linux-6ovr kernel: [ 1615.091389] wanpipe1: LOS : ON
Through trial and error as well as my past experience getting wanpipe compiled and working I was able to rewrite it a bit to get it to install everytime on any system I had here to throw it at. All I did was add compiling DAHDI and also changed the compile command for wanpipe. I prefer compiling dahdi-linux-complete-2.6.1+2.6.1, at least that is what works for me. I also added an option to specify the number of processes to use to compile dahdi as it can take awhile. I will be throwing 60 seats at 4.0.1 with all the agents on analog channel banks driven by a sangoma a101e's. This is the script I am using. Hope this helps someone else.
- Code: Select all
#!/bin/bash
# Change this to pull in newer versions of wanpipe
WANPIPE="wanpipe-3.5.28"
# Change this to pull in newer versions of DAHDI
DAHDI="dahdi-linux-complete-2.6.1+2.6.1"
# Number of Processes to use to compile DAHDI
CORES="4"
# User choices
function choice {
CHOICE=''
local prompt="$*"
local answer
read -p "$prompt" answer
case "$answer" in
[yY1] ) CHOICE='y';;
[nN0] ) CHOICE='n';;
* ) CHOICE="$answer";;
esac
}
echo "This will download and install $DAHDI and $WANPIPE driver."
echo "This should be ran after every kernel update!"
echo
choice "Do you want to continue? (y/N) : "
if [ "$CHOICE" == "y" ]; then
# Shutdown anything running that might interfere with installing drivers
killall -9 asterisk
killall -9 safe_asterisk
wanrouter stop
service dahdi stop
# Install the build-chain
zypper --non-interactive in -t pattern devel_kernel
zypper --non-interactive in kernel-syms patchutils dahdi-linux-devel libpri-devel asterisk-devel gcc-c++
# DOWNLOAD Dahdi Sources
DAHDIEXT="$DAHDI.tar.gz"
mkdir /usr/src/tars
cd /usr/src/tars
if [ ! -f /usr/src/tars/${DAHDIEXT} ];
then
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/releases/$DAHDIEXT
fi
cd /usr/src
rm -rf $WANPIPE
tar xvzf ./tars/$DAHDIEXT
cd /usr/src/$DAHDI
# Compile Dahdi
cd /usr/src/$DAHDI
make -j$CORES all
make install
# Now we get our wanpipe drivers
WANPIPEEXT="$WANPIPE.tgz"
mkdir /usr/src/tars
cd /usr/src/tars
if [ ! -f /usr/src/tars/${WANPIPEEXT} ];
then
wget ftp://ftp.sangoma.com/linux/current_wanpipe/$WANPIPEEXT
fi
cd /usr/src
rm -rf $WANPIPE
tar xf ./tars/$WANPIPEEXT
cd /usr/src/$WANPIPE
# Do the install
./Setup dahdi --with-zaptel=/usr/src/$DAHDI --silent
echo
echo "Wanpipe should now be installed. Verify by running wanrouter hwprobe"
echo
echo "If haven't already run wancfg_dahdi to configure your T1's for DAHDI"
fi