laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/40675?usp=email )
Change subject: xua_asp_fsm: Log rx ASPAC with unknown rctx ......................................................................
xua_asp_fsm: Log rx ASPAC with unknown rctx
This is useful to quickly spot misconfigurations when setting up 2 peers to communicate.
Change-Id: Id00a8b970320f545b361357d162c26aa9db70209 --- M src/xua_asp_fsm.c 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c index 70fb0b3..b7c6947 100644 --- a/src/xua_asp_fsm.c +++ b/src/xua_asp_fsm.c @@ -632,6 +632,9 @@ uint32_t rctx = osmo_load32be(&part->dat[i * sizeof(uint32_t)]); as = osmo_ss7_as_find_by_rctx(asp->inst, rctx); if (!as) { + LOGPFSML(fi, LOGL_NOTICE, + "ASPAC: Couldn't find any AS with rctx=%u. Check your config!\n", + rctx); peer_send_error(fi, M3UA_ERR_INVAL_ROUT_CTX); return; }