Olivier
2009-01-13 07:57:23 UTC
Hi,
I've installed latest bristuff from
http://www.junghanns.net/downloads/bristuff-0.4.0-RC3d.tar.gz
For learning and testing purposes, I would like to setup a system which is
not connected to any telco.
For that, I'm using a QuadCore CPU with Lenny, and a Junghanns QuadBRI
(PCI/E).
I connected port 3 and 4 with a cat5 patch cord so that any outgoing call
passed to port 4 would come into port 3 and vice versa.
At the moment, Asterisk fails to start (from /var/log/asterisk/messages) :
[Jan 13 08:26:05] ERROR[2435] asterisk.c: Asterisk has detected a problem
with your Zaptel configuration and will shutdown for your protection. You
have options:
1. You only have to compile Zaptel support into Asterisk if you need
it. One option is to recompile without Zaptel support.
2. You only have to load Zaptel drivers if you want to take
advantage of Zaptel services. One option is to unload zaptel modules if you
don't need them.
3. If you need Zaptel services, you must correctly configure Zaptel.
For timing, I would like to tell QuadBRI board to use internal resources as
I can't get any timing from outside but I don't know how to do that. So I
simply typed :
# cat /etc/zaptel.conf
loadzone=fr
defaultzone=fr
# qozap span definitions
# most of the values should be bogus because we are not really zaptel
#span=1,3,0,ccs,ami
#span=2,2,0,ccs,ami
span=3,0,0,ccs,ami
span=4,0,0,ccs,ami
#bchan=1,2
#dchan=3
#bchan=4,5
#dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12
Obviously, when doing so, ztdummy, which is the internal resource that
should be used, if my understnding is OK, is not used at all as "cat
/proc/zaptel/*" shows no sign of ztdummy :
# cat /proc/zaptel/*
Span 1: ztqoz/1/1 "quadBRI PCI ISDN Card 1 Span 1 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" (MASTER) RED
1 ztqoz1/1/1
2 ztqoz1/1/2
3 ztqoz1/1/3
Span 2: ztqoz/1/2 "quadBRI PCI ISDN Card 1 Span 2 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" RED
4 ztqoz1/2/1
5 ztqoz1/2/2
6 ztqoz1/2/3
Span 3: ztqoz/1/3 "quadBRI PCI ISDN Card 1 Span 3 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" AMI/CCS
7 ztqoz1/3/1 Clear
8 ztqoz1/3/2 Clear
9 ztqoz1/3/3 HDLCFCS
Span 4: ztqoz/1/4 "quadBRI PCI ISDN Card 1 Span 4 [NT] (cardID 4) Layer 1
ACTIVATED (G3)" AMI/CCS
10 ztqoz1/4/1 Clear
11 ztqoz1/4/2 Clear
12 ztqoz1/4/3 HDLCFCS
Looking at QuadBRI LEDs, LED3 is green, and the others are RED.
zttool tells spans 3 and 4 are OK, spans 1 and 2 are RED.
Here is zapata.conf :
[channels]
language=fr
context=remote
switchtype= euroisdn
pridialplan=unknown
prilocaldialplan=unknown
usecallerid=yes
usecallingpres = yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
nationalprefix = 0
internationalprefix = 00
echocancel = yes
echocancelwhenbridged= yes
rxgain=0.0
txgain=0.0
group = 1
callgroup=1
signalling=bri_net_ptmp
channel => 10-11
group = 2
callgroup=1
signalling=bri_cpe_ptmp
channel => 7-8
My question is "how shall I edit /etc/zaptel.conf and
/etc/asterisk/zapatal.conf for this specific "loop" setup ?
Regards
I've installed latest bristuff from
http://www.junghanns.net/downloads/bristuff-0.4.0-RC3d.tar.gz
For learning and testing purposes, I would like to setup a system which is
not connected to any telco.
For that, I'm using a QuadCore CPU with Lenny, and a Junghanns QuadBRI
(PCI/E).
I connected port 3 and 4 with a cat5 patch cord so that any outgoing call
passed to port 4 would come into port 3 and vice versa.
At the moment, Asterisk fails to start (from /var/log/asterisk/messages) :
[Jan 13 08:26:05] ERROR[2435] asterisk.c: Asterisk has detected a problem
with your Zaptel configuration and will shutdown for your protection. You
have options:
1. You only have to compile Zaptel support into Asterisk if you need
it. One option is to recompile without Zaptel support.
2. You only have to load Zaptel drivers if you want to take
advantage of Zaptel services. One option is to unload zaptel modules if you
don't need them.
3. If you need Zaptel services, you must correctly configure Zaptel.
For timing, I would like to tell QuadBRI board to use internal resources as
I can't get any timing from outside but I don't know how to do that. So I
simply typed :
# cat /etc/zaptel.conf
loadzone=fr
defaultzone=fr
# qozap span definitions
# most of the values should be bogus because we are not really zaptel
#span=1,3,0,ccs,ami
#span=2,2,0,ccs,ami
span=3,0,0,ccs,ami
span=4,0,0,ccs,ami
#bchan=1,2
#dchan=3
#bchan=4,5
#dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12
Obviously, when doing so, ztdummy, which is the internal resource that
should be used, if my understnding is OK, is not used at all as "cat
/proc/zaptel/*" shows no sign of ztdummy :
# cat /proc/zaptel/*
Span 1: ztqoz/1/1 "quadBRI PCI ISDN Card 1 Span 1 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" (MASTER) RED
1 ztqoz1/1/1
2 ztqoz1/1/2
3 ztqoz1/1/3
Span 2: ztqoz/1/2 "quadBRI PCI ISDN Card 1 Span 2 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" RED
4 ztqoz1/2/1
5 ztqoz1/2/2
6 ztqoz1/2/3
Span 3: ztqoz/1/3 "quadBRI PCI ISDN Card 1 Span 3 [TE] (cardID 4) Layer 1
DEACTIVATED (F3)" AMI/CCS
7 ztqoz1/3/1 Clear
8 ztqoz1/3/2 Clear
9 ztqoz1/3/3 HDLCFCS
Span 4: ztqoz/1/4 "quadBRI PCI ISDN Card 1 Span 4 [NT] (cardID 4) Layer 1
ACTIVATED (G3)" AMI/CCS
10 ztqoz1/4/1 Clear
11 ztqoz1/4/2 Clear
12 ztqoz1/4/3 HDLCFCS
Looking at QuadBRI LEDs, LED3 is green, and the others are RED.
zttool tells spans 3 and 4 are OK, spans 1 and 2 are RED.
Here is zapata.conf :
[channels]
language=fr
context=remote
switchtype= euroisdn
pridialplan=unknown
prilocaldialplan=unknown
usecallerid=yes
usecallingpres = yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
nationalprefix = 0
internationalprefix = 00
echocancel = yes
echocancelwhenbridged= yes
rxgain=0.0
txgain=0.0
group = 1
callgroup=1
signalling=bri_net_ptmp
channel => 10-11
group = 2
callgroup=1
signalling=bri_cpe_ptmp
channel => 7-8
My question is "how shall I edit /etc/zaptel.conf and
/etc/asterisk/zapatal.conf for this specific "loop" setup ?
Regards