Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
cbe3812b
Commit
cbe3812b
authored
May 24, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for UE Ipv4 addr and customiezed data
parent
db8776ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+12
-4
No files found.
src/smf_app/smf_sbi.cpp
View file @
cbe3812b
...
...
@@ -572,10 +572,18 @@ void smf_sbi::notify_subscribed_event(
event_notif
[
"event"
]
=
i
.
get_smf_event
();
event_notif
[
"pduSeId"
]
=
i
.
get_pdu_session_id
();
event_notif
[
"supi"
]
=
std
::
to_string
(
i
.
get_supi
());
//customized data
nlohmann
::
json
customized_data
=
{};
if
(
i
.
is_ad_ipv4_addr_is_set
())
{
event_notif
[
"adIpv4Addr"
]
=
i
.
get_ad_ipv4_addr
();
}
if
(
i
.
is_re_ipv4_addr_is_set
())
{
event_notif
[
"reIpv4Addr"
]
=
i
.
get_re_ipv4_addr
();
}
// customized data
nlohmann
::
json
customized_data
=
{};
i
.
get_custom_info
(
customized_data
);
event_notif
[
"customized_data"
]
=
customized_data
;
if
(
!
customized_data
.
is_null
())
event_notif
[
"customized_data"
]
=
customized_data
;
// timestamp
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
uint64_t
tv_ntp
=
time_epoch_ntp
+
SECONDS_SINCE_FIRST_EPOCH
;
...
...
@@ -583,7 +591,7 @@ void smf_sbi::notify_subscribed_event(
event_notifs
.
push_back
(
event_notif
);
json_data
[
"eventNotifs"
]
=
event_notifs
;
std
::
string
body
=
json_data
.
dump
();
std
::
string
body
=
json_data
.
dump
();
bodys
.
push_back
(
body
);
}
...
...
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