From 174648e4870cdf570d101acee408a5a43665307c Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 10 Nov 2021 14:06:26 +0000 Subject: [PATCH] Restart S1AP on SCTP_ERROR event --- srsenb/src/stack/s1ap/s1ap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srsenb/src/stack/s1ap/s1ap.cc b/srsenb/src/stack/s1ap/s1ap.cc index b714f8b65..f64b6a2a9 100644 --- a/srsenb/src/stack/s1ap/s1ap.cc +++ b/srsenb/src/stack/s1ap/s1ap.cc @@ -564,6 +564,10 @@ bool s1ap::handle_mme_rx_msg(srsran::unique_byte_buffer_t pdu, logger.info("SCTP peer addres unreachable. Association: %d", sri.sinfo_assoc_id); srsran::console("SCTP peer address unreachable. Association: %d\n", sri.sinfo_assoc_id); restart_s1 = true; + } else if (notification->sn_header.sn_type == SCTP_REMOTE_ERROR) { + logger.info("SCTP remote error. Association: %d", sri.sinfo_assoc_id); + srsran::console("SCTP remote error. Association: %d\n", sri.sinfo_assoc_id); + restart_s1 = true; } else if (notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) { logger.info("SCTP association changed. Association: %d", sri.sinfo_assoc_id); srsran::console("SCTP association changed. Association: %d\n", sri.sinfo_assoc_id);