× Questions about B100/200/400/800 ISDN BRI Cards

How to install B400P with A400P in one server

11 years 6 months ago #486 by yidiyuehan
I have successfully installed B400P using Bristuff in asterisk server and it works fine.
Now I want to add one more A400p card as I need to connect some Analog fax machine into this server.

However whenever I plug in the A400p card and restart the server I get the error either cannot find channel 1 or cannot find span 1.

Any one has a manual for two cards installed into one server?
11 years 6 months ago #487 by james.zhu
hello, yidiyuehan:
i think it can be done. have you add A400p conf files in zaptel and zapata conf? make sure load the wctdm. please post the error messages to forum.
Regards!
james.zhu

11 years 6 months ago #488 by yidiyuehan
hi, james, thanks for your support. Below are some messages:

lspci -vv
01:00.0 ISDN controller: Cologne Chip Designs GmbH ISDN network Controller [HFC-4S] (rev 01)
Subsystem: Cologne Chip Designs GmbH: Unknown device e888
Flags: medium devsel, IRQ 185
I/O ports at c400
Memory at dfefe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2

01:01.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Subsystem: Unknown device b100:0001
Flags: bus master, medium devsel, latency 64, IRQ 225
I/O ports at c800
Memory at dfeff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2


[root@PT8 ~]# tail /var/log/asterisk/full
Nov 13 12:32:15 ERROR[4564] chan_misdn.c: Unable to initialize mISDN
Nov 13 12:32:15 VERBOSE[4564] logger.c: [chan_zap.so]Nov 13 12:32:15 VERBOSE[4564] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI)
Nov 13 12:32:15 VERBOSE[4564] logger.c: == Parsing '/etc/asterisk/zapata.conf': Nov 13 12:32:15 VERBOSE[4564] logger.c: == Parsing '/etc/asterisk/zapata.conf': Found
Nov 13 12:32:15 VERBOSE[4564] logger.c: == Parsing '/etc/asterisk/zapata_additional.conf': Nov 13 12:32:15 VERBOSE[4564] logger.c: == Parsing '/etc/asterisk/zapata_additional.conf': Found
Nov 13 12:32:15 WARNING[4564] chan_zap.c: Unable to specify channel 1: No such device or address
Nov 13 12:32:15 ERROR[4564] chan_zap.c: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Nov 13 12:32:15 ERROR[4564] chan_zap.c: Unable to register channel '1'
Nov 13 12:32:15 WARNING[4564] loader.c: chan_zap.so: load_module failed, returning -1
Nov 13 12:32:15 WARNING[4564] loader.c: Loading module chan_zap.so failed!



[root@PT8 ~]# ztcfg -vvvvvvvvvvvvvvvvvv

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: FXO Loopstart (Default) (Slaves: 01)
Channel 02: FXS Loopstart (Default) (Slaves: 02)
Channel 03: FXS Loopstart (Default) (Slaves: 03)
Channel 04: FXS Loopstart (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: D-channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: D-channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: D-channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)

16 channels configured.

ZT_SPANCONFIG failed on span 6: No such device or address (6)



zaptel.conf
loadzone=sg
defaultzone=sg
fxols=1
fxsls=2-4
# qozap span definitions
# most of the values should be bogus because we are not really zaptel
span=5,5,0,ccs,ami
span=6,6,0,ccs,ami
span=7,7,0,ccs,ami
span=8,8,0,ccs,ami
bchan=5,6
dchan=7
bchan=8,9
dchan=10
bchan=11,12
dchan=13
bchan=14,15
dchan=16



zapata.conf:
[trunkgroups]
[channels]
;
; Default language
;
musiconhold=default
language=en
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
callerid=asreceived
hidecallerid=no
callwaiting=yes
callwaitingcallerid=yes
restrictcid=no
usecallingpres=yes
threewaycalling=yes
useincomingcalleridonzaptransfer=yes

echocancel=yes
transfer=yes ;flash-hook call transfer
cancallforward=yes
callreturn=yes ; whether or not to support call back to the previous number,
;with call trace (*69) and call back the number
echocancelwhenbridged=no
; echotraining need the click; or maybe set it lower as 128
callprogress=no
immediate=no
jitterbuffers=6 ; 4 is default
echotraining=yes ; if u have the clicking noise with FXO, then turn it off as
rxgain=9.0
txgain=-1.0
faxdetect=both
;faxdetect=incoming
;faxdetect=outgoing
#include zapata_additional.conf

