Goal (short description)

Goal of this HOWTO is to configure VoIP gateway between SIP and E1 using opensource PBX Asterisk

Applicability

It is applicable for:

Prerequisites (OS, dependencies on other software)

Configuration (OS agnostic)

Install Asterisk

First it is needed to install Asterisk. In most distributions, this should be easy because Asterisk is packaged with your distro. So use your distribution package manager to install. This howto is not made to focus on installation step.

Install HW drivers

You have to be sure that drivers for your ISDN PRI card are working. Simplest way is probably to install zaptel drivers (or it is together with your Asterisk package from your distro).

Ensure that hardware is working

If your hardware is working, you should be able to see something like:

cat /proc/zaptel/1
Span 1: WCT1/0 Digium Wildcard TE110P T1/E1 Card 0 HDB3/CCS/CRC4
...

Please ensure that /proc/zaptel exists and that there are enaught rights to /dev/zap/* for your asterisk process.

Configure Layer1 and Layer2 parameters

This parameters are setuped by /etc/zaptel.conf (change xx to your country code (eg. uk or de). Disable crc4 if your operator or PBX does not support it.

loadzone = xx
defaultzone = xx

# PRI TE
span=1,0,0,ccs,hdb3,crc4
bchan=1-15
dchan=16
bchan=17-30

OS specific help

Validation, confirmation tests