pespin has uploaded this change for review.

View Change

iu_client: N-DISCONNECT.req: Use proper SCCP-User release reason

Until recently, libosmo-sigtran was incorrectly expecting low-level
wire-format cause in N-DISCONNECT.req. Nowadays it supports specific
reason values in the SCCP-User SAP, so use those instead.

Change-Id: I2b3a875c22f00d0790ce4fd8381daebc1520f1f3
Related: OS#2601
---
M TODO-RELEASE
M src/iu_client.c
2 files changed, 3 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/01/43801/1
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 0ed7189..b6d61b1 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
# If any interfaces have been added since the last public release: c:r:a + 1.
# If any interfaces have been removed or changed since the last public release: c:r:0.
#library what description / commit summary line
+libosmo-sigtran >2.3.0 OSMO_SCCP_REL_REASON_NSU_*
diff --git a/src/iu_client.c b/src/iu_client.c
index 8df8c7d..ae87460 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -184,7 +184,8 @@
return;

osmo_timer_del(&ue_ctx->release_timeout);
- osmo_sccp_tx_disconn(g_scu, ue_ctx->conn_id, NULL, 0);
+ osmo_sccp_tx_disconn(g_scu, ue_ctx->conn_id, NULL,
+ OSMO_SCCP_REL_REASON_NSU_DISC_NORMAL);
llist_del(&ue_ctx->list);
talloc_free(ue_ctx);
}

To view, visit change 43801. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I2b3a875c22f00d0790ce4fd8381daebc1520f1f3
Gerrit-Change-Number: 43801
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>