Ernst Lehmann
2004-Feb-19 06:24 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
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@acheron.franken.de
Klaus-Peter Junghanns
2004-Feb-19 07:00 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
Hi Ernst, use this: exten => 74341423,1,Dial(Zap/g2/74341423,r) instead of: exten => 74341423,1,Dial(Zap/5/74341423,r) -- best regards Klaus -- Klaus-Peter Junghanns CEO, CTO Junghanns.NET GmbH Breite Stra?e 13 - 12167 Berlin - Germany fon: (de) +49 30 79705390 fon: (uk) +44 870 1244692 fax: (de) +49 30 79705391 iaxtel: 1-700-157-8753 http://www.Junghanns.NET/asterisk/ Am Do, 2004-02-19 um 14.24 schrieb Ernst Lehmann:> 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 > > -----------------------
Klaus-Peter Junghanns
2004-Feb-20 01:17 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
Hi, to clear things up again, the problem is a wrong syntax for the Dial appplication exten => 74341423,1,Dial(Zap/g2/74341423,r) This will use "r" as the timeout value, so it will hang up immediately, actually too quick for the isdn phone to bring up a p2p layer 2 connection (it is on my todo list to handle this too). exten => 74341423,1,Dial(Zap/g2/74341423,,r) This is what you want (not the second ","). best regards Klaus -- Klaus-Peter Junghanns CEO, CTO Junghanns.NET GmbH Breite Stra?e 13 - 12167 Berlin - Germany fon: (de) +49 30 79705390 fon: (uk) +44 870 1244692 fax: (de) +49 30 79705391 iaxtel: 1-700-157-8753 http://www.Junghanns.NET/asterisk/ Am Do, 2004-02-19 um 23.30 schrieb Armand A. Verstappen:> Hi Ernst, > > On Thu, 2004-02-19 at 15:26, Ernst Lehmann wrote: > > > use this: > > > exten => 74341423,1,Dial(Zap/g2/74341423,r) > <snip> > > Interesting fact is, that the ISDN-Phone on the NT line rings still, if > > the calling phone has dropped the call.. > > The same thing here. > > wkr,
Armand A. Verstappen
2004-Feb-20 07:22 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
On Fri, 2004-02-20 at 09:17, Klaus-Peter Junghanns wrote:> to clear things up again, the problem is a wrong syntax for > the Dial appplication > > exten => 74341423,1,Dial(Zap/g2/74341423,r) > This will use "r" as the timeout value, so it will hang up > immediately, actually too quick for the isdn phone to bring > up a p2p layer 2 connection (it is on my todo list to handle > this too). > > exten => 74341423,1,Dial(Zap/g2/74341423,,r) > This is what you want (not the second ",").All true, but:> > > Interesting fact is, that the ISDN-Phone on the NT line rings still, if > > > the calling phone has dropped the call.. > > > > The same thing here.The ISDN-Phone continuing to ring forever after the calling party has dropped the call is not related to the configuration error that was introduced in this thread. wkr, -- Envida http://www.envida.net/ Armand A. Verstappen Vleutenseweg 86 armand@nl.envida.net 3532 HM Utrecht tel: +31 (0)30 299 2109 The Netherlands fax: +31 (0)30 299 2108 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040220/59a24beb/attachment.pgp
Klaus-Peter Junghanns
2004-Feb-20 07:56 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
Am Fr, 2004-02-20 um 15.22 schrieb Armand A. Verstappen:> On Fri, 2004-02-20 at 09:17, Klaus-Peter Junghanns wrote: > > to clear things up again, the problem is a wrong syntax for > > the Dial appplication > > > > exten => 74341423,1,Dial(Zap/g2/74341423,r) > > This will use "r" as the timeout value, so it will hang up > > immediately, actually too quick for the isdn phone to bring > > up a p2p layer 2 connection (it is on my todo list to handle > > this too). > > > > exten => 74341423,1,Dial(Zap/g2/74341423,,r) > > This is what you want (not the second ","). > > All true, but: > > > > > Interesting fact is, that the ISDN-Phone on the NT line rings still, if > > > > the calling phone has dropped the call.. > > > > > > The same thing here. > > The ISDN-Phone continuing to ring forever after the calling party has > dropped the call is not related to the configuration error that was > introduced in this thread. >true, see above (shame on me!).> wkr,-- best regards Klaus -- Klaus-Peter Junghanns CEO, CTO Junghanns.NET GmbH Breite Stra?e 13 - 12167 Berlin - Germany fon: (de) +49 30 79705390 fon: (uk) +44 870 1244692 fax: (de) +49 30 79705391 iaxtel: 1-700-157-8753 http://www.Junghanns.NET/asterisk/
Carlos Hernandez
2004-Feb-24 20:12 UTC
[Asterisk-Users] Zaptel BRI and HFC-S cards in NT-Mode
Hello Klauss: Could you please let us know the price of your Quad-BRI card? Thanks, Carlos Klaus-Peter Junghanns wrote:>Am Fr, 2004-02-20 um 15.22 schrieb Armand A. Verstappen: > > >>On Fri, 2004-02-20 at 09:17, Klaus-Peter Junghanns wrote: >> >> >>>to clear things up again, the problem is a wrong syntax for >>>the Dial appplication >>> >>>exten => 74341423,1,Dial(Zap/g2/74341423,r) >>>This will use "r" as the timeout value, so it will hang up >>>immediately, actually too quick for the isdn phone to bring >>>up a p2p layer 2 connection (it is on my todo list to handle >>>this too). >>> >>>exten => 74341423,1,Dial(Zap/g2/74341423,,r) >>>This is what you want (not the second ","). >>> >>> >>All true, but: >> >> >> >>>>>Interesting fact is, that the ISDN-Phone on the NT line rings still, if >>>>>the calling phone has dropped the call.. >>>>> >>>>> >>>>The same thing here. >>>> >>>> >>The ISDN-Phone continuing to ring forever after the calling party has >>dropped the call is not related to the configuration error that was >>introduced in this thread. >> >> >> >true, see above (shame on me!). > > > >>wkr, >> >>