PRI Got Event HDLC Abort

Home » Asterisk Users » PRI Got Event HDLC Abort
Asterisk Users 7 Comments

hi folks.

recently some of our customers complained about bad voice quality on the phone system. i looked at the logs and found a lot of these:

[2012-11-03 08:26:38] NOTICE[11305] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 1
[2012-11-03 08:26:45] NOTICE[11305] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 1
[2012-11-03 08:26:54] NOTICE[11305] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 1

i upgraded Asterisk/dahdi/libpri. tried turn on/off echo canceller etc. nothing seems to help. call the phone company to check out the line
(which they said it’s working fine)

any idea? do i have a hardware issue here? i’ve check syslog there was no dahdi errors.

here’s my system.conf:
span=1,1,0,esf,b8zs bchan=1-23
dchan$
span=2,0,0,esf,b8zs bchan%-47
dchanH
span=3,0,0,esf,b8zs bchanI-71
dchanr span=4,0,0,esf,b8zs bchans-95
dchan

7 thoughts on - PRI Got Event HDLC Abort

  • is there static on the line??
    is there timing slips and crc4 errors?
    are they increasing throughout the day?
    are you getting timing slips during the day when users are using the phones and not off-peak hours?
    are you getting hdlc abort erros when you hear a static noises??

    is the card sharing irq?
    is your system plugged directly into an outlet without ups?

  • I experienced this exact message this week. I’m sure it has to do with the interface card sharing IRQs. You will see timing slips increment from “cat
    /proc/dahdi/1”. Change PCI slot or re-assign an IRQ and this should be fixed.

  • no. there were customer complains about sound cutting in and out. however i wasn’t noticing and bad sound quality when i was testing it.

    no. the only messages i have are the HDLC abort warning.

    they happen randomly, and quite frequently.

    no timing slips related messages in either Asterisk’s logs or syslog.

    that i don’t know. however there was once it happened while i was in the middle of a call but i couldn’t hear any sound drop off or any static.

    no. this the only card that uses IRQ 30
    1b:00.0 Network controller: Digium, Inc. Device 1420 (rev 14)
    Subsystem: Device 0005:0000
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+
    Stepping- SERR+ FastB2B- DisINTx-
    Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- SERR- good question. i don’t know.

  • You’re HDLC error is evident of timing slips.

    Use “cat /proc/dahdi/1” or 2 or 3
    Also “cat /proc /interrupts”

  • aha.. it does have timing slips…

    Span 1: TE4/0/1 “T4XXP (PCI) Card 0 Span 1” (MASTER) B8ZS/ESF ClockSource CRC4 error count: 6864
    E-bit error count: 27603
    IRQ misses: 1
    Timing slips: 1459

    1 TE4/0/1/1 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    2 TE4/0/1/2 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    3 TE4/0/1/3 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    4 TE4/0/1/4 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    5 TE4/0/1/5 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    6 TE4/0/1/6 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    7 TE4/0/1/7 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    8 TE4/0/1/8 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    9 TE4/0/1/9 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    10 TE4/0/1/10 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    11 TE4/0/1/11 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    12 TE4/0/1/12 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    13 TE4/0/1/13 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    14 TE4/0/1/14 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    15 TE4/0/1/15 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    16 TE4/0/1/16 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    17 TE4/0/1/17 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    18 TE4/0/1/18 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    19 TE4/0/1/19 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    20 TE4/0/1/20 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    21 TE4/0/1/21 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    22 TE4/0/1/22 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    23 TE4/0/1/23 Clear (In use) (EC: VPMOCT128 – INACTIVE)
    24 TE4/0/1/24 HDLCFCS (In use) (EC: VPMOCT128 – INACTIVE)

    however i don’t see any interrupt conflicts.. maybe i should try manually assign CPU affinity on that IRQ?

    CPU0 CPU1 CPU2 CPU3
    0: 2108 0 0 0 IO-APIC-edge timer
    1: 0 0 0 0 IO-APIC-edge i8042
    8: 1 0 0 0 IO-APIC-edge rtc0
    9: 0 0 0 0 IO-APIC-fasteoi acpi
    14: 89 0 0 0 IO-APIC-edge ata_piix
    15: 0 0 0 0 IO-APIC-edge ata_piix
    16: 608555 0 0 0 IO-APIC-fasteoi megasas
    17: 51 0 0 0 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb5
    18: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb4, uhci_hcd:usb6
    19: 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb7
    21: 0 0 0 0 IO-APIC-fasteoi ata_piix
    30: 604673256 0 0 0 IO-APIC-fasteoi wct4xxp
    54: 3 0 0 0 PCI-MSI-edge ioat-msix
    55: 3 0 0 0 PCI-MSI-edge ioat-msix
    56: 3 0 0 0 PCI-MSI-edge ioat-msix
    57: 3 0 0 0 PCI-MSI-edge ioat-msix
    58: 3 0 0 0 PCI-MSI-edge ioat-msix
    59: 3 0 0 0 PCI-MSI-edge ioat-msix
    60: 3 0 0 0 PCI-MSI-edge ioat-msix
    61: 3 0 0 0 PCI-MSI-edge ioat-msix
    62: 772684 0 0 0 PCI-MSI-edge eth0-0
    63: 368866 0 0 0 PCI-MSI-edge eth0-1
    64: 105367 0 0 0 PCI-MSI-edge eth0-2
    65: 0 0 0 0 PCI-MSI-edge eth0-3
    66: 0 0 0 0 PCI-MSI-edge eth0-4
    71: 22558707 0 0 0 PCI-MSI-edge eth1-0
    72: 15994275 0 0 0 PCI-MSI-edge eth1-1
    73: 24318397 0 0 0 PCI-MSI-edge eth1-2
    74: 12812423 0 0 0 PCI-MSI-edge eth1-3
    75: 11109627 0 0 0 PCI-MSI-edge eth1-4
    NMI: 0 0 0 0 Non-maskable interrupts
    LOC: 50455701 61286848 31629357 13702410 Local timer interrupts
    SPU: 0 0 0 0 Spurious interrupts
    PMI: 0 0 0 0 Performance monitoring interrupts
    PND: 0 0 0 0 Performance pending work
    RES: 7017 18000 5306 1944 Rescheduling interrupts
    CAL: 315 499 683 708 Function call interrupts
    TLB: 26154 53799 41831 28303 TLB shootdowns
    TRM: 0 0 0 0 Thermal event interrupts
    THR: 0 0 0 0 Threshold APIC interrupts
    MCE: 0 0 0 0 Machine check exceptions
    MCP: 2068 2068 2068 2068 Machine check polls
    ERR: 0
    MIS: 0