summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-22 21:06:49 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-25 22:35:05 +0200
commit2661fc9193a106d414febd3ba0fa954b5b45aa80 (patch)
tree50f10c478a34da4d0cab96cef7f5a41436d8b3ad
parent019fb7211523be6fd672af29f8ce40a74ba3270c (diff)
osmo_sccp_user_sap_down(): store called/calling addr in new conn
-rw-r--r--src/sccp_scoc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 61d98b8..868a9de 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -1631,6 +1631,14 @@ int osmo_sccp_user_sap_down(struct osmo_sccp_user *scu, struct osmo_prim_hdr *op
goto out;
}
conn->user = scu;
+ conn->called_addr = prim->u.connect.called_addr;
+ conn->calling_addr = prim->u.connect.calling_addr;
+ DEBUGP(DLSCCP, "Created conn %u, called_addr %s\n",
+ conn->conn_id,
+ osmo_sccp_addr_dump(&conn->called_addr));
+ DEBUGP(DLSCCP, "Created conn %u, calling_addr %s\n",
+ conn->conn_id,
+ osmo_sccp_addr_dump(&conn->calling_addr));
break;
case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_RESPONSE):
case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_REQUEST):