Project

General

Profile

Bug #2595

db: find the best way to allocate unused random extension and avoid infinite loop

Added by keith 8 months ago. Updated 4 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10/25/2017
Due date:
% Done:

0%

Estimated time:
Spec Reference:

Description

in libmsc/db.c
db_subscriber_alloc_exten() runs an infinite loop that will never exit
if an unused extension cannot be allocated between GSM_MAX_EXTEN and GSM_MIN_EXTEN

A routine is required that efficiently finds a free extension.

Some suggestions as to how it might be done and comments were posted here:
https://gerrit.osmocom.org/#/c/3910/

History

#1 Updated by laforge 4 months ago

  • Project changed from OpenBSC to OsmoNITB

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)