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

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Oct 3 01:02:18 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
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:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
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-03 01:02 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0111813) tzafrir (manager) - 2009-10-03 01:02
 https://issues.asterisk.org/view.php?id=14877#c111813 
---------------------------------------------------------------------- 
It's not a matter of configurations. You basically need to have a "hole" of
channels in use.

A simple example: a system with a certain single-span E1/T1 card and
another card.

You configure the E1/T1 card as T1, load its module and the module of the
other card. Now unload the module of the E1/T1 card, configure it to load
as E1, and load it. Channels 25-31 of the span will be positioned after the
channels of the first card. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-03 01:02 tzafrir        Note Added: 0111813                          
======================================================================




More information about the asterisk-bugs mailing list