[asterisk-bugs] [DAHDI-tools 0015553]: [patch] Dahdi_scan gives you wrong information about signaling when specify the span number

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 27 16:05:26 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15553 
====================================================================== 
Reported By:                tony
Assigned To:                seanbright
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   15553
Category:                   Utilities
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
====================================================================== 
Date Submitted:             2009-07-22 05:30 CDT
Last Modified:              2009-07-27 16:05 CDT
====================================================================== 
Summary:                    [patch] Dahdi_scan gives you wrong information about
signaling when specify the span number
Description: 
when i try to specify the span number, and fetch the channels information,
it returns wrong data.

example: 
dahdi_scan [ without span number specify] :

[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 01 Slot 08
basechan=1
totchans=4
irq=17
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO

[2]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 08 Slot 01
basechan=5
totchans=4
irq=16
type=analog
port=5,FXS
port=6,FXO
port=7,none
port=8,none

dahdi_scan 1 [for spam 1]: 
[1]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 01 Slot 08
basechan=1
totchans=4
irq=17
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO

dahdi_scan 2 [for spam 2]: 
[2]
active=yes
alarms=OK
description=Wildcard TDM400P REV E/F Board 5
name=WCTDM/4
manufacturer=Digium
devicetype=Wildcard TDM400P REV E/F
location=PCI Bus 08 Slot 01
basechan=1
totchans=4
irq=16
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO

The problem is that the port signaling is equal in both spans.


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

---------------------------------------------------------------------- 
 (0108299) svnbot (reporter) - 2009-07-27 16:05
 https://issues.asterisk.org/view.php?id=15553#c108299 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 6902

U   tools/trunk/dahdi_scan.c

------------------------------------------------------------------------
r6902 | seanbright | 2009-07-27 16:05:25 -0500 (Mon, 27 Jul 2009) | 11
lines

Pass correct channel number to DAHDI_GET_PARAMS when passing span numbers
to dahdi_scan.

When filtering, we weren't taking into account the number of channels in
the spans that
we were skipping.

(closes issue https://issues.asterisk.org/view.php?id=15553)
Reported by: tony
Patches:
      20090723_issue15553.patch uploaded by seanbright (license 71)
Tested by: seanbright

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=6902 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-27 16:05 svnbot         Note Added: 0108299                          
======================================================================




More information about the asterisk-bugs mailing list