signalling=fxo_ls
context=from-internal
group=1
channel => 1
busydetect=yes
busycount=2
busypattern=750,750
signalling=fxs_ls
context=from-zaptel
group=0
channel =>2

busydetect=yes
busycount=2
busypattern=750,750
signalling=fxs_ls
context=from-zaptel
group=0
channel =>3

busydetect=yes
busycount=2
busypattern=750,750
signalling=fxs_ls
context=from-zaptel
group=0
channel =>4


; p2mp TE mode (for connecting ISDN lines in point-to-multipoint mode)
;signalling = bri_cpe_ptmp
; p2p TE mode (for connecting ISDN lines in point-to-point mode)
; p2mp NT mode (for connecting ISDN phones in point-to-multipoint mode)
;signalling = bri_net_ptmp
; p2p NT mode (for connecting an ISDN pbx in point-to-point mode)
;signalling = bri_net

priindication = passthrough
#include zapata-channels.conf

switchtype = euroisdn
signalling = bri_cpe
context=from-zaptel
group=1
; S/T port 1
channel=>5-6
channel=>8-9
channel=>11-12
channel=>14-15
11 years 6 months ago #489 by james.zhu
hello, i think your asterisk fail loading because of your zapata_additional.conf. do you have any info in zapata_additional.conf? maybe there are some spelling errors or syntax errors in your zapata_additional.conf. please check that.
Regards!
james.zhu

11 years 6 months ago #490 by yidiyuehan
I tried to remove one of the card and modify the zaptel.conf and zapata.conf and it works with either of the cards.

The error only happens with boths cards installed in one server. I also tried to delete file zapata_additional.conf and remove the line #include zapata_additional.conf in zapata.conf.


[root@PT7 ~]# ztcfg -vv

Zaptel Configuration
======================

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 02: FXS Loopstart (Default) (Slaves: 02)
Channel 03: FXS Loopstart (Default) (Slaves: 03)
Channel 04: FXS Loopstart (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: D-channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: D-channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: D-channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)

15 channels configured.

ZT_SPANCONFIG failed on span 6: No such device or address (6)


[root@PT7 ~]# tail /var/log/asterisk/full
Nov 13 14:46:05 WARNING[5460] pbx.c: Context 'ivr-2' tries includes nonexistent context 'ivr-2-custom'
Nov 13 14:46:05 WARNING[5460] pbx.c: Context 'ivr-2' tries includes nonexistent context 'ext-findmefollow'
Nov 13 14:46:05 WARNING[5460] pbx.c: Context 'app-callwaiting-cwon' tries includes nonexistent context 'app-callwaiting-cwon-custom'
Nov 13 14:46:05 WARNING[5460] pbx.c: Context 'app-callwaiting-cwoff' tries includes nonexistent context 'app-callwaiting-cwoff-custom'
Nov 13 14:46:05 WARNING[5460] chan_zap.c: Unable to specify channel 1: No such device or address
Nov 13 14:46:05 ERROR[5460] chan_zap.c: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Nov 13 14:46:05 ERROR[5460] chan_zap.c: Unable to register channel '1'
Nov 13 14:46:05 WARNING[5460] loader.c: chan_zap.so: load_module failed, returning -1
Nov 13 14:46:05 WARNING[5460] loader.c: Loading module chan_zap.so failed!
11 years 6 months ago #491 by yidiyuehan
I think there maybe some tricks if both cards really can be installed into one server. I may try to install B400p using Misdn driver and try again.

For your information below is the case with A400p card enabled only and it works without changing anything else:

[root@PT7 asterisk]# ztcfg -vvv

Zaptel Configuration
======================


Channel map:

Channel 01: FXO Loopstart (Default) (Slaves: 01)
Channel 02: FXS Loopstart (Default) (Slaves: 02)
Channel 03: FXS Loopstart (Default) (Slaves: 03)
Channel 04: FXS Loopstart (Default) (Slaves: 04)

4 channels configured.


zttool:
OK Wildcard TDM400P REV E/F Board 1 ▒ │
│ UNCONFIGURED quadBRI PCI ISDN Card 1 Span 1 [TE] (ca # ▒ │
│ UNCONFIGURED quadBRI PCI ISDN Card 1 Span 2 [TE] (ca ▒ │
│ UNCONFIGURED quadBRI PCI ISDN Card 1 Span 3 [TE] (ca ▒ │
│ UNCONFIGURED quadBRI PCI ISDN Card 1 Span 4 [TE] (ca
Time to create page: 0.042 seconds
Powered by Kunena Forum