[Home]

Summary:DAHTOOL-00033: [patch] Dahdi_scan gives you wrong information about signaling when specify the span number
Reporter:tony (tony)Labels:
Date Opened:2009-07-22 05:30:00Date Closed:2009-11-04 10:41:50.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Utilities
Versions:2.2.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090723_issue15553.patch
( 1) dahdi_scan_per_span.patch
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.

Comments:By: tony (tony) 2009-07-23 06:42:17

Is necessary to re-calculate the initial channel for span we want to dump.

<code deleted>



By: tony (tony) 2009-07-23 06:49:38

Patch uploaded and waiting for license.

By: Sean Bright (seanbright) 2009-07-23 12:45:01

Patch uploaded.  Please test and report your results.

By: Digium Subversion (svnbot) 2009-07-27 16:05:25

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 DAHTOOL-33)
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

By: Digium Subversion (svnbot) 2009-11-04 10:41:50.000-0600

Repository: dahdi
Revision: 7471

_U  tools/branches/2.2/
U   tools/branches/2.2/Makefile
U   tools/branches/2.2/dahdi_scan.c
U   tools/branches/2.2/doc/pattest.8
U   tools/branches/2.2/xpp/README.Astribank
U   tools/branches/2.2/xpp/astribank_tool.c
U   tools/branches/2.2/xpp/fpga_load.c
U   tools/branches/2.2/xpp/mpp_funcs.c
U   tools/branches/2.2/xpp/perl_modules/Dahdi/Xpp/Xpd.pm

------------------------------------------------------------------------
r7471 | tzafrir | 2009-11-04 10:41:48 -0600 (Wed, 04 Nov 2009) | 46 lines

Compilation and documentation fixes from trunk

Merged revisions 6842,6898,6902,6976,7131 via svnmerge from
http://svn.digium.com/svn/dahdi/tools/trunk

........
 r6842 | tzafrir | 2009-07-16 13:19:23 +0300 (Thu, 16 Jul 2009) | 2 lines
 
 Document attributes of a Dahdi::Xpp::Xpd object.
........
 r6898 | dbrooks | 2009-07-27 22:54:13 +0300 (Mon, 27 Jul 2009) | 6 lines
 
 Replaces typos "recieved" with "received" and "initilize" with "initialize".
 
 (closes issue ASTERISK-14522)
 Reported by: alecdavis
........
 r6902 | seanbright | 2009-07-28 00:05:16 +0300 (Tue, 28 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 DAHTOOL-33)
 Reported by: tony
 Patches:
       20090723_issue15553.patch uploaded by seanbright (license 71)
 Tested by: seanbright
........
 r6976 | tzafrir | 2009-08-12 22:21:01 +0300 (Wed, 12 Aug 2009) | 4 lines
 
 xpp: cleanup gcc warnings and one real astribank_tool bug
 
 xpp rev: 7281
........
 r7131 | tzafrir | 2009-09-15 19:52:58 +0300 (Tue, 15 Sep 2009) | 7 lines
 
 Add a missing trailing slash on the install-libs target
 
 (closes issue DAHTOOL-35)
 Reported by: pprindeville
 Patches:
       dahdi-tools-makefile.patch uploaded by pprindeville (license 347)
........

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

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