Project

General

Profile

Feature #4654

make sure a given timeslot can only be opened once

Added by laforge 4 months ago. Updated 20 days ago.

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

History

#1 Updated by laforge 3 months 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.

#2 Updated by laforge about 1 month ago

  • Status changed from New to In Progress

#3 Updated by laforge about 1 month ago

  • % Done changed from 0 to 80

#4 Updated by tnt 20 days ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)