summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-20 16:39:06 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-21 10:53:34 +0100
commitc6a04b17a2237e031d1994dbe6fab7af089ef55c (patch)
treed655392bce4db05ffe804a395a6757ff2906589a
parent7c441e20676f3042bf6a3c26d7d36f33f821e43d (diff)
examples/sccp_test_server: Log disconnect indication in echo service
-rw-r--r--examples/sccp_test_server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/sccp_test_server.c b/examples/sccp_test_server.c
index 3aef725..aa3a76c 100644
--- a/examples/sccp_test_server.c
+++ b/examples/sccp_test_server.c
@@ -67,6 +67,11 @@ static int echo_prim_cb(struct osmo_prim_hdr *oph, void *_scu)
&scu_prim->u.unitdata.calling_addr,
data, data_len);
break;
+ case OSMO_PRIM(OSMO_SCU_PRIM_N_DISCONNECT, PRIM_OP_INDICATION):
+ LOGP(DMAIN, LOGL_INFO, "Got N-DISCONNECT.ind (local_ref=%u, cause=%u, importance=%u)\n",
+ scu_prim->u.disconnect.conn_id, scu_prim->u.disconnect.cause,
+ scu_prim->u.disconnect.importance);
+ break;
default:
LOGP(DMAIN, LOGL_NOTICE, "Unknown primitive %s\n",
osmo_scu_prim_name(oph));