Commit 62ed06c4 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Update UE RM status

parent 9ebb6655
......@@ -3479,6 +3479,7 @@ void amf_n1::ue_initiate_de_registration_handle(
usleep(200000);
}
stacs.update_5gmm_state(nc->imsi, "5GMM-DEREGISTERED");
set_5gmm_state(nc, _5GMM_DEREGISTERED);
stacs.display();
......
......@@ -1481,7 +1481,8 @@ void amf_n2::handle_itti_message(itti_ue_context_release_complete& itti_msg) {
}
// Remove UE NGAP context
remove_ue_context_with_ran_ue_ngap_id(ran_ue_ngap_id, uc->gnb_id);
remove_amf_ue_ngap_id_2_ue_ngap_context(amf_ue_ngap_id);
remove_ran_ue_ngap_id_2_ngap_context(ran_ue_ngap_id, gc->gnb_id);
}
//------------------------------------------------------------------------------
......@@ -2328,6 +2329,7 @@ void amf_n2::remove_ue_context_with_ran_ue_ngap_id(
// Remove all NAS context if still exist
std::shared_ptr<nas_context> nc = {};
if (amf_n1_inst->amf_ue_id_2_nas_context(unc->amf_ue_ngap_id, nc)) {
// TODO: Verify where it's current context
// Remove all NAS context
string supi = conv::imsi_to_supi(nc->imsi);
stacs.update_5gmm_state(nc->imsi, "5GMM-DEREGISTERED");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment