Marcio Gomes
2012-Feb-07 10:23 UTC
[asterisk-users] TE410P (1st) without cables always green
Helo, I am upgrading a linux box ( Slackware + asterisk 1.0 + zaptel 0.9 ) to new asterisk 1.8 + dahdi. - In old softwares versions the box is working well. - After upgrade to slackware 13.37 + dahdi ( 2.3.X to SVN ) + asterisk , before asterisk is loaded and PRI/E1 Cables ( Span 1/2 ) + T1 ( Span 3/4 for Addtran channels banks ) , all Spans are in OK ( Green ) mode. - I go to another developer box, and the same problems cames up, is very dificult for me work in the productions box ( only 02:00 am to 04:00 am ). - Follwing my developer box setup : 1) System.conf ( I am working at this time with only 1 spam ) span=1,1,0,ccs,hdb3,crc4 # termtype: te bchan=1-15,17-31 dchan=16 echocanceller=mg2,1-15,17-31 loadzone = us defaultzone = us 2) modprobe wct4xxp debug=3 root at zap4:~# dahdi_cfg -v DAHDI Tools Version - 2.3.0 DAHDI Version: 2.3.0.1 Echo Canceller(s): Configuration ===================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) 31 channels to configure. Setting echocan for channel 1 to mg2 Setting echocan for channel 2 to mg2 Setting echocan for channel 3 to mg2 Setting echocan for channel 4 to mg2 Setting echocan for channel 5 to mg2 Setting echocan for channel 6 to mg2 Setting echocan for channel 7 to mg2 Setting echocan for channel 8 to mg2 Setting echocan for channel 9 to mg2 Setting echocan for channel 10 to mg2 Setting echocan for channel 11 to mg2 Setting echocan for channel 12 to mg2 Setting echocan for channel 13 to mg2 Setting echocan for channel 14 to mg2 Setting echocan for channel 15 to mg2 Setting echocan for channel 16 to none Setting echocan for channel 17 to mg2 Setting echocan for channel 18 to mg2 Setting echocan for channel 19 to mg2 Setting echocan for channel 20 to mg2 Setting echocan for channel 21 to mg2 Setting echocan for channel 22 to mg2 Setting echocan for channel 23 to mg2 Setting echocan for channel 24 to mg2 Setting echocan for channel 25 to mg2 Setting echocan for channel 26 to mg2 Setting echocan for channel 27 to mg2 Setting echocan for channel 28 to mg2 Setting echocan for channel 29 to mg2 Setting echocan for channel 30 to mg2 Setting echocan for channel 31 to mg2 3) dahdi_scan dahdi_scan |more [1] active=yes alarms=OK =================================> Here is the proble, the span is without cables. description=T4XXP (PCI) Card 0 Span 1 name=TE4/0/1 manufacturer=Digium devicetype=Wildcard TE410P/TE405P (1st Gen) location=Board ID Switch 0 basechan=1 totchans=31 irq=20 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS 4) dmesg , I put some informantion in bold. dahdi: Telephony Interface Unloaded dahdi: Telephony Interface Registered on major 196 dahdi: Version: 2.3.0.1 Found TE4XXP at base address e9100000, remapped to f895a000 DMA memory base of size 4096 at f6513000. Read: f6513800 and Write f6513000 TE4XXP version c01a009b, burst OFF card 0: FALC framer is v2.1 or earlier. FALC version: 00000005, Board ID: 00 Reg 0: 0x36513800 Reg 1: 0x36513000 Reg 2: 0x07fc07fc Reg 3: 0x00000000 Reg 4: 0x00000000 Reg 5: 0x00000000 Reg 6: 0xc01a009b Reg 7: 0x00001300 Reg 8: 0x010200ff Reg 9: 0x00fd0000 Reg 10: 0x0000004a *IRQ 20/wct4xxp: IRQF_DISABLED is not guaranteed on shared IRQs wct4xxp 0000:05:00.0: Enabled 1sec error counter interrupt wct4xxp 0000:05:00.0: Enabled errored second interrupt wct4xxp 0000:05:00.0: Enabled 1sec error counter interrupt wct4xxp 0000:05:00.0: Enabled errored second interrupt wct4xxp 0000:05:00.0: Enabled 1sec error counter interrupt wct4xxp 0000:05:00.0: Enabled errored second interrupt wct4xxp 0000:05:00.0: Enabled 1sec error counter interrupt wct4xxp 0000:05:00.0: Enabled errored second interrupt *Found a Wildcard: Wildcard TE410P/TE405P (1st Gen) TE4XXP: Launching card: 0 TE4XXP: Setting up global serial parameters Successfully initialized serial bus for unit 0 Successfully initialized serial bus for unit 1 Successfully initialized serial bus for unit 2 Successfully initialized serial bus for unit 3 About to enter spanconfig! TE4XXP: Configuring span 1 Done with spanconfig! TE4XXP: Configured channel 1 (TE4/0/1/1) sigtype 128 dahdi_echocan_mg2: Registered echo canceler 'MG2' TE4XXP: Configured channel 2 (TE4/0/1/2) sigtype 128 TE4XXP: Configured channel 3 (TE4/0/1/3) sigtype 128 TE4XXP: Configured channel 4 (TE4/0/1/4) sigtype 128 TE4XXP: Configured channel 5 (TE4/0/1/5) sigtype 128 TE4XXP: Configured channel 6 (TE4/0/1/6) sigtype 128 TE4XXP: Configured channel 7 (TE4/0/1/7) sigtype 128 TE4XXP: Configured channel 8 (TE4/0/1/8) sigtype 128 TE4XXP: Configured channel 9 (TE4/0/1/9) sigtype 128 TE4XXP: Configured channel 10 (TE4/0/1/10) sigtype 128 TE4XXP: Configured channel 11 (TE4/0/1/11) sigtype 128 TE4XXP: Configured channel 12 (TE4/0/1/12) sigtype 128 TE4XXP: Configured channel 13 (TE4/0/1/13) sigtype 128 TE4XXP: Configured channel 14 (TE4/0/1/14) sigtype 128 TE4XXP: Configured channel 15 (TE4/0/1/15) sigtype 128 TE4XXP: Configured channel 16 (TE4/0/1/16) sigtype 896 TE4XXP: Configured channel 17 (TE4/0/1/17) sigtype 128 TE4XXP: Configured channel 18 (TE4/0/1/18) sigtype 128 TE4XXP: Configured channel 19 (TE4/0/1/19) sigtype 128 TE4XXP: Configured channel 20 (TE4/0/1/20) sigtype 128 TE4XXP: Configured channel 21 (TE4/0/1/21) sigtype 128 TE4XXP: Configured channel 22 (TE4/0/1/22) sigtype 128 TE4XXP: Configured channel 23 (TE4/0/1/23) sigtype 128 TE4XXP: Configured channel 24 (TE4/0/1/24) sigtype 128 TE4XXP: Configured channel 25 (TE4/0/1/25) sigtype 128 TE4XXP: Configured channel 26 (TE4/0/1/26) sigtype 128 TE4XXP: Configured channel 27 (TE4/0/1/27) sigtype 128 TE4XXP: Configured channel 28 (TE4/0/1/28) sigtype 128 TE4XXP: Configured channel 29 (TE4/0/1/29) sigtype 128 TE4XXP: Configured channel 30 (TE4/0/1/30) sigtype 128 TE4XXP: Configured channel 31 (TE4/0/1/31) sigtype 128 dahdi: Registered tone zone 0 (United States / North America) About to enter startup! TE4XXP: Span 1 configured for CCS/HDB3/CRC4 wct4xxp 0000:05:00.0: timing source auto wct4xxp 0000:05:00.0: Evaluating spans for timing source wct4xxp 0000:05:00.0: span 1 is green : syncpos 1 *wct4xxp 0000:05:00.0: RCLK source set to span 1 wct4xxp 0000:05:00.0: Recovered timing mode, RCLK set to span 1 wct4xxp: LOF/LFA detected on span 1 but debouncing for 2500 ms wct4xxp: LOS detected on span 1 but debouncing for 2500 ms* SPAN 1: Primary Sync Source VPM400: Not Present OCT Result: 0000/000a VPM450: Not Present Completed startup! Detected loss of E1 alignment on span 0! 5) cat /proc/interrupts cat /proc/interrupts 1 CPU0 CPU1 0: 598466 686790 IO-APIC-edge timer 1: 4 4 IO-APIC-edge i8042 8: 0 0 IO-APIC-edge rtc0 9: 0 0 IO-APIC-fasteoi acpi 16: 0 0 IO-APIC-fasteoi pata_jmicron 19: 488966 400468 IO-APIC-fasteoi ata_piix, ata_piix 20: 20 8 IO-APIC-fasteoi wct4xxp 28: 3267 3254 PCI-MSI-edge eth0 NMI: 1285298 1285102 Non-maskable interrupts LOC: 686792 598229 Local timer interrupts SPU: 0 0 Spurious interrupts PMI: 0 0 Performance monitoring interrupts PND: 0 0 Performance pending work RES: 535 493 Rescheduling interrupts CAL: 25 36 Function call interrupts TLB: 136 124 TLB shootdowns TRM: 0 0 Thermal event interrupts THR: 0 0 Threshold APIC interrupts MCE: 0 0 Machine check exceptions MCP: 5 5 Machine check polls ERR: 1 MIS: 0 best regards, Marcio Gomes -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120207/feeb0eea/attachment.htm>
Shaun Ruffell
2012-Feb-07 15:30 UTC
[asterisk-users] TE410P (1st) without cables always green
On Tue, Feb 07, 2012 at 08:23:53AM -0200, Marcio Gomes wrote:> > - After upgrade to slackware 13.37 + dahdi ( 2.3.X to SVN ) + > asterisk , before asterisk is loaded and PRI/E1 Cables ( Span 1/2 ) > + T1 ( Span 3/4 for Addtran channels banks ) , > all Spans are in OK ( Green ) mode. > > - I go to another developer box, and the same problems cames up, is > very dificult for me work in the productions box ( only 02:00 am to > 04:00 am ). > > - Follwing my developer box setup :<snip>> 5) cat /proc/interrupts > > cat /proc/interrupts 1 > CPU0 CPU1 > 0: 598466 686790 IO-APIC-edge timer > 1: 4 4 IO-APIC-edge i8042 > 8: 0 0 IO-APIC-edge rtc0 > 9: 0 0 IO-APIC-fasteoi acpi > 16: 0 0 IO-APIC-fasteoi pata_jmicron > 19: 488966 400468 IO-APIC-fasteoi ata_piix, ata_piix > 20: 20 8 IO-APIC-fasteoi wct4xxp > 28: 3267 3254 PCI-MSI-edge eth0 > NMI: 1285298 1285102 Non-maskable interrupts > LOC: 686792 598229 Local timer interrupts > SPU: 0 0 Spurious interrupts > PMI: 0 0 Performance monitoring interrupts > PND: 0 0 Performance pending work > RES: 535 493 Rescheduling interrupts > CAL: 25 36 Function call interrupts > TLB: 136 124 TLB shootdowns > TRM: 0 0 Thermal event interrupts > THR: 0 0 Threshold APIC interrupts > MCE: 0 0 Machine check exceptions > MCP: 5 5 Machine check polls > ERR: 1 > MIS: 0It looks like your development box is having problems with interrupts from the card. Once you run dahdi_cfg for the span you should be getting 10000 interrupts/sec and above I can see you only got 28. I've seen this recently with some risers which was the reason for commit 10380 "wct4xxp: Fail startup if not generating interrupts." [1] [1] http://svnview.digium.com/svn/dahdi?view=revision&revision=10380 Do your development boxes work with an older version of DAHDI? Just not 2.3.0.1? Also, why not upgrade to 2.5.0.2 or the trunk of the 2.6 branch? Cheers, Shaun -- Shaun Ruffell Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org