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.orgHarald Welte has submitted this change and it was merged. Change subject: xua_as_fsm: Include routing context (if configured) in NTFY message ...................................................................... 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(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified 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: merged Gerrit-Change-Id: I15e8bf5cee194f9924d0eab9cff0e7c25daa6dde Gerrit-PatchSet: 5 Gerrit-Project: libosmo-sccp Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder