aboutsummaryrefslogtreecommitdiffstats
path: root/src/xua_as_fsm.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-06 08:49:56 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-10 11:48:35 +0200
commit6144da9be8942bdf21ff9ea55e4689f989ad683f (patch)
tree31ba845da6ff43a3397edc8ec315ac19edfbafa1 /src/xua_as_fsm.c
parent55674b8d69c06129a40564d7ff85809de6cf5535 (diff)
xua_as_fsm: Include routing context (if configured) in NTFY message
Diffstat (limited to 'src/xua_as_fsm.c')
-rw-r--r--src/xua_as_fsm.c9
1 files changed, 9 insertions, 0 deletions
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_down(struct osmo_fsm_inst *fi, uint32_t event, void *data
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 @@ static void xua_as_fsm_onenter(struct osmo_fsm_inst *fi, uint32_t old_state)
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);
};