[asterisk-bugs] [DAHDI 0013394]: BRI support in dahdi does not work

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Sep 6 13:02:23 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13394 
====================================================================== 
Reported By:                dnehring
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI
Issue ID:                   13394
Category:                   General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2008-08-28 16:38 CDT
Last Modified:              2008-09-06 13:02 CDT
====================================================================== 
Summary:                    BRI support in dahdi does not work
Description: 
I enable #define CONFIG_DAHDI_BRI_DCHANS
in dahdi_config.h

  CC [M] 
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.o
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:
In function 'rx_dchan':
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:469:
error: 'struct dahdi_chan' has no member named 'bytes2receive'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:470:
error: 'struct dahdi_chan' has no member named 'bytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:512:
error: 'struct dahdi_chan' has no member named 'bytes2receive'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:513:
error: 'struct dahdi_chan' has no member named 'eofrx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:
In function 'tx_dchan':
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:538:
error: 'struct dahdi_chan' has no member named 'bytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:539:
error: 'struct dahdi_chan' has no member named 'eoftx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:540:
error: 'struct dahdi_chan' has no member named 'bytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:541:
error: 'struct dahdi_chan' has no member named 'eoftx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:542:
error: 'struct dahdi_chan' has no member named 'bytes2receive'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:543:
error: 'struct dahdi_chan' has no member named 'eofrx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:
In function 'BRI_card_dahdi_preregistration':
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:691:
error: 'DAHDI_FLAGBIT_BRIDCHAN' undeclared (first use in this function)
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:691:
error: (Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:691:
error: for each function it appears in.)
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:700:
error: 'struct dahdi_chan' has no member named 'maxbytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:701:
error: 'struct dahdi_chan' has no member named 'bytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:702:
error: 'struct dahdi_chan' has no member named 'bytes2receive'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:
In function 'BRI_card_close':
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:949:
error: 'struct dahdi_chan' has no member named 'bytes2receive'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:950:
error: 'struct dahdi_chan' has no member named 'eofrx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:951:
error: 'struct dahdi_chan' has no member named 'bytes2transmit'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:952:
error: 'struct dahdi_chan' has no member named 'eoftx'
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:
In function 'bri_startup':
/usr/src/redhat/BUILD/dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2/linux/drivers/dahdi/xpp/card_bri.c:1040:
error: 'DAHDI_FLAGBIT_BRIDCHAN' undeclared (first use in this function)

I also do not find any bri driver (even not HFC) :-(

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

---------------------------------------------------------------------- 
 (0092143) jdg (reporter) - 2008-09-06 13:02
 http://bugs.digium.com/view.php?id=13394#c92143 
---------------------------------------------------------------------- 
I was able to compile dahdi patched with bri_dchan and zaphfc taken from
debian repository.
However, loading zaphfc results in a BUG in dahdi_register.

Sep  5 17:31:21 tiare kernel: dahdi: Telephony Interface Registered on
major 196
Sep  5 17:31:21 tiare kernel: dahdi: Version: SVN--r4865M
Sep  5 17:31:33 tiare kernel: ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI
20 (level, low) -> IRQ 20
Sep  5 17:31:33 tiare kernel: zaphfc: CCD/Billion/Asuscom 2BD0 configured
at mem ffffc20010084000 fifo ffff810063048000(0x63048000) IRQ 20 HZ 1000
Sep  5 17:31:33 tiare kernel: zaphfc: Card 0 configured for TE mode
Sep  5 17:31:33 tiare kernel: BUG: unable to handle kernel NULL pointer
dereference at 0000000000000000
Sep  5 17:31:33 tiare kernel: IP: [_end+532653477/2130360152]
:dahdi:dahdi_register+0x11d/0x360
Sep  5 17:31:33 tiare kernel: IP: [<ffffffffa024ee4d>]
:dahdi:dahdi_register+0x11d/0x360
Sep  5 17:31:33 tiare kernel: PGD 6300f067 PUD 6ce32067 PMD 0
Sep  5 17:31:33 tiare kernel: Oops: 0000 [1] PREEMPT SMP
Sep  5 17:31:33 tiare kernel: CPU 0 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-06 13:02 jdg            Note Added: 0092143                          
======================================================================




More information about the asterisk-bugs mailing list