From 4ec88b28da16b9b656171e4cf4d1ee8352c9e84f Mon Sep 17 00:00:00 2001 From: SAILESH VVR Date: Sat, 8 Jun 2024 13:16:47 +0530 Subject: [PATCH] Fix: SDM Unsubscribe issue --- internal/sbi/consumer/subscriber_data_management.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/sbi/consumer/subscriber_data_management.go b/internal/sbi/consumer/subscriber_data_management.go index 2d1bd89c..ba7097d8 100644 --- a/internal/sbi/consumer/subscriber_data_management.go +++ b/internal/sbi/consumer/subscriber_data_management.go @@ -130,6 +130,7 @@ func SDMUnSubscribe(smCtx *smf_context.SMContext) (problemDetails *models.Proble err error, ) { if smf_context.GetSelf().Ues.UeExists(smCtx.Supi) { + // Check if the session being deleted is the last session for the UE if smf_context.GetSelf().Ues.IsLastPduSession(smCtx.Supi) { sdmUri := util.SearchNFServiceUri(smf_context.GetSelf().UDMProfile, models.ServiceName_NUDM_SDM, models.NfServiceStatus_REGISTERED)