summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-17 15:48:11 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-17 15:52:24 +0100
commitc18befb0e32f4566adee2435483d05cc0cc6b326 (patch)
tree3cd7e574aa216c3fe6443d18ae7d474d5d0676f3
parenta84fa351d37651dc999649eaad0cb6bd5918e6b4 (diff)
sccp: Log missing user and router failure paths
-rw-r--r--src/sccp_scoc.c3
-rw-r--r--src/sccp_scrc.c3
2 files changed, 6 insertions, 0 deletions
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);
}