[DAHLIN-4] Improve manual span assignment process
Details
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:
- manually seed
/etc/dahdi/assigned-spans.conf
with the right order - run
dahdi_span_assignments remove
- run
dahdi_span_assignments add
- run
dahdi_span_assignments auto
- run
dahdi_genconf
(and then manually change PRIs to T1 CAS as needed) - run
dahdi_cfg -vvvvvv
- run
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.
Comments
You must be