DAHDI-Tools
  1. DAHDI-Tools
  2. DAHTOOL-33

[patch] Dahdi_scan gives you wrong information about signaling when specify the span number

    Details

    • Type: Bug Bug
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Target Release Version/s: None
    • Component/s: Utilities
    • Labels:
      None
    • Mantis ID:
      15553
    • Regression:
      No

      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.

        Activity

        Hide
        tony added a comment -

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

        <code deleted>

        Show
        tony added a comment - Is necessary to re-calculate the initial channel for span we want to dump. <code deleted>
        Hide
        tony added a comment -

        Patch uploaded and waiting for license.

        Show
        tony added a comment - Patch uploaded and waiting for license.
        Hide
        Sean Bright added a comment -

        Patch uploaded. Please test and report your results.

        Show
        Sean Bright added a comment - Patch uploaded. Please test and report your results.
        Hide
        Digium Subversion added a comment -

        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

        Show
        Digium Subversion added a comment - 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
        Hide
        Digium Subversion added a comment -

        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

        Show
        Digium Subversion added a comment - 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

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development