[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
Ernst Lehmann
lehmann at acheron.franken.de
Thu Feb 19 06:24:27 MST 2004
Hi,
Does anyone operate Asterisk with zaphfc in NT-Mode successfully ??
I have the problem, that I could not contact my ISDN-Phone on such a
channel. It rings, but If I pick up the phone, I only get a Hangup in
the console....
Thanks for any clues on it...
Here my setup:
3 HFC Cards.
first card is TE, other two are NT mode (loaded zaphfc with modes=6)
The ISDN-Phone is connected to the second-card. The ISDN-Bus is powerd
by an old NTBA like described in the pbx4linux project Howto.
/etc/zaptel.cfg
------------
span=1,1,3,ccs,ami
bchan=1-2
dchan=3
span=2,0,3,ccs,ami
bchan=4-5
dchan=6
span=3,0,3,ccs,ami
bchan=7-8
dchan=9
-----------
/etc/asterisk/zapata.conf
---------
switchtype = euroisdn
signalling = bri_cpe_ptmp
pridialplan=unknown
echocancel=yes
immediate=no
group = 1
context=prod
channel => 1-2
switchtype = euroisdn
signalling = bri_net_ptmp
pridialplan=unknown
group = 2
context=prod
channel => 4-5
-----------------
valid passage from extension.conf
------------------
[prod]
....
exten => 74341423,1,Dial(Zap/5/74341423,r)
.....
-------------------
The ISDN-Phone is configured to listen on the MSN 74341423
Here the log from the console:
-----------
-- Executing Dial("Zap/2-1", "Zap/5/74341423|r") in new stack
-- Called 5/74341423
-- Hungup 'Zap/5-1'
-- Accepting call from '8974341421' to '74341423' on channel 2, span
1
MFE for TEI = 64
-- Timeout on Zap/2-1
== CDR updated on Zap/2-1
-- Executing Goto("Zap/2-1", "#|1") in new stack
-- Goto (prod,#,1)
-- Sent into invalid extension '#' in context 'prod' on Zap/2-1
-- Executing SetVar("Zap/2-1", "starttime=1077196512") in new stack
-- Executing Playtones("Zap/2-1", "info") in new stack
-- Executing Wait("Zap/2-1", "1") in new stack
-- Executing Playback("Zap/2-1", "invalid") in new stack
-- Playing 'invalid' (language 'en')
-- Executing Wait("Zap/2-1", "1") in new stack
-- Executing GotoIf("Zap/2-1", "1?2:7") in new stack
-- Goto (prod,i,2)
-- Executing Playtones("Zap/2-1", "info") in new stack
-- Executing Wait("Zap/2-1", "1") in new stack
-- Executing Playback("Zap/2-1", "invalid") in new stack
-- Playing 'invalid' (language 'en')
-- Channel 2, span 1 got hangup
== Spawn extension (prod, i, 4) exited non-zero on 'Zap/2-1'
-- Hungup 'Zap/2-1'
-----------------
perhaps helpfull... some information from dmesg on loading of modules:
-------------
Zapata Telephony Interface Registered on major 196
zaphfc: start
PCI: Found IRQ 5 for device 00:09.0
PCI: Sharing IRQ 5 with 00:04.3
zaphfc: card configured at mem 0xc8875000 fifo 0xc70e8000(0x70e8000) IRQ
5 HZ 10
0
zaphfc: ZTHFC1/0/1
zaphfc: ZTHFC1/0/2
zaphfc: ZTHFC1/0/3
zaphfc: registered zaptel device!
zaphfc: Card 0 configured for TE mode
zaphfc: resetting card.
zaphfc: layer 1 state = F4
PCI: Found IRQ 12 for device 00:0a.0
zaphfc: card configured at mem 0xc8877000 fifo 0xc7158000(0x7158000) IRQ
12 HZ 1
00
zaphfc: ZTHFC2/0/1
zaphfc: ZTHFC2/0/2
zaphfc: ZTHFC2/0/3
zaphfc: registered zaptel device!
zaphfc: Card 1 configured for NT mode
zaphfc: resetting card.
zaphfc: layer 1 state = F5
zaphfc: layer 1 state = F6
zaphfc: layer 1 state = G2
PCI: Found IRQ 10 for device 00:0b.0
PCI: Sharing IRQ 10 with 00:11.0
zaphfc: card configured at mem 0xc8879000 fifo 0xc7148000(0x7148000) IRQ
10 HZ 1
00
zaphfc: ZTHFC3/0/1
zaphfc: ZTHFC3/0/2
zaphfc: ZTHFC3/0/3
zaphfc: registered zaptel device!
zaphfc: Card 2 configured for NT mode
zaphfc: resetting card.
zaphfc: bchan rx fifo not enough bytes to receive! (z1=518, z2=8191)
zaphfc: bchan rx fifo not enough bytes to receive! (z1=518, z2=8191)
zaphfc: 3 card(s) in this box.
Registered tone zone 3 (Netherlands)
zaphfc: layer 1 state = G3
-----------------------
--
Bye
Ernst
---------
Ernst Lehmann Email: lehmann at acheron.franken.de
More information about the asterisk-users
mailing list