[asterisk-users] chan_dahdi.conf parser question

Karl Fife karlfife at gmail.com
Tue Jul 28 15:32:56 CDT 2009


My config works fine but I must be missing a concept because a small change 
gives an unexpected result. Can someone help me understand the 
chan_dahdi.conf parser that would explain this?

Based on the config below, Channels 1-23 are 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
Am I missing a parser concept that would make this rational or is this an 
actual defect?
1.6.0.10, & Dahdi 2.2.0

For what it's worth I notice that in the sample chan_dahdi.conf file 
signalling is usually spelled with two L's but at least once spelled with 
just one L.  Both are correct in canonical human English, but does the 
parser understand them both?

Sample chan_dahdi.conf Line 809:
;signaling=em
;channel => 15
;channel => 16

-Karl 




More information about the asterisk-users mailing list