Commit 06da6485 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for AMF UE NGAP ID

parent 852dd0a6
...@@ -287,6 +287,7 @@ void amf_app::handle_itti_message( ...@@ -287,6 +287,7 @@ void amf_app::handle_itti_message(
"Could not find UE NGAP Context with ran_ue_ngap_id (0x%x)", "Could not find UE NGAP Context with ran_ue_ngap_id (0x%x)",
itti_msg.ran_ue_ngap_id); itti_msg.ran_ue_ngap_id);
} else { } else {
unc = amf_n2_inst->ran_ue_id_2_ue_ngap_context(itti_msg.ran_ue_ngap_id);
unc.get()->amf_ue_ngap_id = amf_ue_ngap_id; unc.get()->amf_ue_ngap_id = amf_ue_ngap_id;
} }
......
...@@ -42,20 +42,24 @@ void statistics::display() { ...@@ -42,20 +42,24 @@ void statistics::display() {
"information-------------------------------------------|"); "information-------------------------------------------|");
Logger::amf_app().info( Logger::amf_app().info(
"| Index | Status | Global ID | gNB " "| Index | Status | Global ID | gNB "
"Name | PLMN | Supported TA list |"); "Name | PLMN |");
if (gnbs.size() == 0) { if (gnbs.size() == 0) {
Logger::amf_app().info( Logger::amf_app().info(
"| - | - | - | " "| - | - | - | "
"- | - | - |"); "- | |");
} }
int i = 1; int i = 1;
for (auto const& gnb : gnbs) { for (auto const& gnb : gnbs) {
Logger::amf_app().info( Logger::amf_app().info(
"| %d | Connected | 0x%x | %s " "| %d | Connected | 0x%x | %s "
" | %s, %s | %s |", " | %s, %s | ",
i, gnb.second.gnb_id, gnb.second.gnb_name.c_str(), i, gnb.second.gnb_id, gnb.second.gnb_name.c_str(),
gnb.second.mcc.c_str(), gnb.second.mnc.c_str(), gnb.second.mcc.c_str(), gnb.second.mnc.c_str());
Logger::amf_app().info(
"| Supported TA list %s "
" "
" |",
gnb.second.plmn_to_string().c_str()); gnb.second.plmn_to_string().c_str());
i++; i++;
} }
...@@ -78,7 +82,7 @@ void statistics::display() { ...@@ -78,7 +82,7 @@ void statistics::display() {
i = 0; i = 0;
for (auto const& ue : ue_infos) { for (auto const& ue : ue_infos) {
Logger::amf_app().info( Logger::amf_app().info(
"|%7d|%22s|%18s|%15s|%16d|%11d|%3s, %4s|%7d|", i + 1, "|%7d|%22s|%18s|%15s|%16d|%11d|%3s, %3s|%7d|", i + 1,
ue.second.registerStatus.c_str(), ue.second.imsi.c_str(), ue.second.registerStatus.c_str(), ue.second.imsi.c_str(),
ue.second.guti.c_str(), ue.second.ranid, ue.second.amfid, ue.second.guti.c_str(), ue.second.ranid, ue.second.amfid,
ue.second.mcc.c_str(), ue.second.mnc.c_str(), ue.second.cellId); ue.second.mcc.c_str(), ue.second.mnc.c_str(), ue.second.cellId);
......
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