From c18befb0e32f4566adee2435483d05cc0cc6b326 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 17 Jan 2020 15:48:11 +0100 Subject: sccp: Log missing user and router failure paths Change-Id: I36374e4419474c5ab43c9cca1b59f3054f93180b --- src/sccp_scoc.c | 3 +++ src/sccp_scrc.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c index 7570764..b5b6547 100644 --- a/src/sccp_scoc.c +++ b/src/sccp_scoc.c @@ -1364,6 +1364,9 @@ void sccp_scoc_rx_scrc_rout_fail(struct osmo_sccp_instance *inst, uint32_t conn_id; struct sccp_connection *conn; + LOGP(DLSCCP, LOGL_NOTICE, "SCRC Routing Failure for message %s\n", + xua_hdr_dump(xua, &xua_dialect_sua)); + /* try to dispatch to connection FSM (if any) */ conn_id = xua_msg_get_u32(xua, SUA_IEI_DEST_REF); conn = conn_find_by_id(inst, conn_id); diff --git a/src/sccp_scrc.c b/src/sccp_scrc.c index e259d7c..b46b4f2 100644 --- a/src/sccp_scrc.c +++ b/src/sccp_scrc.c @@ -321,6 +321,9 @@ static int scrc_node_6(struct osmo_sccp_instance *inst, /* Is subsystem equipped? */ if (!scu) { /* Error: unequipped user */ + LOGP(DLSCCP, LOGL_NOTICE, + "Unable to find user for SSN=%u PC=%s\n", + called->ssn, osmo_ss7_pointcode_print(inst->ss7, called->pc)); return scrc_node_4(inst, xua, SCCP_RETURN_CAUSE_UNEQUIPPED_USER); } -- cgit v1.2.3