Announcements
Sangoma Hardware
HW Installation Manuals
Wanpipe Drivers Download Linux | Windows
Wanpipe for Asterisk
Install
Configure
Operation
Debugging
Tutorials
Appendix
Trixbox
Faxing
FAQ
Tapping(*New)
BRI: B700 / A500
Wanpipe for FreeSwitch
Install
Configure
Operation
FAQ
Appendix
Netborder VoIP Gateway
Linux
Windows
Release Notes
FAQ
Config Options
Routing Rules *NEW*
SMG-SS7
Install/Upgrade
Asterisk-SS7 Install
FreeSwitch-SS7 Install
Configure
Operation
Debugging
FAQ
Wanpipe TDM API
LibSangoma
Install/Config
FreeTDM
Wanpipe MTP2 API
Wanpipe for Wan/API
Install
Configure
RPMs
Operation
ADSL - S518
ADSL2+ - S519
Multi-Link PPP
Appendix
FAQ
Wanpipe for Yate
Wanpipe for Callweaver
Install
Configure
Wanpipe Case Studies
Troubleshooting
Tech Support
Glossary
| Wanpipe for Windows |
Wanpipe Linux Yate Configuration
- Wanpipe configuration for wpchan
- Wanpipe Yate E1 PRI Configuration
- Wanpipe Yate T1 PRI Configuration
- Wanpipe Yate HWEC Configuration
- Yate PRI Confiuration
- Wanpipe Yate Decoded PRI Configuration File
Wanpipe configuration for wpchan
wpchan (wanpipe channel) runs on top of the wanpipe API!
B Channels run over Transparent (Bitstream,ulaw,alaw) Mode
D Channels run over Hardware HDCL Mode
Wanpipe E1 PRI Configuration
DChan = channel 16
BChan = channels 1 to 15 and 17 to 31
Run wanpipe configuration utility:
#>/usr/sbin/wancfg
Hardware Setup (AFT):
Select Hardware: Specify AFT card from hardware probe.
After hardware probe, wancfg screen should show you:
(in case of A104 card)
----------------------------
Card Type-------> A104
Physical Medium-> E1
----------------------------
Specify Line Type: E1
Select Advanced Timeslot Groups ConfigurationSet the number of Timeslot Groups to 2.Select TimeSlot Group 1
(one for Dchan and one for Bchan)
(d-channel must be assigned to group 1)
(b-channels must be assigned to group 2)Configure Timeslots in Group -> 16Select TimeSlot Group 2
Note: A bug exists on some versions after you select timeslot group the wancfg sends to back to the Advanced Timslot Group Menu.
Timeslot Group 1 Config should look like
--------------------------------------------------
Timeslots in Group-> 16
HDLC Engine --------> Enabled
Idle Char -------------> 0x7E
MTU ------------------> 1500
MRU ------------------> 1500
---------------------------------------------------
(Leave all other options default and select <Back>)Configure Timeslots in Group -> 1.15-17.31
(If you get back to the Advanced Timeslot Group Section go back into Timeslot Group 2)
Specify MTU and MRU values. They should be the same.
MTU/MRU values indicate the Rx/Tx CHUNK Size.
To calculate MTU/MRU multiply your desired CHUNK size by the number of active channels.
eg: 30 channels * 40bytes (which is 5ms voice chunk) = 1200 bytes.By default set the MTU/MRU values to 1200 if you have 30 voice channels.
Configure HDLC Engine to Disable
(HDLC engine -> Disabled)
We must do this step because bchannes carry voice not hdlc frames.
Timeslot Group 2 Config should look like
--------------------------------------------------
Timeslots in Group-> 1-15.17-31
HDLC Engine --------> Disabled
Idle Char -------------> 0x7E
MTU ------------------> 1200
MRU ------------------> 1200
---------------------------------------------------
Your screen should look like this for E1:
--------------------------------------------------
Number of Timeslot Groups ----->2
Timeslot Group 1 configuration -> 16
Timeslot Group 2 configuration -> 1-15.17-31
---------------------------------------------------
Protocol and Interface Setup:Timeslot Groups configuration is complete: Select <BACK>
Default configuration is complete: Select <BACK>
Select Timeslot group 1 (for the d-channel)Set protocol to HDLC Streaming
Go to interface setupSet Operation Mode to: APISelect <BACK>Select <BACK>
Select Timeslot group 2 (for the b-channels)Set protocol to HDLC StreamingGo to interface setupSet Operation Mode to: APIGo to Advanced OptionsSet HDLC engine to disabled
Set TDMV_HWEC to YES (for hw echo cancellation)Select <BACK>Select <BACK>
Exit and Save configuration file.
Wanpipe T1 PRI Configuration
DChan = channel 24
BChan = channels 1 to 23
Run wanpipe configuration utility:
#>/usr/sbin/wancfg
Hardware Setup (AFT):
Select Hardware: Specify AFT card from hardware probe.
After hardware probe, wancfg screen should show you:
(in case of A104 card)
----------------------------
Card Type-------> A104
Physical Medium-> T1
----------------------------
Specify Line Type: T1
Select Advanced Timeslot Groups ConfigurationSet the number of Timeslot Groups to 2.Select TimeSlot Group 1
(one for Dchan and one for Bchan)
(d-channel must be assigned to group 1)
(b-channels must be assigned to group 2)Configure Timeslots in Group -> 24Select TimeSlot Group 2
Note: A bug exists on some versions after you select timeslot group the wancfg sends to back to the Advanced Timslot Group Menu.
Timeslot Group 1 Config should look like
--------------------------------------------------
Timeslots in Group-> 24
HDLC Engine --------> Enabled
Idle Char -------------> 0x7E
MTU ------------------> 1500
MRU ------------------> 1500
---------------------------------------------------
(Leave all other options default and select <Back>)
Configure Timeslots in Group -> 1-23
(If you get back to the Advanced Timeslot Group Section go back into Timeslot Group 2)
Specify MTU and MRU values. They should be the same.
MTU/MRU values indicate the Rx/Tx CHUNK Size.
To calculate MTU/MRU multiply your desired CHUNK size by the number of active channels.
eg: 30 channels * 40bytes (which is 5ms voice chunk) = 1200 bytes.By default set the MTU/MRU values to 1200 if you have 30 voice channels.
Configure HDLC Engine to Disable
(HDLC engine -> Disabled)
We must do this step because bchannes carry voice not hdlc frames.
Timeslot Group 2 Config should look like
--------------------------------------------------
Timeslots in Group-> 1-23
HDLC Engine --------> Disabled
Idle Char -------------> 0x7E
MTU ------------------> 1200
MRU ------------------> 1200
---------------------------------------------------
Your screen should look like this for T1:
--------------------------------------------------
Number of Timeslot Groups ----->2
Timeslot Group 1 configuration -> 24
Timeslot Group 2 configuration -> 1-23
---------------------------------------------------
Protocol and Interface Setup:Timeslot Groups configuration is complete: Select <BACK>
Default configuration is complete: Select <BACK>
Select Timeslot group 1 (for the d-channel)
Set protocol to HDLC Streaming
Go to interface setup
Set Operation Mode to: API
Select <BACK>
Select <BACK>
Select Timeslot group 2 (for the b-channels)
Set protocol to HDLC Streaming
Go to interface setup
Set Operation Mode to: API
Go to Advanced Options
Set HDLC engine to disabled
Set TDMV_HWEC to YES (for hw echo cancellation)
Select <BACK>Select <BACK>
Exit and Save configuration file.
Wanpipe Hardware Echo Chancellation Setup
In order to enable hardware echo cancellation on Yate B-Channels you have to manually run wan_ec_client command after wanrouter start. Fortunately wanrouter has external shell scripts that it executes after wanrouter start/stop so you could add wan_ec_client commands to wanrouter startup scripts to automate the process.
To Enable hwec:
wan_ec_client wanpipe1 enable 1-15.17-31
To Desable hwec:
wan_ec_client wanpipe1 disable 1-15.17-31
To automate this step add the start script into the /etc/wanpipe/scripts directory.
(This script will run after wanrouter start)
/etc/wanpipe/scripts/start
--------- CUT ----------
#!/bin/sh
#Ony enable hwec on B-Channels not the D-Channels
wan_ec_client wanpipe1 enable 1-15.17-31
wan_ec_client wanpipe2 enable 1-15.17-31
#Add wan_ec_client calls for each wanpipe deviceTo stop all hw echo cancellers on wanrouter stop add this script into /etc/wanpipe/scripts directory.
--------- CUT -----------
/etc/wanpipe/scripts/stop
--------- CUT ----------
#!/bin/sh
wan_ec_client wanpipe1 disable 1-15.17-31
wan_ec_client wanpipe2 disable 1-15.17-31
#Add wan_ec_client calls for each wanpipe device
--------- CUT -----------
To check if hwec is enabled on a single span run:
wanpipemon -i w1g1 -c ehw
Yate PRI Configuration
The yate wpchan configuration file is located at yate/conf.d/wpchan.conf. A sample file, called wpchan.conf.sample
Copy the sample file to wpchan.conf and add the following lines in the [span N] section, where N is your span number.
wpchan.conf
------------- cut -------------------
[general]
buflen=160
restart=0
dumpevents=no
dtmfinband=no
dtmfdetect=yes
samples=40 ; (for E1 : MRU/MTU value of 1200 / 30 = 40)
bitswap=no ; (a bad value here produces white noise when playing a sound)
[span 1]
dgroup=w1g1
bgroup=w1g2
card=wanpipe1
chans=31
first=1
dchan=16
type=pri_cpe
samples=40 ; (for E1 : MRU/MTU value of 1200 / 30 = 40)
swtype=unknown ; (euroisdn_e1 for euroisdn E1)
dialplan=unknown
presentation=allow_user_not_screened
[group alfa]
enabled=yes
mode=rotate
first=1
last=31
------- cut -------------------
regexroute.conf
---------cut -----------------
[priorities]
preroute=100
route=100
[contexts]
.*=default
[default]
^1\(.*\)$=wp/alfa/\100 ;dial out on group alfa with ext 100
^2\(.*\)$=wp/beta/\1
^3\(.*\)$=wp/gamma/\1
^4\(.*\)$=wp/delta/\1
^8.*$=moh/default
^9.*$=iax/guest@192.168.1.10/335
-------cut-----------
Attached Files
| wanpipe1.yate | ncorbic | Oct 12, 2006 | 10 KB |
| Must be renambed to wanpipe1.conf in /etc/wanpipe | |||