Difference between revisions of "Sangoma Wanpipe installation"
From Kolmisoft Wiki
Jump to navigationJump to search
(→Errors) |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Installation== | ==Installation== | ||
After Zaptel with Asterisk/Libpri are installed: | After Zaptel with Asterisk/Libpri, the following are installed: | ||
apt-get install | apt-get install flex ncurses-base patch | ||
cd /usr/src | cd /usr/src | ||
wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.2. | wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.2.3.tgz | ||
tar xzvf wanpipe-3.2. | tar xzvf wanpipe-3.2.3.tgz | ||
cd wanpipe-3.2. | cd wanpipe-3.2.3 | ||
./Setup install | ./Setup install | ||
Line 46: | Line 46: | ||
Please select working zaptel directory [1-9][m]: | Please select working zaptel directory [1-9][m]: | ||
1 | 1 | ||
If this does not work, enter m and /usr/src/zaptel/kernel | |||
Enable TDMV DCHAN Native HDLC Support & Patch Zaptel (recommended) ? (y/n) | Enable TDMV DCHAN Native HDLC Support & Patch Zaptel (recommended) ? (y/n) | ||
Line 84: | Line 86: | ||
---- | ---- | ||
''' | '''The following configuration depends on your own case!''' | ||
Select media type for A101 on port 1 [slot:2 bus:2 span:1] | Select media type for A101 on port 1 [slot:2 bus:2 span:1] | ||
Line 100: | Line 102: | ||
1. YES | 1. YES | ||
==Testing== | |||
Confirm successful Wanpipe/Zaptel installation run: | |||
wanrouter hwprobe | |||
===Restart=== | |||
It often happens that upon restart the system tries to unload zaptel drivers before unloading wanrouter drivers, so that the system hangs up with kernel panic. | |||
In order to avoid this, in file '''/etc/rc6.d/K92zaptel''' comment out lines: | |||
stop) | |||
# Unload drivers | |||
#shutdown_dynamic # FIXME: needs test from someone with dynamic spans | |||
#echo -n "Unloading zaptel hardware drivers:" | |||
#unload_module zaptel | |||
#RETVAL=$? | |||
#echo "." | |||
#[ $RETVAL -eq 0 ] && rm -f $LOCKFILE | |||
;; | |||
unload) | |||
# We don't have zaptel helper, so let's not replicate too much code: | |||
# allow others to use the unload command. | |||
# unload_module zaptel | |||
;; | |||
===Kernel panic=== | |||
To avoid having the machine hang because of kernel panic, edit /etc/sysctl.conf and add the following line to the end of the file: | |||
kernel.panic = 20 | |||
==Errors== | ==Errors== | ||
Line 106: | Line 142: | ||
Please update the WAN_LOCK_DIR in /etc/wanpipe/wanrouter.rc | Please update the WAN_LOCK_DIR in /etc/wanpipe/wanrouter.rc | ||
In file ''/etc/wanpipe/wanrouter.rc'' fix real path. | In file ''/etc/wanpipe/wanrouter.rc'', fix the real path. |
Latest revision as of 11:48, 29 April 2010
http://wiki.sangoma.com/wanpipe-linux-asterisk-install
Installation
After Zaptel with Asterisk/Libpri, the following are installed:
apt-get install flex ncurses-base patch cd /usr/src wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.2.3.tgz tar xzvf wanpipe-3.2.3.tgz cd wanpipe-3.2.3 ./Setup install
Configuration
Would you like to install WANPIPE now? [y] (y/n) YES
ENTER
Would you like build wanpipe kernel drivers? [y] (y/n) YES
Press Enter for Default: /lib/modules/2.6.18-5-686/build ENTER
WANPIPE device drivers upgraded successfully! ENTER
Proceed to build WANPIPE kernel modules ? [y] (y/n) YES
Please select (1,2,3,4,5,6 or 7) [Default: 1]: 2
Looking for zaptel directory in /usr/src ... ------------------------------------------- 1 : /usr/src/zaptel-1.4.7.1 2 : /usr/src/zaptel ------------------------------------------ 3 : /usr/src/zaptel (entered manually) ------------------------------------------ m : Enter zaptel path manually
(ctrl-c to Exit) Please select working zaptel directory [1-9][m]: 1
If this does not work, enter m and /usr/src/zaptel/kernel
Enable TDMV DCHAN Native HDLC Support & Patch Zaptel (recommended) ? (y/n) YES
Recompile/reinstall Zaptel (recommended) ? (y/n) YES
ENTER ENTER ENTER ENTER Visually Confirm that driver compilation was successful! (y/n) YES
Would you like to install WANPIPE start-up scripts? (y/n) YES
Would you like to auto-execute ztcfg after wanrouter start? (y/n) YES
ENTER ENTER ENTER ENTER ENTER ENTER ENTER ENTER Would you like to configure wanpipe devices for ZAPTEL? (y/n) YES Would you like to generate /etc/asterisk/zapata.conf 1
The following configuration depends on your own case!
Select media type for A101 on port 1 [slot:2 bus:2 span:1] Select framing type for 101 on port 1 Select clock for A101 on port 1 [slot:2 bus:2 span:1] Select signalling type for 101 on port 1 [slot:2 bus:2 span:1] Select switchtype for 101 on port 1
Zaptel and Wanpipe configuration complete: choose action 1. Save cfg: Restart Asterisk & Wanpipe now
Would you like to execute 'ztcfg' each time wanrouter starts? 1. YES
Testing
Confirm successful Wanpipe/Zaptel installation run:
wanrouter hwprobe
Restart
It often happens that upon restart the system tries to unload zaptel drivers before unloading wanrouter drivers, so that the system hangs up with kernel panic.
In order to avoid this, in file /etc/rc6.d/K92zaptel comment out lines:
stop) # Unload drivers #shutdown_dynamic # FIXME: needs test from someone with dynamic spans #echo -n "Unloading zaptel hardware drivers:" #unload_module zaptel #RETVAL=$? #echo "."
#[ $RETVAL -eq 0 ] && rm -f $LOCKFILE ;; unload) # We don't have zaptel helper, so let's not replicate too much code: # allow others to use the unload command. # unload_module zaptel ;;
Kernel panic
To avoid having the machine hang because of kernel panic, edit /etc/sysctl.conf and add the following line to the end of the file:
kernel.panic = 20
Errors
Warning: WAN_LOCK_DIR = /var/lock/subsys does not exist! Please update the WAN_LOCK_DIR in /etc/wanpipe/wanrouter.rc
In file /etc/wanpipe/wanrouter.rc, fix the real path.