Project

General

Profile

Actions

Bug #2376

closed

search for an sscp-address and return ss7 instance in one go

Added by dexter over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/19/2017
Due date:
% Done:

100%

Spec Reference:

Description

By the current API definition, the user can limit the search range to a specific ss7 instance (if that instance is known). When the given ss7 instance pointer is NULL, the global list is searched. This scheme will be changed to:

When searching, always the global list is searched. If found, the address will be copied to the pointer which the caller has issued. We will also return the pointer to the ss7 instance. A returned NULL pointer indicates that the entry was not found. By creating a copy of the addressbook entry we also prevent that the caller might change the address data in the addressbook. The only legal way to change addressbook entries is the VTY.

The API should look like this:

struct osmo_ss7_instance *osmo_sccp_addr_by_name(const char *name, struct osmo_sccp_addr *dest);

const char *osmo_sccp_name_by_addr(const struct osmo_sccp_addr *addr);

Actions #1

Updated by dexter over 6 years ago

  • Status changed from New to In Progress
Actions #2

Updated by dexter over 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Patch is up for review: https://gerrit.osmocom.org/3293

Actions #3

Updated by laforge over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)