[asterisk-bugs] [Asterisk 0015602]: chan_dahdi parser assigns channel 1 to wrong context

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Aug 25 18:52:06 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15602 
====================================================================== 
Reported By:                karlfife
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15602
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-28 17:54 CDT
Last Modified:              2009-08-25 18:52 CDT
====================================================================== 
Summary:                    chan_dahdi parser assigns channel 1 to wrong context
Description: 
Based on the config below, Channels 1-23 are properly assigned to the
context 
inbound-pri, and Channels 25-47 are assigned to the context outbound-pri.
As 
expected.

[trunkgroups]
; We do not do NFAS at this time

[channels]
echocancel = yes
switchtype = national

context = outbound-pri
signalling = pri_net
group = 2
channel => 25-47

context = inbound-pri
signalling = pri_cpe
group = 1
channel => 1-23


HOWEVER when I simply reverse the order of the channels on the last few 
lines like so:

[trunkgroups]
; We do not do NFAS at this time

[channels]
echocancel = yes
switchtype = national

;This A part (4 lines) was swapped with the B part
context = inbound-pri
signalling = pri_cpe
group = 1
channel => 1-23

;This B part (4 lines) was swapped with the A part
context = outbound-pri
signalling = pri_net
group = 2
channel => 25-47


UNEXPECTED:
Channels 1 is unexpectedly assigned to the context outbound-pri
Channels 2-23 are 'properly' assigned to the context inbound-pri
Channels 25-47 are 'properly' assigned to the context outbound-pri

This is not a dahdi reload problem.  Even a complete system reboot returns

these results

====================================================================== 

---------------------------------------------------------------------- 
 (0109657) karlfife (reporter) - 2009-08-25 18:52
 https://issues.asterisk.org/view.php?id=15602#c109657 
---------------------------------------------------------------------- 
Indeed.

I removed the parameter dahdichan=1 from the users.conf.  Afterward the
configuration was no longer dependent upon the order as outlined in the
original description.  

The paramter made its way into users.conf by way of the examples in the
users.conf sample file.  Should I conclude from your observation that this
is not a defect?  I'm fairly new to Zap/Dahdi.  

The Asterisk version is 1.6.0.13, Dahdi 2.2.0.2.  

Thanks 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-25 18:52 karlfife       Note Added: 0109657                          
======================================================================




More information about the asterisk-bugs mailing list