[Home]

Summary:DAHLIN-00031: BRI support in dahdi does not work
Reporter:Dirk Nehring (dnehring)Labels:
Date Opened:2008-08-28 16:38:15Date Closed:2008-10-15 12:49:17
Priority:MajorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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) :-(


****** ADDITIONAL INFORMATION ******

dahdi-linux-complete-2.0.0-rc3+2.0.0-rc2
Comments:By: Tzafrir Cohen (tzafrir) 2008-09-04 08:34:35

this #define comes from a complete patch. Don't just add it on its own.

You need the bri_dchan patch. I have a version working locally and will post it shortly.  (The same gotcha as with zaptel 1.4.11 . There is a new value this time)

By: Jean-Denis Girard (jdg) 2008-09-06 13:02:23

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

By: Leif Madsen (lmadsen) 2008-09-06 13:23:10

Is this discussion regarding code that is distributed with DAHDI, or is this describing something outside the tree?

By: Jean-Denis Girard (jdg) 2008-09-06 14:13:12

bri_dchan patch and zaphfc are outside the tree, taken from:
http://svn.debian.org/wsvn/pkg-voip/dahdi-linux/branches/?rev=6097&sc=0

This setup was working a few months ago, see this discussion:
http://lists.digium.com/pipermail/asterisk-dev/2008-March/032142.html



By: Tzafrir Cohen (tzafrir) 2008-09-06 15:16:06

This is regarding a file in the tree (drivers/dahdi/xpp/card_bri.c) .
I need to update the patch bri_dchan, I guess.

By: Tzafrir Cohen (tzafrir) 2008-10-15 12:49:13

up-to-date bri_dchan patch posted to the bristuff mailing list. I consider this issue resolved.