Asterisk does not start, Loading module chan_zap.so failed!

hi,

we had a power outage today and the UPS failed as well. since power is restored i cant start asterisk anymore.

asterisk version: 1.2.24
zaptel version: 1.2.20.1
telephony card: TDM400P

ztcfg -vvv

Zaptel Configuration

Channel map:

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

4 channels configured.

asterisk full log (just the part with errors)

Jan 9 01:04:05 VERBOSE[5397] logger.c: [chan_zap.so]Jan 9 01:04:05 VERBOSE[5397] logger.c: [chan_zap.so] => (Zapata Telephony)
Jan 9 01:04:05 VERBOSE[5397] logger.c: == Parsing ‘/etc/asterisk/zapata.conf’: Jan 9 01:04:05 VERBOSE[5397] logger.c: == Parsing ‘/etc/asterisk/zapata.conf’: Found
Jan 9 01:04:05 VERBOSE[5397] logger.c: == Parsing ‘/etc/asterisk/zapata_additional.conf’: Jan 9 01:04:05 VERBOSE[5397] logger.c: == Parsing ‘/etc/asterisk/zapata_additional.conf’: Found
Jan 9 01:04:05 WARNING[5397] chan_zap.c: Unable to specify channel 1: No such device
Jan 9 01:04:05 ERROR[5397] chan_zap.c: Unable to open channel 1: No such device
here = 0, tmp->channel = 1, channel = 1
Jan 9 01:04:05 ERROR[5397] chan_zap.c: Unable to register channel '1’
Jan 9 01:04:05 WARNING[5397] loader.c: chan_zap.so: load_module failed, returning -1
Jan 9 01:04:05 WARNING[5397] loader.c: Loading module chan_zap.so failed!

syslog at time of loading the zaptel modules:

