pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-sgsn/+/43804?usp=email )


Change subject: sigtran: N-DISCONNECT.req: Use proper SCCP-User release reason
......................................................................

sigtran: 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: I4bf44c973ae5dbe6fc2164e1ecc314b1cfdaf08c
Related: OS#2601
---
M TODO-RELEASE
M src/sgsn/iu_rnc_fsm.c
2 files changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/04/43804/1

diff --git a/TODO-RELEASE b/TODO-RELEASE
index fa97ecb..40cc353 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -13,3 +13,4 @@
 libosmo-gsup-client >1.8.0  osmo_gsup_client_is_connected(), 
osmo_gsup_client_get_rem_addr(), osmo_gsup_client_get_rem_port()
 osmo-iuh >1.7.0 ranap multiple params are constified, see osmo-iuh Change-Id 
I667dc2ef377c1ceb5b11315458f00b282c143c81
 osmo-iuh >1.8.1 ranap_new_msg_rab_assign_data2() / 
ranap_new_msg_rab_assign_voice2()
+libosmo-sigtran >2.3.0 OSMO_SCCP_REL_REASON_NSU_*
diff --git a/src/sgsn/iu_rnc_fsm.c b/src/sgsn/iu_rnc_fsm.c
index 3e506a3..bfed0c9 100644
--- a/src/sgsn/iu_rnc_fsm.c
+++ b/src/sgsn/iu_rnc_fsm.c
@@ -182,7 +182,9 @@
                LOG_RNC(rnc, LOGL_ERROR, "Receiving CO Initial message on RAN 
peer that has not done a proper RESET yet."
                             " Disconnecting on incoming message, sending RESET 
to RAN peer.\n");
                
osmo_sccp_tx_disconn(ev_msg_up_co_initial_ctx->rnc->scu_iups->scu,
-                                    ev_msg_up_co_initial_ctx->conn_id, NULL, 
0);
+                                    ev_msg_up_co_initial_ctx->conn_id,
+                                    NULL,
+                                    
OSMO_SCCP_REL_REASON_NSU_DISC_END_USER_FAILURE);
                /* No valid RESET procedure has happened here yet. */
                iu_rnc_reset(rnc);
                return;

--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43804?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I4bf44c973ae5dbe6fc2164e1ecc314b1cfdaf08c
Gerrit-Change-Number: 43804
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to