heya,
i have been looking aournd all day now, i can not seem to find the right info.
i am totally new to this telephone stuff, which is a problem i know.
you can hit me with tech talk about linux, but please bare with me
when it comes to telephone stuff 
i have a euro isdn line (germany) with the standard setup.
telecom->ntbba->dsl
…->ntba->pbx
what i would like to do is setup asterisk, so that i can use it to receive
voicemail and faxes for certain numbers (got 6).
my pbx also got a S0 connection, so what i would like to do ist the following.
telecom->ntbba->dsl
…->ntba->pbx->asterisk on linux box
so hook up asterisk to the S0 port of the pbx, or
telecom->ntbba->dsl
…->ntba->pbx
…->asterisk on linux box
i have got asterisk installed and it does seem to work.
the problem i got now is, that it takes control of the whole isdn line.
as soon as asterisk is running, the pbx led is blinking, which means
that the isdn connection has been lost.
has anyone got an idea on what i am doing wrong ?
will it work at all, or will asterisk always be master ?
has anyone got a link to info on this ?
[code]ztcfg -v
Zaptel Configuration
SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
3 channels configured.
[/code]
here are the config files i have changed.
[code]/etc/zaptel.conf
hfc-s pci a SPAN Definitionen
loadzone=nl
defaultzone=nl
span=1,1,3,ccs,ami
bchan=1-2
dchan=3[/code]
/etc/asterisk/zapta.conf
[channels]
;----------------------------------------------------------------------------
;NT-Karte fuer ISDN-Telefonanlage im Mehrgeraete-Anschluss
;----------------------------------------------------------------------------
switchtype = euroisdn
signalling = bri_net_ptmp
pridialplan = local
prilocaldialplan = local
echocancel = yes
overlapdial = yes
echocancelwhenbridged=no
echotraining=no
immediate = no
usecallerid = yes
group = 1
context = pbx-trunk
channel => 1
usecallingpres=yes
nationalprefix = 0
internationalprefix = 00
i have tried signalling = bri_net_ptp, but then asterisk does not start any more.
[code]/etc/asterisk/extensions.conf
[general]
static=yes
writeprotect=no
[globals]
IAXINFO=guest ; IAXtel username/password
[default]
include => tcom-trunk
include => pbx-trunk
[tcom-trunk]
; Hereinkommende Anrufe werden auf interne MSN 3333 geleitet
exten => _X.,1,Dial(Zap/g2/3333,60)
exten => _X.,2,Hangup
[pbx-trunk]
; 8 vorwaehlen -> Ueber ISDN waehlen
; ${EXTEN:1} bedeutet, dass von der zu waehlenden Rufnummer eine
; Ziffer abgeschnitten wird, hier also die ‘8’.
exten => _8.,1,Dial(Zap/g1/${EXTEN:1}/,60)
exten => _8.,2,Congestion
exten => _8.,3,Busy
exten => _8.,4,Hangup
; 9 vorwaehlen -> Ueber SIP waehlen
exten => _9.,1,Dial(SIP/${EXTEN:1}@myqsc,60)
exten => _9.,2,Congestion
exten => _9.,3,Busy
exten => _9.,4,Hangup[/code]
/etc/asterisk/rtp.conf
[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10000
rtpend=11000
hope someone can help me out on this,
Martin