Zap channels 5-8 not working

I have two zap trunk cards in my pbx and channels 1-4 are working fine (the first card), channels 5-8 just make a sound like a dirty line when I route to them and it won’t make or receive calls. Here is the result of zap show channel 1…8, at the time, channel 1 was in use, channels 2-5 had active lines (with dial tones, tested) plugged in, as you can see, the output on zap show channel 5 displays “onhook” which is the same as what it displays when no line is plugged in, even though there is one.

Click
vvvvv
http://leechristie.com/hotlinks/zap-show-channel.txt
^^^^^

Here is zap show channels:

Chan Extension Context Language MOH Interpret
pseudo from-zaptel uk default
1 from-zaptel uk default
2 from-zaptel uk default
3 from-zaptel uk default
4 from-zaptel uk default
5 from-zaptel uk default
6 from-zaptel uk default
7 from-zaptel uk default
8 from-zaptel uk default

And zap show status:

Description Alarms IRQ bpviol CRC4
Wildcard TDM400P REV I Board 1 OK 0 0 0
Wildcard TDM400P REV I Board 2 OK 0 0 0

And zap show cadences (although I don’t know what that means):

r1: 125,125,2000,4000
r2: 250,250,500,1000,250,250,500,4000
r3: 125,125,125,125,125,4000
r4: 1000,500,2500,5000

Please let me know if there are any other command outputs, or logs or anything that would be useful in disgnosing the problem.

Right now although I have a line connected to 5, there are no lines connected to 6, 7, and 8 but I’ve tried those and I’ve tried putting a known-working line (one of the ones from 1-4) into 5-8 and it doens’t work.

Thankyou.

Try swapping their positions on the motherboard and see if the problem follows the card.

Also do cat /proc/interrupts and paste the results.

I really need to learn Lunix some time because I have no idea what this means, but here you go:

CPU0 CPU1 0: 200329637 0 IO-APIC-edge timer 1: 2 0 IO-APIC-edge i8042 6: 3 0 IO-APIC-edge floppy 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc 9: 1 0 IO-APIC-level acpi 12: 5 0 IO-APIC-edge i8042 14: 166 1798577 IO-APIC-edge ide0 50: 200282231 0 IO-APIC-level wctdm 169: 41 13317732 IO-APIC-level eth0 201: 0 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2 209: 26579 200257869 IO-APIC-level uhci_hcd:usb3, wctdm 217: 0 0 IO-APIC-level uhci_hcd:usb4, Intel ICH6 225: 0 0 IO-APIC-level uhci_hcd:usb5 233: 6829 251012 IO-APIC-level libata NMI: 0 0 LOC: 200247510 200247500 ERR: 0 MIS: 0

(EDITED FOR CODE FORMATTING)

Those are the IRQs your hardware devices are using.

Real live IRQs on Intel hardware are 0 through 15 (and IRQ 2 is cascaded.) Telephony hardware can be problematic on shared or “virtual” IRQs. Your cards are on IRQs 50 and 209, where both are virtual and the second is both virtual and shared. Your symptoms sound like the result of an IRQ problem.

(For more information on IRQs read this, especially on the x86 section: http://en.wikipedia.org/wiki/Interrupt_request )

Anyway, what you’ll want to do is twofold. First, turn off everything you don’t need in the system bios. Not using the built in sound? Turn it off. Not using the USB ports? Turn them off. You’re probably not using the floppy or parallel port, and probably not using any of the serial ports. You get the idea.

Now, you also probably want to get rid of the virtual IRQs. However, I don’t know what base distro you’re using, so it’s hard for me to say exactly what you need to do. If it’s centos you need to edit grub.conf (located in /boot/grub) and edit the kernel line and append “noapic” and “acpi=off” (without quotes.)

Also, for future reference: when posting output from a system it makes it much easier to read if you use the code tags. For example, by enclosing your block of text above with [ code ] and [ /code ] (without the spaces) it looks like this:

           CPU0
  0: 1005486073          XT-PIC  timer
  1:      36657          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  5:         72          XT-PIC  ohci_hcd:usb3, CMI8738-MC6
  6:   27185387          XT-PIC  ohci_hcd:usb4, eth0
  8:          1          XT-PIC  rtc
  9:          6          XT-PIC  uhci_hcd:usb2, ehci_hcd:usb5
 10:          0          XT-PIC  uhci_hcd:usb1
 12: 1005339065          XT-PIC  wcfxo
 14:    4906400          XT-PIC  ide0
 15:    9432034          XT-PIC  ide1
NMI:          0
LOC: 1005516509
ERR:          0
MIS:          0

(From my system, of course)

See how much easier that is to read?

Yes it’s CentOS, I actually installed from PBX in a Flash, I should have mentioned that. If I disable these unused ports and stuff in the BIOS will the zap card then use the real IRQs or will they stick to their existing IRQs and I’ll have t move them somehow after disabling virtual IRQs? Is there anything else I’ll need to do after appending “noapic” and “acpi=off” to /boot/grub? I’m asking before I try it because the system is currently in use and I wouldn’t want to break it until I know somewhat what I’m doing, anyway I’ll go read that wiki link you suggested and maybe try disabling unused devices but leave virtual IRQs enabled for the moment until I’m sure I won’t break it by disabling them.

Also, how is my FIRST card working fine if it is also on a virtual IRQ?

Thanks.

Edit: Regarding why the first card is working even though it’s on a virtual IRQ, maybe because it’s not sharing an IRQ with a usb? Just figured that one out. I’ll remember to disable those.

from your list one card is sharing and the other is not (see the wctdm that is all by it’s self in the last colum, that is the one that it happy).

Okay I’ve gone into the BIOS and disabled anything I dont need, also set Communications controller (there were two of them, and i’m not sure but i assume they’re the zap cards) to IRQs 5 and 10 and didn’t set anything else on those IRQs, te result of cat /proc/interrupts is STILL:

CPU0 CPU1 0: 240141 0 IO-APIC-edge timer 1: 20 0 IO-APIC-edge i8042 6: 3 0 IO-APIC-edge floppy 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc 9: 1 0 IO-APIC-level acpi 12: 5 0 IO-APIC-edge i8042 14: 166 1763 IO-APIC-edge ide0 50: 223508 0 IO-APIC-level wctdm 169: 41 6021 IO-APIC-level eth0 201: 0 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2 209: 25611 196599 IO-APIC-level uhci_hcd:usb3, wctdm 217: 0 0 IO-APIC-level uhci_hcd:usb4, Intel ICH6 225: 0 0 IO-APIC-level uhci_hcd:usb5 233: 7448 2231 IO-APIC-level libata NMI: 0 0 LOC: 239860 239850 ERR: 0 MIS: 0

It doesn’t seem to have changed and I KNOW I disabled all the USBs at least, but it’s still sharing with USB3 and there’s nothing listed on 5 and 10, what do I do?

EDIT: BTW i haven’t done anything in centOS to update it because I don’t know how. So far I’ve just shutdown, disabled stuff in the BIOS and restarted

EDIT 2: Also, I’m not sure if I should risk trying to disable virtual IRQs yet in case it breaks the working card since it seems as if the problem is the fact the 2nd card is on a shared IRQ, so if I can just get the to stop sharing with things maybe it’ll work, and if it doesn’t then I can try disabling the virtual IRQs

you might have disabled some USB options in the bios but not all of them it seems. uhci_hcd:usb? us a USB device and it’s taking the interrupt and sharing it, which can cause all kinds of problems.

It might be that you’ll need to move a jumper on the MB to truely disable them. Check the MB manual.