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
0ed39237
Commit
0ed39237
authored
May 24, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for SMF Event type
parent
b9a2436f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
src/common/3gpp_29.508.h
src/common/3gpp_29.508.h
+13
-1
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+1
-1
No files found.
src/common/3gpp_29.508.h
View file @
0ed39237
...
...
@@ -34,6 +34,17 @@ typedef enum smf_event_e {
SMF_EVENT_FLEXCN
=
99
}
smf_event_t
;
static
std
::
string
smf_event_from_enum
(
smf_event_t
e
)
{
if
(
e
==
smf_event_t
::
SMF_EVENT_AC_TY_CH
)
return
"AC_TY_CH"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_UP_PATH_CH
)
return
"UP_PATH_CH"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_PDU_SES_REL
)
return
"PDU_SES_REL"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_PLMN_CH
)
return
"PLMN_CH"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_UE_IP_CH
)
return
"UE_IP_CH"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_DDDS
)
return
"DDDS"
;
if
(
e
==
smf_event_t
::
SMF_EVENT_FLEXCN
)
return
"FLEXCN"
;
return
""
;
}
static
const
std
::
vector
<
std
::
string
>
smf_event_e2str
=
{
"SMF_EVENT_UNKNOWN"
,
"Access Type Change"
,
...
...
@@ -41,7 +52,8 @@ static const std::vector<std::string> smf_event_e2str = {
"PDU Session Release"
,
"PLMN Change"
,
"UE IP address change"
,
"Downlink data delivery status"
};
"Downlink data delivery status"
,
"FlexCN"
};
enum
class
notification_method_e
{
PERIODIC
=
1
,
...
...
src/smf_app/smf_sbi.cpp
View file @
0ed39237
...
...
@@ -569,7 +569,7 @@ void smf_sbi::notify_subscribed_event(
json_data
[
"notifId"
]
=
i
.
get_notif_id
();
auto
event_notifs
=
nlohmann
::
json
::
array
();
nlohmann
::
json
event_notif
=
{};
event_notif
[
"event"
]
=
i
.
get_smf_event
(
);
event_notif
[
"event"
]
=
smf_event_from_enum
(
i
.
get_smf_event
()
);
event_notif
[
"pduSeId"
]
=
i
.
get_pdu_session_id
();
event_notif
[
"supi"
]
=
std
::
to_string
(
i
.
get_supi
());
...
...
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