Asteriskathome_quadbri

This page is based on the fine work of:



1. Install your quadbri card and set the jumpers correct
(I'll update this, I have to look up the doc first)

2. Install Asterisk@Home
Just insert the CD and wait.
When installation is finished log in and start installation

3. Stop asterisk and amportal
asterisk stop

4. Remove the zaptel service that is installed by default
at the root prompt type "setup"
Select system services on the list and scroll down to zaptel. Press space to remove the selection
End the setup program

5. Boot your PC
type "reboot" at the prompt

6. Download latest version of the junghanns.net drivers.
Point your browser tohttp://www.junghanns.net/en/download.html
Today the latest version that run on asterisk 1.2 is: 0.3.0-PRE-1c (* 1.2.0)
cd /usr/src
wget http://www.junghanns.net/downloads/bristuff-0.3.0-PRE-1c.tar.gz
tar -zxvf bristuff-0.3.0-PRE-1c.tar.gz
cd bristuff-0.3.0-PRE-1c

8. Install it
./install.sh
You must hit enter several times during compilation


9. Configure it
The quadbri has 4 ISDN ports. My jumpers are set so that
port 1 = Gigaset 1
Port 2 = Gigaset 2
Port 3 = ISDN 1
Port 4 = ISDN 2

9a. Set up your /etc/zaptel.conf
This is my file

  1. Autogenerated by /usr/local/sbin/genzaptelconf — do not hand edit
  2. Zaptel Configuration File
  3. This file is parsed by the Zaptel Configurator, ztcfg

  1. It must be in the module loading order


  1. Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"

  1. Global data


loadzone=no
defaultzone=no
  1. qozap span definitions
  2. most of the values should be bogus because we are not really zaptel
span=1,1,3,ccs,ami
span=2,2,3,ccs,ami
span=3,0,3,ccs,ami
span=4,0,3,ccs,ami

bchan=1,2
dchan=3
bchan=4,5
dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12


9b. Set up your /etc/asterisk/zapata.conf
This is my file

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]
switchtype = euroisdn
signalling = bri_cpe_ptmp
pridialplan = local
echocancel=yes


; S/T port 1 Gigaset 1
group = 1
signalling=bri_net_ptmp
context=from-internal
channel => 1,2


; S/T port 2 Gigaset 2
group = 2
signalling=bri_net_ptmp
context=from-internal
channel => 4,5


; S/T port 3 connected to BRI connected to 88888888 and 88888889
group = 3
signalling = bri_cpe_ptmp
immediate=no
context=from-pstn
channel => 7,8


; S/T port 4 connected to BRI connected to 77777777 and 77777778 (OD)
group = 4
signalling = bri_cpe_ptmp
immediate=no
context=from-pstn
channel => 10,11



;Include genzaptelconf configs
  1. include zapata-auto.conf

;Include AMP configs
  1. include zapata_additional.conf


10. Load the drivers
The 4 LEDs on the card are now off

10a. load the zaptel driver
modprobe zaptel

see if it is load by typing
lsmod
The LEDs are still off

10b load the quadbri driver
insmod /usr/src/bristuff-0.3.0-PRE-1c/qozap/qozap.ko
Now the LEDs should come on. All of them are red and there is a error message on the console:
qozap: no version for "zt_receive" found. kernel tainted
(I have no idea what it means)

10c start it (?)
ztcfg -vv
Now there should be two green ligths and two red ligths. And I see this output:

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: D-channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: D-channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)

11 channels configured.

Changing signalling on channel 1 from Unused to Clear channel
Changing signalling on channel 2 from Unused to Clear channel
Changing signalling on channel 3 from Unused to HDLC with FCS check
Changing signalling on channel 4 from Unused to Clear channel
Changing signalling on channel 5 from Unused to Clear channel
Changing signalling on channel 6 from Unused to HDLC with FCS check
Changing signalling on channel 7 from Unused to Clear channel
Changing signalling on channel 8 from Unused to Clear channel
Changing signalling on channel 9 from Unused to HDLC with FCS check
Changing signalling on channel 10 from Unused to Clear channel
Changing signalling on channel 11 from Unused to Clear channel

On the console there is a output like this:
qozap: not re/activating layer1 span 2


11. Start asterisk and try to dial in
asterisk -rvvvv




This page is based on the fine work of:



