Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
88db239f
Commit
88db239f
authored
Dec 16, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
bf10ae49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+0
-20
No files found.
src/amf-app/amf_n11.cpp
View file @
88db239f
...
...
@@ -540,28 +540,8 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
auto
report_lists
=
nlohmann
::
json
::
array
();
nlohmann
::
json
report
=
{};
// std::vector<amf_event_report_t> reports = i.get_reports();
std
::
vector
<
oai
::
amf
::
model
::
AmfEventReport
>
event_reports
=
{};
i
.
get_reports
(
event_reports
);
/*
for (auto r : reports) {
report["type"] =
amf_event_type_e2str.at(static_cast<uint8_t>(r.m_type));
report["state"]["active"] = "TRUE";
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; report["timeStamp"] =
std::to_string(tv_ntp); report_lists.push_back(report);
}
*/
for
(
auto
r
:
event_reports
)
{
report
[
"type"
]
=
r
.
getType
().
get_value
();
report
[
"state"
][
"active"
]
=
"TRUE"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment