[Asterisk-bsd] Problem using Netjet Bri Cards in Asterisk
Farooq Ahmed
fahmed at tpg.com.au
Fri Mar 23 07:13:58 MST 2007
Hi,
I have done my best and tired of searching the net about the problem. If anybody could help
would be a great favour.
Description of Problem
------------------------
I am trying to install two Netpci cards(Traverse Technology Netjet ISDN-s) on Trixbox 2 and aim
is to use in Asterisk as dailin and dialout. I compliled the driver as directed in the manufacture
manual. After installation dmesg shows that both of the cards have installed successfully.
When testing two problem is there
1) Card one receiving call normally but when dialing out .. it dials the number when other person
picks the call no voice of either side can be heard.
2)Secound card is neither receiving nor dialing error in asterisk is comming like ISDN2#02: CAPI
INFO 0x3303: Protocol error layer 3.
I am trying to use ISDN channels in asterisk using Chan_capi.
For the detail i have added the following outputs in this mail.
#Netjet Card was compiled using these options
#DMESG RESULTS
#RESULTS of CAPIINFO
#Output of etc/CAPI.conf
#output of etc/asterisk/capi.conf
#output capi info from Asterisk CLI #Output from ASTERISK CLI terminal ..when outgoing call
was rejected (error output)
Thanks and Regards
Farooq
####Netjet Card was compiled using these options
-----------------------------------------------
Device Drivers --->
ISDN subsystem --->
<M> ISDN support
--- CAPI subsystem
<M> CAPI2.0 support
[ ] Verbose reason code reporting (kernel size +=7K)
[*] CAPI2.0 Middleware support (EXPERIMENTAL)
<M> CAPI2.0 /dev/capi support
[*] CAPI2.0 filesystem support
< > CAPI2.0 capidrv interface support
--- CAPI hardware drivers
Active AVM cards --->
Active Eicon DIVA Server cards --->
Modular ISDN driver --->
<M> Support modular ISDN driver
[ ] Enable memory leak debug for mISDN (NEW)
[*] Support for AVM Fritz!Cards
[*] Support for NETJet cards
DMESG RESULTS
---------------
CAPI Subsystem Rev 1.1.2.8
capifs: Rev 1.1.2.3
capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs) Modular ISDN Stack core
$Revision: 1.37 $
mISDNd: kernel daemon started (current:ca4d8680)
mISDNd: test event done
ISDN L1 driver version 1.18
ISDN L2 driver version 1.31
mISDN: DSS1 Rev. 1.42
mISDN Capi 2.0 driver file version 1.20
ISAC module $Revision: 1.17 $
mISDN_dsp: Audio DSP Rev. 1.24 (debug=0x0) EchoCancellor MG2
dtmftreshold(100)
mISDN_dsp: DSP clocks every 64 samples. This equals 8 jiffies.
DTMF modul version 1.16
Traverse Tech. NETjet-S driver, revision 1.6
nj_probe(mISDN): found adapter NETJet S at 0000:00:0b.0 NETJet setup_instance: protocol is 2
layermask is 0 NETJet card ca611740 dch ca611894 bch1 ca6119f8 bch2 ca611b5c
NETJet1 ISAC STAR 4a
NETJet1 ISAC MODE 0
NETJet1 ISAC ADF2 0
NETJet1 ISAC ISTA 0
NETJet1 ISAC CIR0 7c
mISDN_isac_init: ISAC version (0): 2086/2186 V1.1
NETJet1 B1 tiger: send buf ca0da000 - ca0da7fc
NETJet1 B1 tiger: rec buf ca0db000 - ca0db1fc
NETJet1 B1 tiger: dmacfg a0db000/a0da000 pulse=0 NETJet 1 cards installed
kcapi: Controller 1: mISDN1 attached
contr->addr(01) cnr(01) st(00000100)
nj_probe(mISDN): found adapter NETJet S at 0000:00:0d.0 NETJet setup_instance: protocol is 2
layermask is 0 NETJet card cad0e340 dch cad0e494 bch1 cad0e5f8 bch2 cad0e75c
kcapi: card 1 "mISDN1" ready.
NETJet2 ISAC STAR 4a
NETJet2 ISAC MODE 0
NETJet2 ISAC ADF2 0
NETJet2 ISAC ISTA 0
NETJet2 ISAC CIR0 7c
mISDN_isac_init: ISAC version (0): 2086/2186 V1.1
NETJet2 B1 tiger: send buf ca30e000 - ca30e7fc
NETJet2 B1 tiger: rec buf ca315000 - ca3151fc
NETJet2 B1 tiger: dmacfg a315000/a30e000 pulse=0 NETJet 2 cards installed
kcapi: Controller 2: mISDN2 attached
contr->addr(02) cnr(02) st(00000200)
kcapi: card 2 "mISDN2" ready.
RESULTS of CAPIINFO
--------------------
[root at cripbx etc]# capiinfo
Number of Controllers : 2
Controller 1:
Manufacturer: mISDN CAPI controller NETJet1 CAPI Version: 2.0 Manufacturer Version: 1.0 Serial
Number: 0002
BChannels: 2
Global Options: 0x00000018
DTMF supported
Supplementary Services supported
B1 protocols support: 0x00000003
64 kbit/s with HDLC framing
64 kbit/s bit-transparent operation
B2 protocols support: 0x00000043
ISO 7776 (X.75 SLP)
Transparent
Transparent (ignoring framing errors of B1 protocol)
B3 protocols support: 0x00000001
Transparent
0100
0200
18000000
03000000
43000000
01000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000
Supplementary services support: 0x00000033
Hold / Retrieve
Terminal Portability
Call Forwarding
Call Deflection
Controller 2:
Manufacturer: mISDN CAPI controller NETJet2 CAPI Version: 2.0 Manufacturer Version: 1.0 Serial
Number: 0002
BChannels: 2
Global Options: 0x00000018
DTMF supported
Supplementary Services supported
B1 protocols support: 0x00000003
64 kbit/s with HDLC framing
64 kbit/s bit-transparent operation
B2 protocols support: 0x00000043
ISO 7776 (X.75 SLP)
Transparent
Transparent (ignoring framing errors of B1 protocol)
B3 protocols support: 0x00000001
Transparent
0100
0200
18000000
03000000
43000000
01000000
00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000
Supplementary services support: 0x00000033
Hold / Retrieve
Terminal Portability
Call Forwarding
Call Deflection
OUTPUT of etc/CAPI.conf
-------------------
[root at cripbx etc]# cat /etc/capi.conf
# card file proto io irq mem cardnr options
#b1isa b1.t4 DSS1 0x150 7 - - P2P
b1pci b1.t4 DSS1 - - - -
c4 c4.bin DSS1 - - - -
c4 - DSS1 - - - -
c4 - DSS1 - - - - P2P
c4 - DSS1 - - - - P2P
#c2 c2.bin DSS1 - - - -
#c2 - DSS1 - - - -
#t1isa t1.t4 DSS1 0x340 9 - 0
#t1pci t1.t4 DSS1 - - - -
#fcpci - - - - - -
#fcclassic - - 0x150 10 - -
b1pci b1.t4 DSS1 - - - -
c4 c4.bin DSS1 - - - -
c4 - DSS1 - - - -
c4 - DSS1 - - - - P2P
c4 - DSS1 - - - - P2P
output of etc/asterisk/capi.conf
--------------------------------
[root at cripbx etc]# cat /etc/asterisk/capi.conf ; ; CAPI config ; ;
; general section
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=en ;set default language
[ISDN1] ;this example interface gets name 'ISDN1' and may be any
isdnmode=msn ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any
controller=1 ;capi controller number of this interface/port
group=1 ;dialout group
softdtmf=on ;enable/disable software dtmf detection, recommended for
AVM cards
relaxdtmf=on ;in addition to softdtmf, you can use relaxed dtmf
detection
faxdetect=off ;enable faxdetection and redirection to EXTEN 'fax' for
incoming and/or
accountcode= ;PBX accountcode to use in CDRs
context=from-pstn ;context for incoming calls echocancelold=yes;use facility selector 6 instead
of correct 8 (necessary for older eicon drivers)
devices=2 ;number of concurrent calls (b-channels) on this controller
[ISDN2]
isdnmode=msn ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any
controller=2 ;capi controller number of this interface/port
group=1 ;dialout group
softdtmf=on ;enable/disable software dtmf detection, recommended for
AVM cards
relaxdtmf=on ;in addition to softdtmf, you can use relaxed dtmf
detection
faxdetect=off ;enable faxdetection and redirection to EXTEN 'fax' for
incoming and/or
accountcode= ;PBX accountcode to use in CDRs
context=from-pstn ;context for incoming calls echocancelold=yes;use facility selector 6 instead
of correct 8 (necessary for older eicon drivers)
devices=2 ;number of concurrent calls (b-channels) on this controller
output capi info from Asterisk CLI
-------------------------------------
cripbx*CLI> capi info
Contr1: 2 B channels total, 2 B channels free.
Contr2: 2 B channels total, 2 B channels free.
Output from ASTERISK CLI terminal when outgoing call was rejected
---------------------------------------------------------
> ISDN2#02: CAPI INFO 0x3303: Protocol error layer 3
-- CAPI queue frame: [ TYPE: Control (4) SUBCLASS: Hangup (1) ] [ISDN2#02]
== ISDN2#02: CAPI Hangingup for PLCI=0x102 in state 4
== ISDN2#02: Interface cleanup PLCI=0x102
== No one is available to answer at this time (1:0/0/0)
-- Executing Goto("SIP/777-08a18500", "s-NOANSWER|1") in new stack
-- Goto (macro-dialout-trunk,s-NOANSWER,1)
-- Executing NoOp("SIP/777-08a18500", "Dial failed due to trunk reporting NOANSWER - giving
up") in new
stack
-- Executing PlayTones("SIP/777-08a18500", "congestion") in new stack
-- Executing Congestion("SIP/777-08a18500", "20") in new stack
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on 'SIP/777-
08a18500' in macro
'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on 'SIP/777-
08a18500'
-- Executing Macro("SIP/777-08a18500", "hangupcall") in new stack
-- Executing ResetCDR("SIP/777-08a18500", "w") in new stack
> CAPI devicestate requested for ISDN2/0416232810
> CAPI devicestate requested for ISDN2/0416232810
-- Executing NoCDR("SIP/777-08a18500", "") in new stack
-- Executing GotoIf("SIP/777-08a18500", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/777-08a18500", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/777-08a18500", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/777-08a18500' in
macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/777-08a18500'
--
More information about the Asterisk-BSD
mailing list