keywords: ip pbx voip gateway gsm gateway

× Questions about D110/210/410 T1/E1/J1 PRI Cards

PRI got event: HDLC Abort (6) on D-channel

7 years 10 months ago #9238 by markgo
hi:
我有兩台機器,
其中一台(B)通過源碼安裝Asterisk 11.5.0 && dahdi 2.6.1
另外一台(A)安裝ELASTIX 2.2 / ASTERISK 1.4.36 && dahdi 2.3.01

現在B的span1 通過PRI 連接A的span1
所有配置都配置好,剛開始1-2天沒什麼問題,
但是後來查看日誌發現一直提示
chan_dahdi.c:10317 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1

兩台機器都有這個提示,但是依然能進行通話。

其中B機 lspci -vvvv:
06:00.0 Network controller: Digium, Inc. Wildcard TE420 quad-span T1/E1/J1 card 3.3V (PCI-Express) (5th gen) (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- <TAbort- <MAbort- >SERR- <;PERR- INTx-
Latency: 32 (8000ns min, 32000ns max), Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 18
Region 0: Memory at f0400000 (32-bit, non-prefetchable) [size=32K]
Kernel driver in use: wct4xxp
Kernel modules: wct4xxp

A機:
03:00.0 Communication controller: Digium, Inc. Wildcard TE410P/TE412P quad-span T1/E1/J1 card 3.3V (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <;PERR-
Latency: 32
Interrupt: pin A routed to IRQ 169
Region 0: Memory at febffc00 (32-bit, non-prefetchable)



請問為什麼會出現這個問題呢?
還有想問問lspcie -vvv 出來的結果我發現其中Latency都不一樣,(就算是相同的板卡),請問這個數值代表什麼,有什麼作用呢?
另外我試過兩台Elastix 和使用相同的板卡(D420 quad-span)測試,結果依然如此。
望解答

謝謝。
7 years 10 months ago #9239 by markgo
補充下:
tail -f /var/log/asterisk/message
[Nov 24 13:38:11] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:13] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:13] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:13] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:13] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:14] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:15] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:15] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:16] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
[Nov 24 13:38:17] NOTICE[25605] chan_dahdi.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 1
我發現這個錯誤出現的越來越頻繁
7 years 10 months ago #9240 by markgo
我在B機器修改了配置
/etc/dahdi/system.conf
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16

span=2,2,0,ccs,hdb3
# termtype: te
bchan=32-46,48-62
dchan=47

loadzone = cn
defaultzone = cn


/etc/asterisk/chan_dahdi.conf
[trunkgroups]

[channels]
context=from-pstn
pridialplan=national
signalling=pri_cpe
switchtype=national
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
callgroup=1
pickupgroup=1
echocancel=yes
echocancelwhenbridged=yes
echotraining=800 ;modify on 23/11 13:20
rxgain=2.0
txgain=2.0
immediate=no
resetinterval=never

; Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1" (MASTER)
group=1
switchtype=national
signalling=pri_net
resetinterval=never
context=in-hotline
channel => 1-15,17-31

group=2
switchtype=national
signalling=pri_cpe
resetinterval=never
context=in-hotline
channel => 32-46,48-62


可是日誌依然有該錯誤:
[Nov 24 15:22:43] NOTICE[2370] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 2
[Nov 24 15:22:44] NOTICE[2369] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 1
[Nov 24 15:22:44] NOTICE[2370] chan_dahdi.c: PRI got event: HDLC Abort (6) on D-channel of span 2
[Nov 24 15:22:46] NOTICE[2369] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 1
[Nov 24 15:22:58] NOTICE[2369] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 1
[Nov 24 15:23:00] NOTICE[2370] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 2
[Nov 24 15:23:00] NOTICE[2369] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 1
[Nov 24 15:23:02] NOTICE[2370] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 2
[Nov 24 15:23:02] NOTICE[2369] chan_dahdi.c: PRI got event: HDLC Bad FCS (8) on D-channel of span 1
7 years 10 months ago #9241 by chunlei.yi
hi,

你好,Latency是设备占用pci总线的时长,初始值是由系统bios来设定的,可以更改。
你这个问题是丢包导致的,运行 cat /proc/interrupts 看下板卡是否有中断共享。可以qq联系我,我帮你远程看下 qq:376868580
7 years 10 months ago #9243 by markgo
謝謝解答。
cat /proc/interrupts
CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7
  0:        120          0          0          0          0          0          0          0   IO-APIC-edge      timer
  1:          2          0          0          0          0          0          0          0   IO-APIC-edge      i8042
  4:          2          0          0          0          0          0          0          0   IO-APIC-edge
  8:          1          0          0          0          0          0          0          0   IO-APIC-edge      rtc0
  9:          0          0          0          0          0          0          0          0   IO-APIC-fasteoi   acpi
 12:          4          0          0          0          0          0          0          0   IO-APIC-edge      i8042
 18:       8953       7196          0          0          0    3255689          0          0   IO-APIC-fasteoi   wct4xxp
 24:         15          0          0          0          0          0          0          0  HPET_MSI-edge      hpet2
 25:          0          0          0          0          0          0          0          0  HPET_MSI-edge      hpet3
 26:          0          0          0          0          0          0          0          0  HPET_MSI-edge      hpet4
 27:          0          0          0          0          0          0          0          0  HPET_MSI-edge      hpet5
 28:          0          0          0          0          0          0          0          0  HPET_MSI-edge      hpet6
 29:       4585          0          0       1830          0          0          0      19698   PCI-MSI-edge      ahci
 30:          0          0          0          0          0          0          0          0   PCI-MSI-edge      ahci
 31:        280          0          0          0          0          0          0          0   PCI-MSI-edge      snd_hda_intel
 32:     105184          0          0          0          0          0          0          0   PCI-MSI-edge      snd_hda_intel
 33:         43          0          0      24167          0          0          0          0   PCI-MSI-edge      eth0
NMI:          0          0          0          0          0          0          0          0   Non-maskable interrupts
LOC:     118244      77362     241734     137735     139913      89046     292546      99661   Local timer interrupts
SPU:          0          0          0          0          0          0          0          0   Spurious interrupts
PMI:          0          0          0          0          0          0          0          0   Performance monitoring interrupts
IWI:          0          0          0          0          0          0          0          0   IRQ work interrupts
RES:        326        127      11670       3112       3208        362        104         88   Rescheduling interrupts
CAL:         50        197        199        197        184        200        188        192   Function call interrupts
TLB:        811        479        111        106        816       1316        882        657   TLB shootdowns
TRM:          0          0          0          0          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0          0          0          0          0   Threshold APIC interrupts
MCE:          0          0          0          0          0          0          0          0   Machine check exceptions
MCP:         17         17         17         17         17         17         17         17   Machine check polls
ERR:          0
MIS:          0


其中IRQ 18為wct4XXP,而且grub裏都添加了nousb選項啟動。所以中斷沒共享。
7 years 10 months ago #9245 by markgo
你好,請問我能有什麼辦法測試下是卡的問題還是系統的問題嗎?
Time to create page: 0.045 seconds
Powered by Kunena Forum