[asterisk-bugs] [Asterisk 0014877]: pri_resolve_span assumes span's channels have consecutive numbers

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 7 18:13:59 CDT 2009


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14877 
====================================================================== 
Reported By:                tzafrir
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   14877
Category:                   Channels/chan_dahdi
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 187963 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-11 09:01 CDT
Last Modified:              2009-10-07 18:13 CDT
====================================================================== 
Summary:                    pri_resolve_span assumes span's channels have
consecutive numbers
Description: 
pri_resolve-span assumes that the the D channel of a span is at channel
number <base> + 16 / 24 / 3 (for E1/ T1/J1 / BRI, respectively).

This is normalyl the case. But does not apply if channels of the span do
not have consecutive numbers. Which is something that can happen with the
right order of modules loading / unloading sequence in a multi-device
system.

Furthermore, when the function is called it is called with the following
value for the parameter 'offset':

  channel - p.chanpos

Thus making this assumption again.
====================================================================== 

---------------------------------------------------------------------- 
 (0112033) jpeeler (administrator) - 2009-10-07 18:13
 https://issues.asterisk.org/view.php?id=14877#c112033 
---------------------------------------------------------------------- 
I loaded a quad-span as T1 and then loaded another card. I then unloaded
the T1 module, reloaded as E1, reconfigured chan_dahdi with the new channel
numberings, and everything seemed to work fine.

Tzafrir: Have you been able to find a problem with chan_dahdi configured
with the nonconsecutive channels? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-07 18:13 jpeeler        Note Added: 0112033                          
2009-10-07 18:13 jpeeler        Status                   assigned => feedback
======================================================================




More information about the asterisk-bugs mailing list