Jan 9 01:05:39 faust kernel: Zapata Telephony Interface Registered on major 196
Jan 9 01:05:39 faust kernel: Zaptel Version: 1.2.20.1
Jan 9 01:05:39 faust kernel: Zaptel Echo Canceller: MG2
Jan 9 01:05:42 faust kernel: Registered Span 1 (‘WCTDM/0’) with 4 channels
Jan 9 01:05:42 faust kernel: Span (‘WCTDM/0’) is new master
Jan 9 01:05:42 faust kernel: Freshmaker version: 73
Jan 9 01:05:42 faust kernel: Freshmaker passed register test
Jan 9 01:05:42 faust kernel: ProSLIC on module 0, product 0, version 0
Jan 9 01:05:42 faust kernel: Module 0: Not installed
Jan 9 01:05:42 faust kernel: ProSLIC on module 1, product 0, version 3
Jan 9 01:05:42 faust kernel: ProSLIC on module 1 seems sane.
Jan 9 01:05:42 faust kernel: ProSLIC on module 1 powered up to -74 volts (c7) in 4 ms
Jan 9 01:05:42 faust kernel: Loop current set to 20mA!
Jan 9 01:05:42 faust kernel: Excessive leakage detected on module 1: 0 volts (00) after 0 ms
Jan 9 01:05:42 faust kernel: ProSLIC module 1 failed leakage test. Check for short circuit
Jan 9 01:05:42 faust kernel: ProSLIC on module 1 powered up to -74 volts (c7) in 0 ms
Jan 9 01:05:42 faust kernel: Loop current set to 20mA!
Jan 9 01:05:42 faust kernel: Calibration Vector Regs 98 - 107:
Jan 9 01:05:42 faust kernel: 98: 00
Jan 9 01:05:42 faust kernel: 99: 10
Jan 9 01:05:42 faust kernel: 100: 11
Jan 9 01:05:42 faust kernel: 101: 11
Jan 9 01:05:42 faust kernel: 102: 08
Jan 9 01:05:42 faust kernel: 103: 88
Jan 9 01:05:42 faust kernel: 104: 00
Jan 9 01:05:42 faust kernel: 105: 00
Jan 9 01:05:42 faust kernel: 106: 20
Jan 9 01:05:42 faust kernel: 107: 08
Jan 9 01:05:42 faust kernel: DC-DC cal has a surprising direct 107 of 0xff!
Jan 9 01:05:42 faust kernel: !!! OSC1_COEF iREG D = 63 should be 7B30
Jan 9 01:05:42 faust kernel: !!! OSC1X iREG E = 7870 should be 63
Jan 9 01:05:42 faust kernel: !!! OSC2_COEF iREG 10 = 7EF0 should be 7870
Jan 9 01:05:42 faust kernel: !!! TERM_LP_POLE_Q1Q2 iREG 25 = 8000 should be 8C
Jan 9 01:05:42 faust kernel: !!! Init Indirect Registers UNSUCCESSFULLY.
Jan 9 01:05:42 faust kernel: Indirect Registers failed verification.
Jan 9 01:05:42 faust kernel: ProSLIC on module 1 powered up to -74 volts (c5) in 0 ms
Jan 9 01:05:42 faust kernel: Loop current set to 20mA!
Jan 9 01:05:42 faust kernel: Excessive leakage detected on module 1: 0 volts (00) after 4 ms
Jan 9 01:05:42 faust kernel: ProSLIC module 1 failed leakage test. Check for short circuit
Jan 9 01:05:42 faust kernel: ProSLIC on module 1 powered up to -74 volts (c5) in 0 ms
Jan 9 01:05:42 faust kernel: Loop current set to 20mA!
Jan 9 01:05:42 faust kernel: !!! OSC1Y iREG F = 63 should be 0
Jan 9 01:05:42 faust kernel: !!! Init Indirect Registers UNSUCCESSFULLY.
Jan 9 01:05:42 faust kernel: Indirect Registers failed verification.
Jan 9 01:05:42 faust kernel: Module 1: FAILED FXS (FCC)
Jan 9 01:05:42 faust kernel: ProSLIC on module 2, product 0, version 0
Jan 9 01:05:42 faust kernel: VoiceDAA System: 04
Jan 9 01:05:42 faust kernel: ISO-Cap is now up, line side: 03 rev 06
Jan 9 01:05:42 faust kernel: Module 2: Installed – AUTO FXO (FCC mode)
Jan 9 01:05:42 faust kernel: ProSLIC on module 3, product 0, version 0
Jan 9 01:05:42 faust kernel: VoiceDAA System: 04
Jan 9 01:05:42 faust kernel: ISO-Cap is now up, line side: 03 rev 06
Jan 9 01:05:42 faust kernel: Module 3: Installed – AUTO FXO (FCC mode)
Jan 9 01:05:42 faust kernel: Found a Wildcard TDM: Wildcard TDM400P REV I (2 modules)
Jan 9 01:05:42 faust kernel: 415531 Polarity reversed (0 -> 1)
Jan 9 01:05:42 faust kernel: 415532 Polarity reversed (0 -> 1)
Jan 9 01:05:45 faust kernel: Registered tone zone 4 (United Kingdom)
Jan 9 01:05:48 faust kernel: Poopy (00) on card 4!

i have never looked at the output at the time the modules are loaded, i cant say if it had looked the same at the time asterisk did start. i am hoping someone can point me in the right direction where to look for the problem. the syslog looks to me as if the TDM400 card does actually not see or start channel 1 and 2 (module 0 and 1 ?).

any advice is highly appreciated.
regards
Jan

HI

Ok first things first

Power the system down.

Disconnect the cable from the card

swap modules 0,1 with 2,3 then restart the system with the lines still disconnected

and see what the logs look like,

Ian

okay, i will do tomorrow. i am not physically at the box right now.

thanks for the quick response !
Jan

okay, it was not only a power cut. it was lightning which blow the card. i can clearly see burn marks on some of the components. have ordered a new card and wait for delivery.

bye
Jan