Lost configuration / red light on card

Hello,

Our Asterisk phone server suddenly stopped connecting to the BT box that we have on site.
I called BT (UK ISP) to find out that the service they provide is ISDN30.
They run diagnostics up to that box and it came back fine.
Internal calls (over LAN) are working fine.
The only visible symptom is red light blinking on the ISDN card.
It’s blinking either red/blank or red/green.
I tried swapping the cable and reinserting the card into a different PCI slot but nothing has changed.
We have ordered identical card (model Digium TE110P Wildcard Single Span PCI Card) and swapped it but the problem persists.
So far I couldn’t find any hard evidence of a hardware failure or any other meaningful errors (to me).
I’m suspecting that the existing configuration has been lost somehow.
I don’t seem to be able to retrieve old working one from the backups we have (/etc/asterisk/zapata_custom.conf).

Some info on the server:

uname -a

Linux beryllium 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04
Release: 8.04
Codename: hardy


Things I’ve tried, logs etc:

/var/log/asterisk/messages (old card):

(…)
[Nov 11 11:30:23] WARNING[7984] chan_zap.c: Detected alarm on channel 30: Yellow Alarm
[Nov 11 11:30:23] WARNING[7984] chan_zap.c: Detected alarm on channel 31: Yellow Alarm
[Nov 11 11:30:23] NOTICE[7983] chan_zap.c: PRI got event: Alarm (4) on Primary D-channel of span 1
[Nov 11 11:30:23] WARNING[7983] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 11 11:30:24] NOTICE[7984] chan_zap.c: Alarm cleared on channel 1
[Nov 11 11:30:24] NOTICE[7984] chan_zap.c: Alarm cleared on channel 2
(…)


/var/log/asterisk/messages (new card):

[Nov 22 11:23:30] NOTICE[7619] cdr.c: CDR simple logging enabled.
[Nov 22 11:23:30] NOTICE[7619] loader.c: 161 modules will be loaded.
[Nov 22 11:23:31] WARNING[7619] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Nov 22 11:23:31] NOTICE[7619] res_odbc.c: res_odbc loaded.
[Nov 22 11:23:32] ERROR[7619] chan_vpb.cc: VPB Driver not configured
[Nov 22 11:23:32] NOTICE[7619] chan_vpb.cc: VPB driver Registered )
[Nov 22 11:23:32] NOTICE[7619] pbx_ael.c: Starting AEL load process.
[Nov 22 11:23:32] NOTICE[7619] pbx_ael.c: AEL load process: calculated config file name ‘/etc/asterisk/extensions.ael’.
[Nov 22 11:23:32] NOTICE[7619] pbx_ael.c: File /etc/asterisk/extensions.ael not found; AEL declining load
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Unable to open /var/spool/asterisk/outgoing/smsq.motx.0.1312972205-15817.1: Permission denied, deleting
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Failed to scan service ‘/var/spool/asterisk/outgoing/smsq.motx.0.1312972205-15817.1’
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Unable to open /var/spool/asterisk/outgoing/smsq.motx.0.1312971797-15156.1: Permission denied, deleting
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Failed to scan service ‘/var/spool/asterisk/outgoing/smsq.motx.0.1312971797-15156.1’
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Unable to open /var/spool/asterisk/outgoing/smsq.motx.0.1312972322-15838.1: Permission denied, deleting
[Nov 22 11:23:33] WARNING[7866] pbx_spool.c: Failed to scan service ‘/var/spool/asterisk/outgoing/smsq.motx.0.1312972322-15838.1’
[Nov 22 11:23:36] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:23:41] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:23:46] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:23:51] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:23:56] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:01] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:06] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:11] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:16] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:21] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:26] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:31] WARNING[7871] chan_zap.c: No D-channels available! Using Primary channel 16 as D-channel anyway!
[Nov 22 11:24:32] WARNING[8260] app_dial.c: Unable to create channel of type ‘Zap’ (cause 34 - Circuit/channel congestion)


Identical / very similar results for both cards:

lspci -v

(…)
07:00.0 Network controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Subsystem: Unknown device 79fe:0001
Flags: bus master, medium devsel, latency 32, IRQ 22
I/O ports at 1000 [size=256]
Memory at 50004000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
(…)


dmesg

