Skip to content

Commit

Permalink
fix: Add ueLocation IE in smContextCreateData
Browse files Browse the repository at this point in the history
According to the 29.502 paragraph 6.1.6.2.2, SmContextCreateData / ueLocation IE shall contain the UE location information, if it is available.
  • Loading branch information
abousselmi authored and andy89923 committed Aug 22, 2024
1 parent 9443d1b commit c96df57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/sbi/consumer/smf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit c96df57

Please sign in to comment.