This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Harald Welte gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/2239
xua_as_fsm: Include routing context (if configured) in NTFY message
Change-Id: I15e8bf5cee194f9924d0eab9cff0e7c25daa6dde
---
M src/xua_as_fsm.c
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/39/2239/1
diff --git a/src/xua_as_fsm.c b/src/xua_as_fsm.c
index 887a9ec..d73f793 100644
--- a/src/xua_as_fsm.c
+++ b/src/xua_as_fsm.c
@@ -149,6 +149,7 @@
static void xua_as_fsm_onenter(struct osmo_fsm_inst *fi, uint32_t old_state)
{
struct xua_as_fsm_priv *xafp = (struct xua_as_fsm_priv *) fi->priv;
+ struct osmo_ss7_as *as = xafp->as;
struct m3ua_notify_params npar = {
.status_type = M3UA_NOTIFY_T_STATCHG,
};
@@ -167,6 +168,14 @@
return;
}
+ /* Add the routing context, if it is configured */
+ if (as->cfg.routing_key.context) {
+ npar.presence |= NOTIFY_PAR_P_ROUTE_CTX;
+ npar.route_ctx = as->cfg.routing_key.context;
+ }
+
+ /* TODO: ASP-Id of ASP triggering this state change */
+
asp_notify_all_as(xafp->as, &npar);
};
--
To view, visit https://gerrit.osmocom.org/2239
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I15e8bf5cee194f9924d0eab9cff0e7c25daa6dde
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>