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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 12 21:47:05 CDT 2009


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:              2009-03-12 21:47 CDT
====================================================================== 
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.

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

---------------------------------------------------------------------- 
 (0101704) zhulizhong (reporter) - 2009-03-12 21:47
 http://bugs.digium.com/view.php?id=13897#c101704 
---------------------------------------------------------------------- 
anyone test that under NT mode? i have an error when loading the
chan_dahdi.so.
the results are:
1) modprobe wcb4xxp ok. it shows me the card in NT mode
2) changed the TE mode into NT mode in chan_dahdi.conf
signalling = bri_net_ptmp
pridialplan = local
prilocaldialplan = dynamic
nationalprefix = 0
internationalprefix = 00
priindication = passthrough
echocancel = yes
context=from-test
group = 1
signalling = bri_net_ptmp
; S/T port 1
channel => 1-2
group = 2
; S/T port 2
signalling = bri_net_ptmp
channel => 4-5

group = 3
; S/T port 3
signalling = bri_net_ptmp
channel => 7-8
group = 4
; S/T port 4
but when i load the so, asterisk reports this error:
=================================================================
[Mar 13 10:33:42] WARNING[2894]: chan_dahdi.c:14282 process_dahdi: How
cool would it be if someone implemented this mode!  For now, sucks for you.
(line 978)
[Mar 13 10:33:42] ERROR[2894]: chan_dahdi.c:13781 build_channels:
Signalling must be specified before any channels are.
[Mar 13 10:33:42] ERROR[2894]: chan_dahdi.c:13781 build_channels:
Signalling must be specified before any channels are.
  == Parsing '/etc/asterisk/users.conf':   == Found
[Mar 13 10:33:42] WARNING[2894]: chan_dahdi.c:14415 process_dahdi:
'passthrough' is not a valid pri indication value, should be 'inband' or
'outofband' at line 974.
[Mar 13 10:33:42] WARNING[2894]: chan_dahdi.c:14415 process_dahdi:
'passthrough' is not a valid pri indication value, should be 'inband' or
'outofband' at line 974.
[Mar 13 10:33:42] WARNING[2894]: chan_dahdi.c:14282 process_dahdi: How
cool would it be if someone implemented this mode!  For now, sucks for you.
(line 978)
[Mar 13 10:33:42] WARNING[2894]: chan_dahdi.c:14282 process_dahdi: How
cool would it be if someone implemented this mode!  For now, sucks for you.
(line 978)
[Mar 13 10:33:42] ERROR[2894]: chan_dahdi.c:13781 build_channels:
Signalling must be specified before any channels are.
[Mar 13 10:33:42] ERROR[2894]: chan_dahdi.c:13781 build_channels:
Signalling must be specified before any channels are.
===============================================================
=====================code=========================================
static int build_channels(struct dahdi_chan_conf *conf, int iscrv, const
char *value, int reload, int lineno, int *found_pseudo)
{
	char *c, *chan;
	int x, start, finish;
	struct dahdi_pvt *tmp;
#ifdef HAVE_PRI
	struct dahdi_pri *pri;
	int trunkgroup, y;
#endif
	
	if ((reload == 0) && (conf->chan.sig < 0) && !conf->is_sig_auto) {
		ast_log(LOG_ERROR, "Signalling must be specified before any channels
are.\n");
		return -1;
	}

	c = ast_strdupa(value);
==================================================
please double check for that. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-12 21:47 zhulizhong     Note Added: 0101704                          
======================================================================




More information about the asterisk-bugs mailing list