mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
amf: Add local release in caes of NGAP EI
This commit is contained in:
parent
9242c28cf5
commit
d54ab9ee6a
1 changed files with 15 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue