[Home]

Summary:DAHTOOL-00021: [patch] perl warnings with lsdahdi and dynamic spans
Reporter:Michael Ricordeau (tamiel)Labels:
Date Opened:2009-03-09 08:24:35Date Closed:2009-03-09 11:30:40
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Utilities
Versions:2.1.0.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20090309-perl5-Dahdi-Chans.diff
Description:When having dynamic spans (TDMOE) and executing lsdahdi,
for each channel of each span, we get a perl warning line :

### Span  1: DYN/eth/eth0/00:30:6e:36:25:2b/0 "Dynamic 'eth' span at 'eth0/00:30:6e:36:25:2b/0'" RED
Use of uninitialized value in string eq at /usr/share/perl/5.10.0/Dahdi/Chans.pm line 221.
 1 unknown    Clear        RED

****** STEPS TO REPRODUCE ******

Execute lsdahdi (with dynamic spans up) .
Comments:By: Michael Ricordeau (tamiel) 2009-03-09 08:27:21

Here is a patch for xpp/perl_modules/Dahdi/Chans.pm .
It defined type "DYN" for dynamic channels.

By: Tzafrir Cohen (tzafrir) 2009-03-09 10:30:14

tamiel, could you please include the output of:  cat /proc/dahdi/1

By: Michael Ricordeau (tamiel) 2009-03-09 10:59:51

/proc/dahdi/1 is dahdi_dummy on my test server.

So first dynamic span is :

cat /proc/dahdi/2

Span 2: DYN/eth/eth0/00:30:6e:36:25:2b/0 "Dynamic 'eth' span at 'eth0/00:30:6e:36:25:2b/0'" RED

          1 DYN/eth/eth0/00:30:6e:36:25:2b/0/1 Clear RED
          2 DYN/eth/eth0/00:30:6e:36:25:2b/0/2 Clear RED
          3 DYN/eth/eth0/00:30:6e:36:25:2b/0/3 Clear RED
          4 DYN/eth/eth0/00:30:6e:36:25:2b/0/4 Clear RED
          5 DYN/eth/eth0/00:30:6e:36:25:2b/0/5 Clear RED
          6 DYN/eth/eth0/00:30:6e:36:25:2b/0/6 Clear RED
          7 DYN/eth/eth0/00:30:6e:36:25:2b/0/7 Clear RED
          8 DYN/eth/eth0/00:30:6e:36:25:2b/0/8 Clear RED
          9 DYN/eth/eth0/00:30:6e:36:25:2b/0/9 Clear RED
         10 DYN/eth/eth0/00:30:6e:36:25:2b/0/10 Clear RED
         11 DYN/eth/eth0/00:30:6e:36:25:2b/0/11 Clear RED
         12 DYN/eth/eth0/00:30:6e:36:25:2b/0/12 Clear RED
         13 DYN/eth/eth0/00:30:6e:36:25:2b/0/13 Clear RED
         14 DYN/eth/eth0/00:30:6e:36:25:2b/0/14 Clear RED
         15 DYN/eth/eth0/00:30:6e:36:25:2b/0/15 Clear RED
         16 DYN/eth/eth0/00:30:6e:36:25:2b/0/16 HDLCFCS RED
         17 DYN/eth/eth0/00:30:6e:36:25:2b/0/17 Clear RED
         18 DYN/eth/eth0/00:30:6e:36:25:2b/0/18 Clear RD
         19 DYN/eth/eth0/00:30:6e:36:25:2b/0/19 Clear RED
         20 DYN/eth/eth0/00:30:6e:36:25:2b/0/20 Clear RED
         21 DYN/eth/eth0/00:30:6e:36:25:2b/0/21 Clear RED
         22 DYN/eth/eth0/00:30:6e:36:25:2b/0/22 Clear RED
         23 DYN/eth/eth0/00:30:6e:36:25:2b/0/23 Clear RED
         24 DYN/eth/eth0/00:30:6e:36:25:2b/0/24 Clear RED
         25 DYN/eth/eth0/00:30:6e:36:25:2b/0/25 Clear RED
         26 DYN/eth/eth0/00:30:6e:36:25:2b/0/26 Clear RED
         27 DYN/eth/eth0/00:30:6e:36:25:2b/0/27 Clear RED
         28 DYN/eth/eth0/00:30:6e:36:25:2b/0/28 Clear RED
         29 DYN/eth/eth0/00:30:6e:36:25:2b/0/29 Clear RED
         30 DYN/eth/eth0/00:30:6e:36:25:2b/0/30 Clear RED
         31 DYN/eth/eth0/00:30:6e:36:25:2b/0/31 Clear RED

By: Digium Subversion (svnbot) 2009-03-09 11:30:39

Repository: dahdi
Revision: 6110

U   tools/trunk/xpp/perl_modules/Dahdi/Chans.pm

------------------------------------------------------------------------
r6110 | tzafrir | 2009-03-09 11:30:37 -0500 (Mon, 09 Mar 2009) | 10 lines

Fix detection of channels of dynamic spans in Dahdi::Chans

Fix the pattern detection of channels belonging to dynamic (dahdi_dynamic)
spans in perl programs that use Dahdi::Chans (e.g.: lsdahdi)

(closes issue DAHTOOL-21)
Reported by: tamiel
Patches:
     20090309-perl5-Dahdi-Chans.diff uploaded by tamiel (license 712)

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

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