Project

General

Profile

Actions

Feature #4654

closed

make sure a given timeslot can only be opened once

Added by laforge almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
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.

Actions #1

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.

Actions #2

Updated by laforge over 3 years ago

  • Status changed from New to In Progress
Actions #3

Updated by laforge over 3 years ago

  • % Done changed from 0 to 80
Actions #4

Updated by tnt over 3 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)