[asterisk-bugs] [DAHDI-linux 0013897]: [patch] Support for generic HFC-4S cards

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Nov 24 07:44:42 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13897 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   13897
Category:                   wcb4xxp
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
====================================================================== 
Date Submitted:             2008-11-13 16:17 CST
Last Modified:              2008-11-24 07:44 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.

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

---------------------------------------------------------------------- 
 (0095363) zhulizhong (reporter) - 2008-11-24 07:44
 http://bugs.digium.com/view.php?id=13897#c95363 
---------------------------------------------------------------------- 
i recompiled libpri, asterisk and dahdi, it works now. 
==============================================
[root at bogon ~]# dahdi_test -v
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8190.912 system clock sample intervals (99.987%)
8192 samples in 8190.336 system clock sample intervals (99.980%)
8192 samples in 8190.728 system clock sample intervals (99.984%)
8192 samples in 8190.736 system clock sample intervals (99.985%)
8192 samples in 8190.744 system clock sample intervals (99.985%)
8192 samples in 8190.704 system clock sample intervals (99.984%)
8192 samples in 8190.775 system clock sample intervals (99.985%)
8192 samples in 8190.760 system clock sample intervals (99.985%)
8192 samples in 8190.744 system clock sample intervals (99.985%)
8192 samples in 8190.712 system clock sample intervals (99.984%)
8192 samples in 8190.808 system clock sample intervals (99.985%)
8192 samples in 8190.696 system clock sample intervals (99.984%)
8192 samples in 8190.720 system clock sample intervals (99.984%)
8192 samples in 8190.744 system clock sample intervals (99.985%)
[1]+  Stopped                 dahdi_test -v
=================================================================
i patched the code:
/*
 * set up the clock controller
 * we have a 24.576MHz crystal, so the PCM clock is 2x the incoming
clock.
 */
	/* b4xxp_setreg8(b4, R_BRG_PCM_CFG, 0x02); */
        b4xxp_setreg8(b4, R_BRG_PCM_CFG, V_PCM_CLK);

	flush_pci();

	udelay(100);				/* wait a bit for clock to settle */
}

==========will show the samples to 99.99%===============
dahdi: Telephony Interface Registered on major 196
dahdi: Version: SVN-trunk-r5374M
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: 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 3 (Netherlands)
wcb4xxp 0000:02:01.0: new card sync source: port 1
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
=========================================================
asterisk console:
======================================================
 -- Going to extension s|1 because of Complete received
    -- Accepting call from '82535462' to 's' on channel 0/2, span 1
[Nov 24 21:36:48] WARNING[2851]: chan_dahdi.c:1654 dahdi_enable_ec: Unable
to enable echo cancellation on channel 2 (No such device)
[Nov 24 21:36:48] WARNING[2851]: chan_dahdi.c:1654 dahdi_enable_ec: Unable
to enable echo cancellation on channel 2 (No such device)
    -- Executing [s at demo:1] Wait("DAHDI/2-1", "1") in new stack
    -- Executing [s at demo:2] Answer("DAHDI/2-1", "") in new stack
    -- Executing [s at demo:3] Set("DAHDI/2-1", "TIMEOUT(digit)=5") in new
stack
    -- Digit timeout set to 5
    -- Executing [s at demo:4] Set("DAHDI/2-1", "TIMEOUT(response)=10") in
new stack
    -- Response timeout set to 10
    -- Executing [s at demo:5] BackGround("DAHDI/2-1", "demo-congrats") in
new stack
    -- <DAHDI/2-1> Playing 'demo-congrats.gsm' (language 'en')
    -- Channel 0/2, span 1 got hangup request, cause 16
  == Spawn extension (demo, s, 5) exited non-zero on 'DAHDI/2-1'
    -- Hungup 'DAHDI/2-1'
=================================================
bogon*CLI> pri show span 1
Primary D-channel: 3
Status: Provisioned, Up, Active
Switchtype: EuroISDN
Type: CPE
Window Length: 0/7
Sentrej: 0
SolicitFbit: 0
Retrans: 0
Busy: 0
Overlap Dial: 0
T200 Timer: 1000
T203 Timer: 10000
T305 Timer: 30000
T308 Timer: 4000
T309 Timer: -1
T313 Timer: 4000
N200 Counter: 3
Overlap Recv: No
======================================
i will take further test for OpenVox B400P. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-24 07:44 zhulizhong     Note Added: 0095363                          
======================================================================




More information about the asterisk-bugs mailing list