Commit 79a8647d authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for SUPi/IMSI

parent 3f4f6bab
...@@ -558,7 +558,7 @@ void amf_n1::identity_response_handle( ...@@ -558,7 +558,7 @@ void amf_n1::identity_response_handle(
if (ir->ie_mobility_id) { if (ir->ie_mobility_id) {
nas::SUCI_imsi_t imsi; nas::SUCI_imsi_t imsi;
ir->ie_mobility_id->getSuciWithSupiImsi(imsi); ir->ie_mobility_id->getSuciWithSupiImsi(imsi);
supi = "imsi-" + imsi.mcc + imsi.mnc + imsi.msin; supi = imsi.mcc + imsi.mnc + imsi.msin;
Logger::amf_n1().debug("identity response : suci (%s)", supi.c_str()); Logger::amf_n1().debug("identity response : suci (%s)", supi.c_str());
} }
...@@ -570,10 +570,11 @@ void amf_n1::identity_response_handle( ...@@ -570,10 +570,11 @@ void amf_n1::identity_response_handle(
uc = amf_app_inst->ran_amf_id_2_ue_context(ue_context_key); uc = amf_app_inst->ran_amf_id_2_ue_context(ue_context_key);
// Update UE context // Update UE context
if (uc.get() != nullptr) { if (uc.get() != nullptr) {
uc.get()->supi = supi; uc.get()->supi = "imsi-" + supi;
// associate SUPI with UC // associate SUPI with UC
amf_app_inst->set_supi_2_ue_context(supi, uc); amf_app_inst->set_supi_2_ue_context(uc.get()->supi, uc);
Logger::amf_n1().debug("Update UC context, SUPI %s", supi.c_str()); Logger::amf_n1().debug(
"Update UC context, SUPI %s", uc.get()->supi.c_str());
} }
} }
......
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