1. Install your quadbri card and set the jumpers correct
(I'll update this, I have to look up the doc first)

2. Install Asterisk@Home
Just insert the CD and wait.
When installation is finished log in and start installation

3. Stop asterisk and amportal
asterisk stop

4. Remove the zaptel service that is installed by default
at the root prompt type "setup"
Select system services on the list and scroll down to zaptel. Press space to remove the selection
End the setup program

5. Boot your PC
type "reboot" at the prompt

6. Download latest version of the junghanns.net drivers.
Point your browser tohttp://www.junghanns.net/en/download.html
Today the latest version that run on asterisk 1.2 is: 0.3.0-PRE-1c (* 1.2.0)
cd /usr/src
wget http://www.junghanns.net/downloads/bristuff-0.3.0-PRE-1c.tar.gz
tar -zxvf bristuff-0.3.0-PRE-1c.tar.gz
cd bristuff-0.3.0-PRE-1c

8. Install it
./install.sh
You must hit enter several times during compilation


9. Configure it
The quadbri has 4 ISDN ports. My jumpers are set so that
port 1 = Gigaset 1
Port 2 = Gigaset 2
Port 3 = ISDN 1
Port 4 = ISDN 2

9a. Set up your /etc/zaptel.conf
This is my file

  1. Autogenerated by /usr/local/sbin/genzaptelconf — do not hand edit
  2. Zaptel Configuration File
  3. This file is parsed by the Zaptel Configurator, ztcfg

  1. It must be in the module loading order


  1. Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"

  1. Global data


loadzone=no
defaultzone=no
  1. qozap span definitions
  2. most of the values should be bogus because we are not really zaptel
span=1,1,3,ccs,ami
span=2,2,3,ccs,ami
span=3,0,3,ccs,ami
span=4,0,3,ccs,ami

bchan=1,2
dchan=3
bchan=4,5
dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12


9b. Set up your /etc/asterisk/zapata.conf
This is my file

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]
switchtype = euroisdn
signalling = bri_cpe_ptmp
pridialplan = local
echocancel=yes


; S/T port 1 Gigaset 1
group = 1
signalling=bri_net_ptmp
context=from-internal
channel => 1,2


; S/T port 2 Gigaset 2
group = 2
signalling=bri_net_ptmp
context=from-internal
channel => 4,5


; S/T port 3 connected to BRI connected to 88888888 and 88888889
group = 3
signalling = bri_cpe_ptmp
immediate=no
context=from-pstn
channel => 7,8


; S/T port 4 connected to BRI connected to 77777777 and 77777778 (OD)
group = 4
signalling = bri_cpe_ptmp
immediate=no
context=from-pstn
channel => 10,11



;Include genzaptelconf configs
  1. include zapata-auto.conf

;Include AMP configs
  1. include zapata_additional.conf


10. Load the drivers
The 4 LEDs on the card are now off

10a. load the zaptel driver
modprobe zaptel

see if it is load by typing
lsmod
The LEDs are still off

10b load the quadbri driver
insmod /usr/src/bristuff-0.3.0-PRE-1c/qozap/qozap.ko
Now the LEDs should come on. All of them are red and there is a error message on the console:
qozap: no version for "zt_receive" found. kernel tainted
(I have no idea what it means)

10c start it (?)
ztcfg -vv
Now there should be two green ligths and two red ligths. And I see this output:

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: D-channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: D-channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: D-channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)

11 channels configured.

Changing signalling on channel 1 from Unused to Clear channel
Changing signalling on channel 2 from Unused to Clear channel
Changing signalling on channel 3 from Unused to HDLC with FCS check
Changing signalling on channel 4 from Unused to Clear channel
Changing signalling on channel 5 from Unused to Clear channel
Changing signalling on channel 6 from Unused to HDLC with FCS check
Changing signalling on channel 7 from Unused to Clear channel
Changing signalling on channel 8 from Unused to Clear channel
Changing signalling on channel 9 from Unused to HDLC with FCS check
Changing signalling on channel 10 from Unused to Clear channel
Changing signalling on channel 11 from Unused to Clear channel

On the console there is a output like this:
qozap: not re/activating layer1 span 2


11. Start asterisk and try to dial in
asterisk -rvvvv




Created by: terchris, Last modification: Thu 27 of Dec, 2012 (00:24 UTC) by disperato
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+