The process for manually assigning spans in DAHDI is so convoluted, broken, and frustrating that it needs to be seriously overhauled and streamlined.
/etc/dahdi/assigned-spans.conf
is basically cleared anytime dahdi_genconf
is run or seemingly anything so much as a mouse sneezes. Getting DAHDI to obey static span ordering is very fickle and prone to not working.
Only needs to be done once: Add this to /etc/modprobe.d/dahdi: options dahdi auto_assign_spans=0
The only procedure that I have found to work consistently doesn't even make any sense:
/etc/dahdi/assigned-spans.conf
with the right orderdahdi_span_assignments remove
dahdi_span_assignments add
dahdi_span_assignments auto
dahdi_genconf
(and then manually change PRIs to T1 CAS as needed)dahdi_cfg -vvvvvv
rasterisk -x "module refresh chan_dahdi"
However, it doesn't even seem like this is correct, as dahdi_span_assignments auto undoes/ignores what "add" does, and indeed, the add command always seems to error out, i.e. is broken. After just running add (but not auto), dahdi_genconf will hang if run. This can make it impossible to order multiple spans correctly.
You must be