[Home]

Summary:DAHTOOL-00054: dahdi_genconf ignores B410P jumper settings
Reporter:David Faulk (dfaulk)Labels:
Date Opened:2011-06-16 10:13:25Date Closed:2011-11-04 12:01:20
Priority:MinorRegression?
Status:Closed/CompleteComponents:General
Versions:2.4.0 Frequency of
Occurrence
Constant
Related
Issues:
is related toDAHTOOL-00055 dahdi_genconf fails to generate a configuration
Environment:CentOS 5.5Attachments:( 0) 0001-dahdi_genconf-Use-dahdi_scan-to-determine-span_type-.patch
( 1) wcb4xxp_span_mode_dahdi_genconf.patch
Description:I have port 2 jumpered as TE, ports 1,3 and 4 are set to NT.

Here is the system.conf that dahdi_genconf generated, I also have a 2 span PRI card installed so that why the span numbering starts at 3 for the B410P:


# Span 3: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
span=3,3,0,ccs,ami
# termtype: te
bchan=63-64
hardhdlc=65
echocanceller=mg2,63-64

# Span 4: B4/0/2 "B4XXP (PCI) Card 0 Span 2" AMI/CCS
span=4,4,0,ccs,ami
# termtype: te
bchan=66-67
hardhdlc=68
echocanceller=mg2,66-67

# Span 5: B4/0/3 "B4XXP (PCI) Card 0 Span 3"
span=5,5,0,ccs,ami
# termtype: te
bchan=69-70
hardhdlc=71
echocanceller=mg2,69-70

# Span 6: B4/0/4 "B4XXP (PCI) Card 0 Span 4"
span=6,6,0,ccs,ami
# termtype: te
bchan=72-73
hardhdlc=74
echocanceller=mg2,72-73
Comments:By: Gerald Schnabel (geraldsf) 2011-09-09 04:00:26.468-0500

This problem can be easily resolved: the wcb4xxp driver must expose NT/TE mode in span.desc (like other drivers do) and _xpp/perl_modules/Dahdi/Span.pm_ must be adapted to read the information from the span description.

See attached patch.

By: Shaun Ruffell (sruffell) 2011-09-11 00:08:49.480-0500

It would break the interface in 2.5 (which the output of /proc/dahdi/x is part of) to add the NT|TE strings the span description.

What about the attached patch "0001-dahdi_genconf-Use-dahdi_scan-to-determine-span_type-.patch" which uses the output from dahdi_scan to determine TE|NT mode for the B410P driver?  Something like this I believe could be released on the 2.5 branch.

By: David Faulk (dfaulk) 2011-09-29 09:49:41.956-0500

I have tested 0001-dahdi_genconf-Use-dahdi_scan-to-determine-span_type-.patch:

dmesg shows the following configuration for the B410P:

wcb4xxp 0000:05:01.0: Identified Wildcard B410P (controller rev 1) at 00011000, IRQ 74
wcb4xxp 0000:05:01.0: VPM 0/1 init: chip ver 33
wcb4xxp 0000:05:01.0: VPM 1/1 init: chip ver 33
wcb4xxp 0000:05:01.0: Hardware echo cancellation enabled.
wcb4xxp 0000:05:01.0: Port 1: NT mode
wcb4xxp 0000:05:01.0: Port 2: TE mode
wcb4xxp 0000:05:01.0: Port 3: TE mode
wcb4xxp 0000:05:01.0: Port 4: NT mode

dahdi_genconf now generates /etc/dahdi/system.conf with correct
span configuration for NT ports:

# Autogenerated by /usr/sbin/dahdi_genconf on Thu Sep 29 10:57:07 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED
span=1,0,0,ccs,ami
# termtype: nt
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2

# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" (MASTER) AMI/CCS RED
span=2,1,0,ccs,ami
# termtype: te
bchan=4-5
hardhdlc=6
echocanceller=mg2,4-5

# Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" AMI/CCS RED
span=3,2,0,ccs,ami
# termtype: te
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8

# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
span=4,0,0,ccs,ami
# termtype: nt
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11

# Global data

loadzone        = de
defaultzone     = de

By: Shaun Ruffell (sruffell) 2011-11-04 12:01:20.647-0500

This change was committed in [r10214|http://svnview.digium.com/svn/dahdi?view=revision&revision=10214].