[asterisk-bugs] [DAHDI-linux 0013897]: [patch] Support for generic HFC-4S cards
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Nov 19 01:53:43 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13897
======================================================================
Reported By: tzafrir
Assigned To:
======================================================================
Project: DAHDI-linux
Issue ID: 13897
Category: wcb4xxp
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2008-11-13 16:17 CST
Last Modified: 2008-11-19 01:53 CST
======================================================================
Summary: [patch] Support for generic HFC-4S cards
Description:
A patch to add some basic support of other HFC-4S -based PCI cards (such as
the ones made by Junghanns).
Status: gets rid of the echo canceller messages when not needed, but still
needs work.
Specifically:
* It adds too broad a range of cards (which also include bero.net cards)
* The range may include some 2-ports cards, which will probably not work.
Not yet tested to work, though it it is at least configured.
======================================================================
----------------------------------------------------------------------
(0095056) zhulizhong (reporter) - 2008-11-19 01:53
http://bugs.digium.com/view.php?id=13897#c95056
----------------------------------------------------------------------
hello, i patched the code and test it under openvox B400P/Junghanns, it
still does not work. dmesg shows:
----------
dahdi: Telephony Interface Registered on major 196
dahdi: Version: SVN-trunk-r5288M
wcb4xxp 0000:02:01.0: probe called for b4xx...
ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 21 (level, low) -> IRQ 217
wcb4xxp 0000:02:01.0: Identified HFC-4S PCI (controller rev 1) at
0001a000, IRQ 217
wcb4xxp 0000:02:01.0: NOTE: hardware echo cancellation has been disabled
wcb4xxp 0000:02:01.0: Port 1: TE mode
wcb4xxp 0000:02:01.0: Port 2: TE mode
wcb4xxp 0000:02:01.0: Port 3: TE mode
wcb4xxp 0000:02:01.0: Port 4: TE mode
wcb4xxp 0000:02:01.0: Did not do the highestorder stuff
dahdi: Registered tone zone 0 (United States / North America)
wcb4xxp 0000:02:01.0: new card sync source: port 1
------------------------------
asterisk console can see the dahdi channels, but when i make calls, there
is no any response from asterisk.
i add a small patch to detect Openvox B400P in te mode:
nt = ((gpio & (1 << (i + 4))) != 0); please see the details:
=========================================
static void hfc_init_all_st(struct b4xxp *b4)
{
int i, gpio, nt;
struct b4xxp_span *s;
gpio = b4xxp_getreg8(b4, R_GPI_IN3);
for (i=0; i < 4; i++) {
s = &b4->spans[i];
s->parent = b4;
s->port = i;
nt = ((gpio & (1 << (i + 4))) != 0); /* GPIO=0 = NT mode */
s->te_mode = !nt;
dev_info(b4->dev, "Port %d: %s mode\n", i + 1, (nt ? "NT" : "TE"));
hfc_reset_st(s);
hfc_start_st(s);
}
}
========================================================
regards!
James.zhu
Issue History
Date Modified Username Field Change
======================================================================
2008-11-19 01:53 zhulizhong Note Added: 0095056
======================================================================
More information about the asterisk-bugs
mailing list