amf: Add local release in caes of NGAP EI

This commit is contained in:
LSKhappychild 2026-02-19 05:44:19 +00:00 committed by Sukchan Lee
parent 9242c28cf5
commit d54ab9ee6a

View file

@ -4899,4 +4899,19 @@ void ngap_handle_error_indication(amf_gnb_t *gnb, ogs_ngap_message_t *message)
ogs_warn(" Cause[Group:%d Cause:%d]",
Cause->present, (int)Cause->choice.radioNetwork);
}
if (ran_ue) {
amf_ue_t *amf_ue = NULL;
ogs_warn(" Performing local release for"
" RAN_UE_NGAP_ID[%lld] AMF_UE_NGAP_ID[%lld]",
(long long)ran_ue->ran_ue_ngap_id,
(long long)ran_ue->amf_ue_ngap_id);
amf_ue = amf_ue_find_by_id(ran_ue->amf_ue_id);
if (amf_ue) {
amf_ue_deassociate_ran_ue(amf_ue, ran_ue);
}
ran_ue_remove(ran_ue);
}
}