Libpri b410p asterisk 1.8

I have 4 BRI card, port one and two setup as TE mode , port 3 and 4 setup as NT mode.
Configuration that works
libpri 1.4.10.2
dahdi 2.3.0.1
asterisk 1.6.2.6
Problematic onfiguration
asterisk 1.8 any version
lib pri 1.4.11.*
dahdi 2.4*
If i disconect the cable on port one or two the por goes down and up normaly if libpri = 1.4.10.2, if libpri is 1.4.11 the port never comes up
Log of working version
[Jul 25 13:58:09] WARNING[26846] chan_dahdi.c: Detected alarm on channel 11: Yellow Alarm
[Jul 25 13:58:09] NOTICE[26844] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 3
[Jul 25 13:58:09] NOTICE[26845] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 4
[Jul 25 13:58:09] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 7
[Jul 25 13:58:09] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 8
[Jul 25 13:58:09] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 10
[Jul 25 13:58:09] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 11
[Jul 25 13:58:10] VERBOSE[26844] chan_dahdi.c: == Primary D-Channel on span 3 up
[Jul 25 13:58:10] VERBOSE[26845] chan_dahdi.c: == Primary D-Channel on span 4 up
[Jul 25 13:58:18] VERBOSE[26877] asterisk.c: – Remote UNIX connection disconnected
[Jul 25 13:58:35] NOTICE[26843] chan_dahdi.c: PRI got event: Alarm (4) on Primary D-channel of span 2
[Jul 25 13:58:35] WARNING[26843] chan_dahdi.c: No D-channels available! Using Primary channel 6 as D-channel anyway!
[Jul 25 13:58:35] NOTICE[26842] chan_dahdi.c: PRI got event: Alarm (4) on Primary D-channel of span 1
[Jul 25 13:58:35] WARNING[26842] chan_dahdi.c: No D-channels available! Using Primary channel 3 as D-channel anyway!
[Jul 25 13:58:35] WARNING[26846] chan_dahdi.c: Detected alarm on channel 1: Yellow Alarm
[Jul 25 13:58:35] WARNING[26846] chan_dahdi.c: Detected alarm on channel 2: Yellow Alarm
[Jul 25 13:58:35] WARNING[26846] chan_dahdi.c: Detected alarm on channel 4: Red Alarm
[Jul 25 13:58:35] WARNING[26846] chan_dahdi.c: Detected alarm on channel 5: Red Alarm
[Jul 25 13:58:36] NOTICE[26843] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 2
[Jul 25 13:58:36] NOTICE[26842] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 1
[Jul 25 13:58:36] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 1
[Jul 25 13:58:36] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 2
[Jul 25 13:58:36] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 4
[Jul 25 13:58:36] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 5
[Jul 25 13:58:36] VERBOSE[26842] chan_dahdi.c: == Primary D-Channel on span 1 up
[Jul 25 13:58:36] VERBOSE[26843] chan_dahdi.c: == Primary D-Channel on span 2 up
[Jul 25 13:58:39] NOTICE[26844] chan_dahdi.c: PRI got event: Alarm (4) on Primary D-channel of span 3
[Jul 25 13:58:39] WARNING[26844] chan_dahdi.c: No D-channels available! Using Primary channel 9 as D-channel anyway!
[Jul 25 13:58:39] NOTICE[26845] chan_dahdi.c: PRI got event: Alarm (4) on Primary D-channel of span 4
[Jul 25 13:58:39] WARNING[26845] chan_dahdi.c: No D-channels available! Using Primary channel 12 as D-channel anyway!
[Jul 25 13:58:39] WARNING[26846] chan_dahdi.c: Detected alarm on channel 7: Yellow Alarm
[Jul 25 13:58:39] WARNING[26846] chan_dahdi.c: Detected alarm on channel 8: Yellow Alarm
[Jul 25 13:58:39] WARNING[26846] chan_dahdi.c: Detected alarm on channel 10: Yellow Alarm
[Jul 25 13:58:39] WARNING[26846] chan_dahdi.c: Detected alarm on channel 11: Yellow Alarm
[Jul 25 13:58:39] NOTICE[26844] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 3
[Jul 25 13:58:39] NOTICE[26845] chan_dahdi.c: PRI got event: No more alarm (5) on Primary D-channel of span 4
[Jul 25 13:58:39] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 7
[Jul 25 13:58:39] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 8
[Jul 25 13:58:39] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 10
[Jul 25 13:58:39] NOTICE[26846] chan_dahdi.c: Alarm cleared on channel 11
[Jul 25 13:58:40] VERBOSE[26845] chan_dahdi.c: == Primary D-Channel on span 4 up
[Jul 25 13:58:40] VERBOSE[26844] chan_dahdi.c: == Primary D-Channel on span 3 up
if i change to libpri 1.4.11+ or 1.4.12
tdcCLI> pri show spans
PRI span 1/0: Up, Active
PRI span 2/0: Up, Active
PRI span 3/0: Up, Active
PRI span 4/0: Up, Active
Why does it not show provisioned ?
if i disconect the cables and reconect
[Jul 25 14:17:06] NOTICE[28485] chan_dahdi.c: PRI got event: Alarm (4) on D-channel of span 2
[Jul 25 14:17:06] WARNING[28485] sig_pri.c: Span 2: No D-channels available! Using Primary channel as D-channel anyway!
[Jul 25 14:17:06] NOTICE[28484] chan_dahdi.c: PRI got event: Alarm (4) on D-channel of span 1
[Jul 25 14:17:06] WARNING[28484] sig_pri.c: Span 1: No D-channels available! Using Primary channel as D-channel anyway!
[Jul 25 14:17:06] WARNING[28488] chan_dahdi.c: Detected alarm on channel 1: Yellow Alarm
[Jul 25 14:17:06] WARNING[28488] chan_dahdi.c: Detected alarm on channel 2: Yellow Alarm
[Jul 25 14:17:06] WARNING[28488] chan_dahdi.c: Detected alarm on channel 4: Red Alarm
[Jul 25 14:17:06] WARNING[28488] chan_dahdi.c: Detected alarm on channel 5: Red Alarm
[Jul 25 14:17:08] NOTICE[28484] chan_dahdi.c: PRI got event: No more alarm (5) on D-channel of span 1
[Jul 25 14:17:08] NOTICE[28485] chan_dahdi.c: PRI got event: No more alarm (5) on D-channel of span 2
[Jul 25 14:17:08] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 1
[Jul 25 14:17:08] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 2
[Jul 25 14:17:08] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 4
[Jul 25 14:17:08] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 5
[Jul 25 14:17:08] NOTICE[28486] chan_dahdi.c: PRI got event: Alarm (4) on D-channel of span 3
[Jul 25 14:17:08] WARNING[28486] sig_pri.c: Span 3: No D-channels available! Using Primary channel as D-channel anyway!
[Jul 25 14:17:08] NOTICE[28487] chan_dahdi.c: PRI got event: Alarm (4) on D-channel of span 4
[Jul 25 14:17:08] WARNING[28487] sig_pri.c: Span 4: No D-channels available! Using Primary channel as D-channel anyway!
[Jul 25 14:17:08] WARNING[28488] chan_dahdi.c: Detected alarm on channel 7: Yellow Alarm
[Jul 25 14:17:08] WARNING[28488] chan_dahdi.c: Detected alarm on channel 8: Yellow Alarm
[Jul 25 14:17:08] WARNING[28488] chan_dahdi.c: Detected alarm on channel 10: Yellow Alarm
[Jul 25 14:17:08] WARNING[28488] chan_dahdi.c: Detected alarm on channel 11: Yellow Alarm
[Jul 25 14:17:09] NOTICE[28486] chan_dahdi.c: PRI got event: No more alarm (5) on D-channel of span 3
[Jul 25 14:17:09] NOTICE[28487] chan_dahdi.c: PRI got event: No more alarm (5) on D-channel of span 4
[Jul 25 14:17:09] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 7
[Jul 25 14:17:09] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 8
[Jul 25 14:17:09] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 10
[Jul 25 14:17:09] NOTICE[28488] chan_dahdi.c: Alarm cleared on channel 11
[Jul 25 14:17:16] VERBOSE[28487] sig_pri.c: == Primary D-Channel on span 4 up
[Jul 25 14:17:16] VERBOSE[28486] sig_pri.c: == Primary D-Channel on span 3 up
the ports in TE mode never comes up, but the ports in NT mode comes up normaly
now debug
tdc
CLI> pri intense debug span 1
Enabled debugging on span 1
PRI Span: 1
PRI Span: 1 < TEI: 0 State 7(Multi-frame established)
PRI Span: 1 < V(A)=0, V(S)=0, V®=0
PRI Span: 1 < K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 < T200_id=0, N200=3, T203_id=8192
PRI Span: 1 < [ 02 01 01 01 ]
PRI Span: 1 < Supervisory frame:
PRI Span: 1 < SAPI: 00 C/R: 1 EA: 0
PRI Span: 1 < TEI: 000 EA: 1
PRI Span: 1 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 < N®: 000 P/F: 1
PRI Span: 1 < 0 bytes of data
PRI Span: 1
PRI Span: 1 > TEI: 0 State 7(Multi-frame established)
PRI Span: 1 > V(A)=0, V(S)=0, V®=0
PRI Span: 1 > K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 > T200_id=0, N200=3, T203_id=8192
PRI Span: 1 > [ 02 01 01 01 ]
PRI Span: 1 > Supervisory frame:
PRI Span: 1 > SAPI: 00 C/R: 1 EA: 0
PRI Span: 1 > TEI: 000 EA: 1
PRI Span: 1 > Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 > N®: 000 P/F: 1
PRI Span: 1 > 0 bytes of data
PRI Span: 1 – Got ACK for N(S)=0 to (but not including) N(S)=0
PRI Span: 1 – T200 requested to stop when not started
PRI Span: 1 T203 requested to start without stopping first
PRI Span: 1 – Starting T203 timer
PRI Span: 1 Done handling message for SAPI/TEI=0/0
PRI Span: 1 t203_expire
PRI Span: 1
PRI Span: 1 > TEI: 0 State 7(Multi-frame established)
PRI Span: 1 > V(A)=0, V(S)=0, V®=0
PRI Span: 1 > K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 > T200_id=0, N200=3, T203_id=0
PRI Span: 1 > [ 00 01 01 01 ]
PRI Span: 1 > Supervisory frame:
PRI Span: 1 > SAPI: 00 C/R: 0 EA: 0
PRI Span: 1 > TEI: 000 EA: 1
PRI Span: 1 > Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 > N®: 000 P/F: 1
PRI Span: 1 > 0 bytes of data
PRI Span: 1 – Starting T200 timer
PRI Span: 1
PRI Span: 1 < TEI: 0 State 8(Timer recovery)
PRI Span: 1 < V(A)=0, V(S)=0, V®=0
PRI Span: 1 < K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 < T200_id=8192, N200=3, T203_id=0
PRI Span: 1 < [ 02 01 01 01 ]
PRI Span: 1 < Supervisory frame:
PRI Span: 1 < SAPI: 00 C/R: 1 EA: 0
PRI Span: 1 < TEI: 000 EA: 1
PRI Span: 1 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 < N®: 000 P/F: 1
PRI Span: 1 < 0 bytes of data
PRI Span: 1
PRI Span: 1 > TEI: 0 State 8(Timer recovery)
PRI Span: 1 > V(A)=0, V(S)=0, V®=0
PRI Span: 1 > K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 > T200_id=8192, N200=3, T203_id=0
PRI Span: 1 > [ 02 01 01 01 ]
PRI Span: 1 > Supervisory frame:
PRI Span: 1 > SAPI: 00 C/R: 1 EA: 0
PRI Span: 1 > TEI: 000 EA: 1
PRI Span: 1 > Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 > N®: 000 P/F: 1
PRI Span: 1 > 0 bytes of data
PRI Span: 1 – Got ACK for N(S)=0 to (but not including) N(S)=0
PRI Span: 1 Done handling message for SAPI/TEI=0/0
PRI Span: 1
PRI Span: 1 < TEI: 0 State 8(Timer recovery)
PRI Span: 1 < V(A)=0, V(S)=0, V®=0
PRI Span: 1 < K=1, RC=0, l3_initiated=0, reject_except=0, ack_pend=0
PRI Span: 1 < T200_id=8192, N200=3, T203_id=0
PRI Span: 1 < [ 00 01 01 01 ]
PRI Span: 1 < Supervisory frame:
PRI Span: 1 < SAPI: 00 C/R: 0 EA: 0
PRI Span: 1 < TEI: 000 EA: 1
PRI Span: 1 < Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
PRI Span: 1 < N®: 000 P/F: 1
PRI Span: 1 < 0 bytes of data
PRI Span: 1 – Got ACK for N(S)=0 to (but not including) N(S)=0
PRI Span: 1 – Stopping T200 timer
PRI Span: 1 – Starting T203 timer
PRI Span: 1 Done handling message for SAPI/TEI=0/0
configuration
lspci -v
09:01.0 ISDN controller: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
Subsystem: Digium, Inc. Wildcard B410 quad-BRI card
Flags: medium devsel, IRQ 48
I/O ports at 4000 [size=8]
Memory at fdff0000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Kernel driver in use: wcb4xxp
Kernel modules: wcb4xxp
tdc:/usr/src/asterisk-1.8.5.0# dahdi_cfg -vvv
DAHDI Tools Version - SVN-trunk-r10071
DAHDI Version: SVN-trunk-r10079
Echo Canceller(s): HWEC
Configuration

SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: none) (Slaves: 08)
Channel 09: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: none) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: none) (Slaves: 11)
Channel 12: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 12)
12 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none
Setting echocan for channel 5 to none
Setting echocan for channel 6 to none
Setting echocan for channel 7 to none
Setting echocan for channel 8 to none
Setting echocan for channel 9 to none
Setting echocan for channel 10 to none
Setting echocan for channel 11 to none
Setting echocan for channel 12 to none
tdc:/usr/src/asterisk-1.8.5.0# cat /etc/dahdi/system.conf

Autogenerated by /usr/sbin/dahdi_genconf on Mon Jul 25 13:37:36 2011

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

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

Span 3: B4/0/3 “B4XXP (PCI) Card 0 Span 3” AMI/CCS

span=3,0,0,ccs,ami

termtype: te

bchan=7-8
hardhdlc=9

Span 4: B4/0/4 “B4XXP (PCI) Card 0 Span 4” AMI/CCS

span=4,0,0,ccs,ami

termtype: te

bchan=10-11
hardhdlc=12

Global data

loadzone = pt
defaultzone = pt
tdc:/usr/src/asterisk-1.8.5.0# cat /etc/asterisk/dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Mon Jul 25 13:37:36 2011
; 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=0,11
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 1-2
context = default
group = 63
; Span 2: B4/0/2 “B4XXP (PCI) Card 0 Span 2” AMI/CCS
group=0,12
context=from-pstn
switchtype = euroisdn
signalling = bri_cpe
channel => 4-5
context = default
group = 63
; Span 3: B4/0/3 “B4XXP (PCI) Card 0 Span 3” AMI/CCS
group=0,13
context=from-pstn
switchtype = euroisdn
signalling = bri_net
channel => 7-8
context = default
group = 63
; Span 4: B4/0/4 “B4XXP (PCI) Card 0 Span 4” AMI/CCS
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = bri_net
channel => 10-11
context = default
group = 63
This issue is driving-me crazy for weeks
thanks in advance

Howdy,

You opened an issue on the issue tracker that I closed, because it’s something Digium’s Support group should handle directly - they don’t work on the Asterisk issue tracker.

Here too then, please contact Digium’s Support department directly:

digium.com/support

Cheers