Watchdog that would try to un-BORKE BORKen timeslots
In #5096 that discussed lchans ending up borken on a busy ericsson bts:
"What would probably make sense is some kind of watchdog that would try to un-BORKE BORKen timeslots after a certain time. This can be done by activating a broken sub-slot and releasing it immediately. If the BTS still refuses to activate it, then it's completely BORKen and the second attempt to un-BORKE can be postponed further."
It would make most sense to introduce a timeout on an lchan entering the BORKEN state, to retry to resurrect the lchan by some standard actions: release the lchan, activate then release, things like that. This could be limited to say three times before entering the BORKEN state "forever".
Also we could consider to not enter the BORKEN state on a chan act NACK, but simply regard the lchan as not in use again. It seems that the reported case (I heard) included some invalid request in the chan act, and hence the NACK would simply mean to go back to UNUSED.