PTMP BRI Unable to receive TEI from network in state 2(Assign awaiting TEI) – Asterisk 1.6.2, Latest DAHDI, LibPRI

Home » Asterisk Users » PTMP BRI Unable to receive TEI from network in state 2(Assign awaiting TEI) – Asterisk 1.6.2, Latest DAHDI, LibPRI
Asterisk Users No Comments

Hi all,

(Sorry if this is the second email – didn’t see the first)

Last night I went to replace an Asterisk 1.4 + mISDN + b410p box with
Asterisk 1.6.2 and DAHDI BRI – to no avail.

I had two servers so copied network setting etc from the working one,
moved the card across, ran dahdi_genconf etc and it didn’t work.

Here’s the console output with notices disabled:

lucas*CLI> pri intense debug span 1
Enabled debugging on span 1
[Dec 16 18:59:46] ERROR[12785]: chan_dahdi.c:12630 dahdi_pri_error:
Unable to receive TEI from network in state 2(Assign awaiting TEI)!
Changing from state 2(Assign awaiting TEI) to 1(TEI unassigned)
[Dec 16 18:59:46] ERROR[12787]: chan_dahdi.c:12630 dahdi_pri_error:
Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Dec 16 18:59:46] ERROR[12788]: chan_dahdi.c:12630 dahdi_pri_error:
Unable to receive TEI from network in state 2(Assign awaiting TEI)!
[Dec 16 18:59:46] ERROR[12786]: chan_dahdi.c:12630 dahdi_pri_error:
Unable to receive TEI from network in state 2(Assign awaiting TEI)!

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 04 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 4(TEI Identity Check Request)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 06 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 6(TEI Identity Remove)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 06 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 6(TEI Identity Remove)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 04 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 4(TEI Identity Check Request)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 06 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 6(TEI Identity Remove)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 06 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 6(TEI Identity Remove)
< Ri: 0
< Ai: 127 E:1
Received MDL message

< TEI: 0 State 1(TEI unassigned)
< V(A)=0, V(S)=0, V(R)=0
< K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
< T200_id=0, N200=3, T203_id=0
< [ fe ff 03 0f 00 00 04 ff ]
< Unnumbered frame:
< SAPI: 63 C/R: 1 EA: 0
< TEI: 127 EA: 1
< M3: 0 P/F: 0 M2: 0 11: 3 [ UI (unnumbered information) ]
< 5 bytes of data
< MDL Message: 4(TEI Identity Check Request)
< Ri: 0
< Ai: 127 E:1
Received MDL message

=====================================================================

Here’s the console output with notices enabled:

[Dec 16 19:02:34] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:34] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:34] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:34] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:34] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:34] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:34] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:35] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:35] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2
[Dec 16 19:02:36] NOTICE[12785]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 1
[Dec 16 19:02:36] NOTICE[12786]: chan_dahdi.c:12931 pri_dchannel: PRI
got event: HDLC Abort (6) on Primary D-channel of span 2

======================================================================

Here’s dmesg:

[ 2254.282352] dahdi: Version: 2.3.0.1
[ 2254.285768] wcb4xxp 0000:01:06.0: probe called for b4xx…
[ 2254.285768] ACPI: PCI Interrupt 0000:01:06.0[A] -> Link [LNKA] -> GSI
18 (level, low) -> IRQ 18
[ 2254.285768] wcb4xxp 0000:01:06.0: Identified Wildcard B410P
(controller rev 1) at 000000000001ec00, IRQ 18
[ 2254.285768] wcb4xxp 0000:01:06.0: VPM 0/1 init: chip ver 33
[ 2254.297992] wcb4xxp 0000:01:06.0: VPM 1/1 init: chip ver 33
[ 2254.310052] wcb4xxp 0000:01:06.0: Hardware echo cancellation enabled.
[ 2254.310273] wcb4xxp 0000:01:06.0: Port 1: NT mode
[ 2254.310387] wcb4xxp 0000:01:06.0: Port 2: NT mode
[ 2254.310501] wcb4xxp 0000:01:06.0: Port 3: NT mode
[ 2254.310615] wcb4xxp 0000:01:06.0: Port 4: NT mode
[ 2254.310817] wcb4xxp 0000:01:06.0: Did not do the highestorder stuff
[ 2254.375447] dahdi_echocan_mg2: Registered echo canceler ‘MG2’
[ 2254.379448] dahdi: Registered tone zone 10 (New Zealand)
[ 2254.417648] wcb4xxp 0000:01:06.0: new card sync source: port 1

======================================================================

Here’s the dahdi/system.conf:

# Autogenerated by /usr/sbin/dahdi_genconf on Thu Dec 16 18:33:59 2010
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: B4/0/1 “B4XXP (PCI) Card 0 Span 1” (MASTER) AMI/ccs
span=1,1,0,ccs,ami
# termtype: te
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Span 2: B4/0/2 “B4XXP (PCI) Card 0 Span 2” AMI/ccs
span=2,2,0,ccs,ami
# termtype: te
bchan=4-5
hardhdlc=6
echocanceller=mg2,4-5

# Span 3: B4/0/3 “B4XXP (PCI) Card 0 Span 3” AMI/ccs RED
span=3,3,0,ccs,ami
# termtype: te
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8

# Span 4: B4/0/4 “B4XXP (PCI) Card 0 Span 4” AMI/ccs RED
span=4,4,0,ccs,ami
# termtype: te
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11

# Global data

loadzone = nz
defaultzone = nz

======================================================================

Here’s the dahdi-channels.conf:

; Autogenerated by /usr/sbin/dahdi_genconf on Thu Dec 16 18:33:59 2010
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is
intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global
settings
;

; Span 1: B4/0/1 “B4XXP (PCI) Card 0 Span 1” (MASTER) AMI/CCS
group=2,11
context=external
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 1-2
context = default
group = 63

; Span 2: B4/0/2 “B4XXP (PCI) Card 0 Span 2” AMI/CCS
group=2,12
context=external
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 4-5
context = default
group = 63

; Span 3: B4/0/3 “B4XXP (PCI) Card 0 Span 3” AMI/CCS RED
group=2,13
context=external
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 7-8
context = default
group = 63

; Span 4: B4/0/4 “B4XXP (PCI) Card 0 Span 4” AMI/CCS RED
group=2,14
context=external
switchtype = euroisdn
signalling = bri_cpe_ptmp
channel => 10-11
context = default
group = 63

======================================================================

Anyone have any ideas? Obviously it doesn’t receive or make any calls –
pri is in provisioned, down, active.

I had to reinstall the old box (mISDN etc) temporarily until we can get
this sorted.