Configure an E1 - How do I?
- 1 Web Admin Panel
- 1.1 WanpipeX.conf
- 1.2 Zaptel.conf
- 1.3 Zapata.conf
- 2 References
Â
E1 standards differ by country, but some of the more common European settings are covered in the configuration example below. Â
Â
Web Admin Panel
In order to insert these values into your PBXtra , please follow these steps:
Click on Options --> cards
Click on [ Advanced Mode ] at the top
Be sure to carefully locate the Zaptel, Zapata, and Wanpipe configuration sections. Inserting values into the wrong configuration window will cause your system software to fail.Â
Â
WanpipeX.conf
Within your wanpipeX.conf file (where X is a number indicating the span for this particular file), please verify that the settings match the following:
#================================================
# Sangoma Technologies Inc.
#================================================
[devices]
wanpipe1 = WAN_AFT_TE1, Comment
[interfaces]
w1g1 = wanpipe1, , TDM_VOICE, Comment
[wanpipe1]
CARD_TYPEÂ Â Â Â Â Â = AFT
S514CPUÂ Â Â Â Â Â Â Â = A
CommPort       = PRI
AUTO_PCISLOTÂ Â Â = NO
PCISLOTÂ Â Â Â Â Â Â Â = 2
PCIBUSÂ Â Â Â Â Â Â Â Â = 3
FE_MEDIAÂ Â Â Â Â Â Â = E1
FE_LCODEÂ Â Â Â Â Â Â = HDB3
FE_FRAMEÂ Â Â Â Â Â Â = NCRC4
FE_LINEÂ Â Â Â Â Â Â Â = 1
TE_CLOCKÂ Â Â Â Â Â Â = NORMAL
TE_REF_CLOCKÂ Â Â = 0
TE_HIGHIMPEDANCEÂ Â Â Â Â Â Â = NO
LBOÂ Â Â Â Â Â Â Â Â Â Â Â = 120OH
FE_TXTRISTATEÂ Â = NO
MTUÂ Â Â Â Â Â Â Â Â Â Â Â = 1500
UDPPORTÂ Â Â Â Â Â Â Â = 9000
TTLÂ Â Â Â Â Â Â Â Â Â Â Â = 255
IGNORE_FRONT_END = NO
TDMV_SPANÂ Â Â Â Â Â = 1
TDMV_DCHANÂ Â Â Â Â = 16 # Must be 0 (zero) on old Asterisk 1.2 / PBX version 4 servers
TDMV_HW_DTMFÂ Â Â = YES
[w1g1]
ACTIVE_CHÂ Â Â Â Â Â = ALL
TDMV_ECHO_OFFÂ Â = NO
TDMV_HWECÂ Â Â Â Â Â = YES
The two items in red are crucial to a successful E1 connection. The Framing for an E1 (NCRC4 in this example) is much different from a North American PRI, and so you need a different framing setting or no communications can take place between your server and the carrier. Please check with your carrier for the correct framing setting (may be CRC4 in some cases).
If FE_FRAME = CCS, wanrouter will fail to load, and you will have a system down. The only valid settings for an E1 are CRC4, NCRC4, and Unframed.
Refer to the Wanpipe Asterisk Configuration File Sangoma wiki article for full details.
Â
The DCHAN setting will be statically assigned within the Zaptel file instead of within the Wanpipe file.
Â
Zaptel.conf
You must configure your Zaptel file as follows:
Zaptel.conf# Zaptel Channels Configurations (zaptel.conf)
# loadzone=fr defaultzone=fr
#Sangoma A102 port 1 [slot:2 bus:3 span:1] <wanpipe1>span=1,1,0,ccs,hdb3
bchan=1-15,17-31
dchan=16
#Sangoma A102 port 2 [slot:2 bus:3 span:2] <wanpipe2>
span=2,0,0,ccs,hdb3
bchan=32-46,48-62
dchan=47
The lines in red above are critical. Most E1 providers use the 'middle' channel within an E1 for signalling - in the case of the first span, that means channel 16. Notice that the example above comes from a server with two E1 ports configured. For the second span (or third, or fourth), you should specify that the dchan = the middle port in each subsequent range.Â
Â
Zapata.conf
Here is an example configuration from Zapata:
Zapata.conf
[channels]
usecallerid=yes
echocancelwhenbridged=yes
hidecallerid=no
transfer=yes
immediate=no
callerid=asreceived
callgroup=1
rxwink=300
pickupgroup=1
cancallforward=yes
callwaitingcallerid=yes
callreturn=yes
usecallingpres=yes
group=0
echocancel=1
rxgain=0
switchtype=euroisdn
txgain=0
echotraining=0
signalling=pri_cpe
context=incoming
channel => 32-46,48-62 ;
group=0
echocancel=1
rxgain=0
switchtype=euroisdn
txgain=0
echotraining=0
signalling=pri_cpe
context=incoming
channel => 1-15,17-31 ;
Â
Here we must set the switchtype to a European type for standard ISDN lines (of which E1 circuits are a part), set the signalling the same as with a North American PRI, and designate the voice channels while excluding the data channel from the list.Â
Please contact Fonality Support if you have any questions.
Â
References
Sample Zaptel.conf (system.conf) config files and settings:
http://wiki.sangoma.com/wanpipe-linux-asterisk-appendix#sampleZaptel
Sample Zapata.conf (chan_dahdi.conf) configs and settings:
http://wiki.sangoma.com/wanpipe-linux-asterisk-appendix#sampleZapata
Original Zapata.conf for reference:
http://wiki.sangoma.com/ast-original-zapata
Zapata.conf explained in detail (third-party site):
http://www.voip-info.org/wiki/view/Asterisk+config+zapata.conf