(…)
[ 30.462309] ISDN subsystem Rev: 1.1.2.3/1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded
[ 30.569681] HiSax: Linux Driver for passive ISDN cards
[ 30.569685] HiSax: Version 3.5 (module)
[ 30.569687] HiSax: Layer1 Revision 2.46.2.5
[ 30.569689] HiSax: Layer2 Revision 2.30.2.4
[ 30.569691] HiSax: TeiMgr Revision 2.20.2.3
[ 30.569692] HiSax: Layer3 Revision 2.22.2.3
[ 30.569694] HiSax: LinkLayer Revision 2.59.2.4
[ 30.693628] Zapata Telephony Interface Registered on major 196
[ 30.693631] Zaptel Version: 1.4.12.1
[ 30.693633] Zaptel Echo Canceller: MG2
[ 30.789724] ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 22
[ 30.790645] FALC version: 00000000
[ 30.790647] TE110P: Setting up global serial parameters for E1 FALC V1.2
[ 30.790690] TE110P: Successfully initialized serial bus for card
[ 30.791034] Found a Wildcard: Digium Wildcard TE110P T1/E1
(…)


ztcfg -vv

Zaptel Version: 1.4.12.1
Echo Canceller: MG2
Configuration

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear 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)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)
Channel 31: Clear channel (Default) (Slaves: 31)

31 channels to configure.


isdnctrl status

Can’t open /dev/isdnctrl or /dev/isdn/isdnctrl: No such device

ls -al /dev/isdnctrl

lrwxrwxrwx 1 root root 9 2013-11-22 11:23 /dev/isdnctrl -> isdnctrl0

ls -al /dev/isdnctrl0

crw-rw---- 1 root dialout 45, 64 2013-11-22 11:23 /dev/isdnctrl0


zttest

Opened pseudo zap interface, measuring accuracy…
99.998825% 99.995705% 99.998627% 99.998337% 99.998634% 99.998642% 99.998436%
99.998734% 99.996964% 99.998642% 99.998543% 99.998352% 99.998352% 99.998634% 99.998543%
99.943253% 99.938675% 99.998337% 99.998734% 99.998543% 99.998734% 99.998825% 99.998344%
99.998734% 99.997757% 99.998245% 99.998436% 99.998436% 99.998436% 99.998734% 99.998344%
99.998642% 99.997757% 99.997360% 99.998329% 99.998436% 99.998543% 99.998032% 99.998741%
99.998543% 99.998238% 99.998535% 99.998444%
— Results after 43 passes —
Best: 99.999 – Worst: 99.939 – Average: 99.995678, Difference: 99.998317


cat /etc/asterisk/zapata-channels.conf

; Autogenerated by /usr/sbin/genzaptelconf – do not hand edit
; Zaptel Channels Configurations (zapata.conf)
;
; This is not intended to be a complete zapata.conf. Rather, it is intended
; to be #include-d by /etc/zapata.conf that will include the global settings
;

; Span 1: WCT1/0 “Digium Wildcard TE110P T1/E1 Card 0” (MASTER)
group=0,11
context=from-pstn
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
;nationalprefix=0
group=
context=default

loadzone=uk
defaultzone=uk

stripmsd=0


cat /etc/asterisk/zapata_custom.conf

group=0

switchtype=euroisdn
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
restrictcid=no
;loadzone=uk
;defaultzone=uk

nationalprefix=0
internationalprefix=00
stripmsd=0

pridialplan=unknown
;pridialplan=national
prilocaldialplan=unknown

echocancel=yes
echocancelwhenbridged=yes
echotraining=400

cidsignalling=dtmf
cidstart=ring

context=from-pstn

callerid=asreceived

channel => 1-15,17-31


cat /etc/asterisk/zapata.conf

;
; Zapata telephony interface
;
; Configuration file
;
; You need to restart Asterisk to re-configure the Zap channel
; CLI> reload chan_zap.so
; will reload the configuration file,
; but not all configuration options are
; re-configured during a reload.

[channels]

;
; Switchtype: Only used for PRI.
;
; national: National ISDN 2 (default)
; dms100: Nortel DMS100
; 4ess: AT&T 4ESS
; 5ess: Lucent 5ESS
; euroisdn: EuroISDN
; ni1: Old National ISDN 1
; qsig: Q.SIG
;

group=0

switchtype=euroisdn
signalling=pri_cpe
usecallerid=yes
hidecallerid=no
restrictcid=no
;loadzone=uk
;defaultzone=uk

nationalprefix=0
internationalprefix=00
stripmsd=0

pridialplan=unknown
;pridialplan=national
prilocaldialplan=unknown

echocancel=yes
echocancelwhenbridged=yes
echotraining=400

cidsignalling=dtmf
cidstart=ring

context=from-pstn

callerid=asreceived

channel => 1-15,17-31


I’m badly stuck here and not sure what to try next so would very much appreciate any help / hint :smile:

Thanks
Adam