별표: pri 대 pri 연결. 녹색 표시등이 켜져 있지만 HDLC 오류가 많습니다.

별표: pri 대 pri 연결. 녹색 표시등이 켜져 있지만 HDLC 오류가 많습니다.

ISDN PRI를 통해 두 개의 별표 서버를 연결하고 싶습니다(학습용, 심각한 것은 아닙니다). 첫 번째 서버는 "telco" 역할을 하므로 pri_net이고 두 번째 서버는 cpe이므로 pri_cpe를 사용하겠습니다.

카드는

pbx1-net: Digium TE205P pbx2-cpe: Openvox D210P

두 서버/pbx 모두 Debian 11 및 dahdi 2.11 드라이버를 사용합니다.

pbx-net에서는 dahdi/system.conf입니다.

    # Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) 
    fxoks=1
    echocanceller=mg2,1
    fxoks=2
    echocanceller=mg2,2
    # channel 3, WCTDM/4/2, no module.
    fxsks=4
    echocanceller=mg2,4
    
    # Span 2: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" 
    span=2,0,0,ccs,hdb3,crc4
    # termtype: te
    bchan=5-19,21-35
    dchan=20
    echocanceller=mg2,5-19,21-35
    
    # Span 3: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" 
    span=3,0,0,ccs,hdb3,crc4
    # termtype: te
    bchan=36-50,52-66
    dchan=51
    echocanceller=mg2,36-50,52-66
    
    # Global data
    
    loadzone    = it
    defaultzone = it

이것은 pbx-net의 /etc/asterisk/chan_dahdi.conf입니다.

    [trunkgroups]
    [channels]
    language=it
    context=local
    switchtype=euroisdn
    signalling=pri_net
    usecallerid=yes
    hidecallerid=no
    callwaiting=yes
    usecallingpres=yes
    callwaitingcallerid=yes
    threewaycalling=yes
    transfer=yes    ;se usi nt ptmp metti no
    canpark=yes
    cancallforward=yes
    callreturn=yes
    context=local
    echocancel=yes
    channel => 1-15,17-31
    echocancelwhenbridged=yes
    group=1
    callgroup=1
    pickupgroup=1
    immediate=no
    #include /etc/asterisk/dahdi-channels.conf

이것은 pbx-net의 /etc/asterisk/dahdi-channels.conf입니다.

; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) 
;;; line="1 WCTDM/4/0"
signalling=fxo_ks
callerid="Channel 1" <4001>
mailbox=4001
group=5
context=from-dahdi
channel => 1

;;; line="2 WCTDM/4/1"
signalling=fxo_ks
callerid="Channel 2" <4002>
mailbox=4002
group=5
context=from-dahdi
channel => 2

;;; line="4 WCTDM/4/3"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-dahdi
channel => 4

; Span 2: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" 
group=0,12
context=from-dahdi
switchtype = euroisdn
signalling = pri_net
channel => 5-19,21-35

; Span 3: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" 
group=0,13
context=from-dahdi
switchtype = euroisdn
signalling = pri_net
channel => 36-50,52-66

pbx-cpe 측에서 파일은 /etc/dahdi/system.conf를 제외하고 동일합니다(1,1,0은 1: 범위 1: pri_net 측에서 타이밍 소싱, 0: 케이블은 0-133피트)

# Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) 
span=1,1,0,ccs,hdb3
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31

# Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" 
span=2,2,0,ccs,hdb3
# termtype: te
bchan=32-46,48-62
dchan=47
echocanceller=mg2,32-46,48-62

# Global data

loadzone        = it
defaultzone     = it

pri_cpe가 된 pri_net을 제외하고 다른 두 파일은 동일합니다.

이제 문제는:

pri_cpe bpx에서 cli 보고서는 정상입니다.

dahdi show status
    Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
    T2XXP (PCI) Card 0 Span 1                OK      0      0      0      CCS HDB3          0 db (CSU)/0-133 feet (DSX-1)

pri_net bpx에서 cli 보고서는 정상입니다.

