Actions
Feature #4654
closedmake sure a given timeslot can only be opened once
Start date:
07/06/2020
Due date:
% Done:
80%
Spec Reference:
Description
As we will very soon have both osmo-bsc and osmo-mgw opening timeslots on the same E1 lines, let's make sure we fail properly if two clients try to concurrently open the same E1 timeslot.
I just checked the DAHDI source: DAHDI fails any second or further open() of the timeslot device with -EBUSY.
Updated by laforge almost 4 years ago
The current implementation actually does the exact opposite: close the old socket/client and give the timeslot to the new client.
We should change this behavior to align with how DAHDI behaves. This way we can then rely on this from higher layer code.
There could be something like F_REOPEN or F_FORCE flag, if desired.
Updated by laforge over 3 years ago
- % Done changed from 0 to 80
Implemented in https://gerrit.osmocom.org/c/osmo-e1d/+/20081
Actions