Project

General

Profile

Actions

Feature #1688

open

SUA: support N-STATE indication primitives for connect and disconnect events

Added by neels almost 8 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
04/05/2016
Due date:
% Done:

0%

Spec Reference:

Description

  • When a SUA connection becomes active, the osmo_sua_* API should notify the SUA user with an
    N-STATE indication primitive with "User-in-service" information.
  • When a connection is lost/closed, the same with "User-out-of-service" should be
    passed to the SUA user.

As discussed in this mail thread:
http://lists.osmocom.org/pipermail/openbsc/2016-April/008349.html

See OSMO_SCU_PRIM_N_STATE, osmo_sua_user_create() and its osmo_prim_cb parameter.

Notably, osmo_stream_* doesn't seem to have an on_disconnect cb, so it's not entirely
clear yet how to invoke the "User-out-of-service" prim.


Files

on_connect_cb_but_should_use_N_STATE_prim_instead.patchset on_connect_cb_but_should_use_N_STATE_prim_instead.patchset 6.78 KB half a patch, but adding a conn cb is the wrong way neels, 04/05/2016 11:03 AM
Actions #1

Updated by neels almost 8 years ago

I've hacked some code to hook on the osmo_stream on-connect callback, but instead of adding
a connect-cb to osmo_sua_*, an N-STATE should be sent. See attached file
on_connect_cb_but_should_use_N_STATE_prim_instead.patchset (contains two patches)

Actions #2

Updated by neels almost 8 years ago

  • Description updated (diff)
Actions #3

Updated by neels almost 8 years ago

  • Description updated (diff)
Actions #4

Updated by laforge about 7 years ago

  • Assignee set to laforge
Actions #5

Updated by laforge almost 6 years ago

  • Assignee deleted (laforge)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)