dahdi show status
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
Wildcard TDM400P REV E/F Board 5         OK      0      0      0      CAS Unk           0 db (CSU)/0-133 feet (DSX-1)
T2XXP (PCI) Card 0 Span 1                OK      0      0      0      CCS HDB3 CRC4     0 db (CSU)/0-133 feet (DSX-1)
T2XXP (PCI) Card 0 Span 2                OK      0      0      0      CCS HDB3 CRC4     0 db (CSU)/0-133 feet (DSX-1)

또한 양쪽 모두에서 pri 스팬 보고서가 확인됩니다.

net_side

pri show spans
PRI span 2/0: Up, Active

cpe_side

pri show spans
PRI span 1/0: Up, Active

양쪽에서 pri를 통해 호출하도록 Extensions.conf를 구성했습니다.

[uscita]
exten => _X.,1,Dial(dahdi/g12/${EXTEN})
exten => _X.,n,Hangup

두 콘솔 모두에서 전화를 걸려고 하면 해당 오류 메시지가 나타납니다.

pri_net 측 [5월 1일 18:57:50] 공지[2541]: chan_dahdi.c:2780 my_handle_dchan_Exception: Got DAHDI 이벤트: 스팬 2의 D 채널에서 HDLC 불량 FCS(8)

pri_cpe 측

[May  1 18:58:07] NOTICE[1489]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 1
[May  1 18:58:07] NOTICE[1489]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 1
[May  1 18:58:07] NOTICE[1489]: chan_dahdi.c:2777 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 1

다시 pri_net 측에서

== Primary D-Channel on span 2 down
[May  1 18:59:32] WARNING[2541]: sig_pri.c:1212 pri_find_dchan: Span 2: D-channel is down!
[May  1 18:59:33] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2
[May  1 18:59:40] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
[May  1 18:59:42] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
[May  1 18:59:43] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2
[May  1 18:59:43] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
[May  1 18:59:45] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
  == Primary D-Channel on span 2 up
[May  1 18:59:58] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
[May  1 18:59:58] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2
[May  1 18:59:59] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
    -- Registered SIP 'telefono3' at 192.168.0.2:59897
  == Using SIP RTP CoS mark 5
    -- Executing [511@local:1] Dial("SIP/telefono3-00000000", "dahdi/g12/511") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called dahdi/g12/511
[May  1 19:00:09] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2
  == Primary D-Channel on span 2 down
[May  1 19:00:10] WARNING[2541]: sig_pri.c:1212 pri_find_dchan: Span 2: D-channel is down!
[May  1 19:00:11] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2
  == Primary D-Channel on span 2 up
    -- Span 2: Channel 0/1 got hangup, cause 18
    -- Hungup 'DAHDI/i2/511-1'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [511@local:2] Hangup("SIP/telefono3-00000000", "") in new stack
  == Spawn extension (local, 511, 2) exited non-zero on 'SIP/telefono3-00000000'
[May  1 19:00:18] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Bad FCS (8) on D-channel of span 2
[May  1 19:00:21] NOTICE[2541]: chan_dahdi.c:2780 my_handle_dchan_exception: Got DAHDI event: HDLC Abort (6) on D-channel of span 2

나는 그 해결책을 시도한다

Solution number 1: the card is broken, I bought another PRI card = FAIL
Solution number 2: change the pci slot of card pri_net side, and / or pri_cpe side = FAIL
Solution number 3: use a different dahdi version = FAIL
Solution number 4: use pridiallocalplan=unknown and pridialplan=unknown = FAIL
Solution number 5: revert pri_net pri_cpe roles = FAIL
Solution number 6: try another crossover cable = FAIL(I try 3 cables, two bought, one made by me, and all tested with network tester)
Solution number 7: reboot = FAIL
Solution number 8: remove the analog card from pci_net server = FAIL

누구든지 제안이 있나요? 감사해요

답변1

해결책을 찾았습니다. 케이블이 불량이었나요?이 가이드YouTube에서 pri 케이블을 만들고 완벽하게 작동하려면 pri_net 시스템을 재부팅하기만 하면 되었습니다.

관련 정보