Commit b9aaf768 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Add info for UE Reachability Report

parent e0ccb169
......@@ -2837,6 +2837,12 @@ void amf_n1::handle_ue_reachability_status_change(
ev_notif.set_notify_correlation_id(i.get()->notify_correlation_id);
// ev_notif.set_subs_change_notify_correlation_id(i.get()->notify_uri);
amf_event_report_t report = {};
// TODO
report.m_type = REACHABILITY_REPORT;
report.m_reachability_is_set = true;
report.m_reachability = REACHABLE; // TODO
report.m_supi_is_set = true;
report.m_supi = supi;
ev_notif.add_report(report);
itti_msg->event_notifs.push_back(ev_notif);
}
......
......@@ -474,6 +474,10 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
if (r.m_supi_is_set) {
report["supi"] = r.m_supi; // TODO
}
if (r.m_reachability_is_set) {
report["reachability"] = r.m_reachability;
}
// timestamp
std::time_t time_epoch_ntp = std::time(nullptr);
uint64_t tv_ntp = time_epoch_ntp + SECONDS_SINCE_FIRST_EPOCH;
......
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