NITB round robin allocation of logical channels¶
When a phone (Mobile Station, MS) needs a channel the NITB/OpenBSC channel allocator will allocate it. Currently there is one strategy with two parameters to allocate the channel. They can be allocated from the front or from the back. The issue is that certain logical channels will always be used and some others might be rarely used. The goal is to spread out the allocation in a round robin manner.
The channel allocator is located in src/libbsc/chan_alloc.c. It might be the easiest to remember the timeslot/subslot one last searched for a channel and continue from there. This could be stored by trx.