From c96df575ce733365184d52123c98cec863ab5046 Mon Sep 17 00:00:00 2001 From: ab Date: Fri, 2 Aug 2024 23:34:54 +0200 Subject: [PATCH] fix: Add ueLocation IE in smContextCreateData According to the 29.502 paragraph 6.1.6.2.2, SmContextCreateData / ueLocation IE shall contain the UE location information, if it is available. --- internal/sbi/consumer/smf_service.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/sbi/consumer/smf_service.go b/internal/sbi/consumer/smf_service.go index 1f295fe..26c465d 100644 --- a/internal/sbi/consumer/smf_service.go +++ b/internal/sbi/consumer/smf_service.go @@ -224,10 +224,7 @@ func (s *nsmfService) buildCreateSmContextRequest(ue *amf_context.AmfUe, smConte if ue.RatType != "" { smContextCreateData.RatType = ue.RatType } - // TODO: location is used in roaming scenerio - // if ue.Location != nil { - // smContextCreateData.UeLocation = ue.Location - // } + smContextCreateData.UeLocation = &ue.Location smContextCreateData.UeTimeZone = ue.TimeZone smContextCreateData.SmContextStatusUri = context.GetIPv4Uri() + factory.AmfCallbackResUriPrefix + "/smContextStatus/" + ue.Supi + "/" + strconv.Itoa(int(smContext.PduSessionID()))