Skip to content

Commit

Permalink
Fix Error Indication during Deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
linouxis9 committed Dec 29, 2023
1 parent 1c66eba commit 0b1614e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions internal/control_test_engine/gnb/ngap/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,7 @@ func HandlerErrorIndication(gnb *context.GNBContext, message *ngapType.NGAPPDU)
}
}

ue := getUeFromContext(gnb, ranUeId, amfUeId)

log.Warn("[GNB][AMF] Received an Error Indication for UE with AMF UE ID: ", ue.GetAmfUeId(), ", RAN UE ID: ", ue.GetRanUeId())
log.Warn("[GNB][AMF] Received an Error Indication for UE with AMF UE ID: ", amfUeId, " RAN UE ID: ", ranUeId)
}

func getUeFromContext(gnb *context.GNBContext, ranUeId int64, amfUeId int64) *context.GNBUe {
Expand Down
2 changes: 1 addition & 1 deletion internal/control_test_engine/gnb/ngap/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func GnbListen(amf *context.GNBAmf, gnb *context.GNBContext) {
copy(forwardData, buf[:n])

// handling NGAP message.
ngap.Dispatch(amf, gnb, forwardData)
go ngap.Dispatch(amf, gnb, forwardData)

}

Expand Down
4 changes: 2 additions & 2 deletions internal/control_test_engine/ue/ue.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ func ueMgrHandler(msg procedures.UeTesterMessage, ue *context.UEContext) bool {
trigger.InitPduSessionRelease(ue, pduSession)
select {
case <-pduSession.Wait:
case <-time.After(5 * time.Millisecond):
// If still unregistered after 5 ms, continue
case <-time.After(500 * time.Millisecond):
// If still unregistered after 500 ms, continue
}
}
}
Expand Down

0 comments on commit 0b1614e

Please sign in to comment.