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
33f0817c
Commit
33f0817c
authored
Jul 21, 2022
by
Arina Prostakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set Report fields and fix Registration Report
parent
b4d34c39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+5
-15
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+12
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
33f0817c
...
@@ -775,13 +775,6 @@ void amf_n1::identity_response_handle(
...
@@ -775,13 +775,6 @@ void amf_n1::identity_response_handle(
set_5gmm_state
(
nc
,
_5GMM_COMMON_PROCEDURE_INITIATED
);
set_5gmm_state
(
nc
,
_5GMM_COMMON_PROCEDURE_INITIATED
);
// stacs.display();
// stacs.display();
string
supi
=
"imsi-"
+
nc
.
get
()
->
imsi
;
Logger
::
amf_n1
().
debug
(
"Signal the UE Registration State Event notification for SUPI %s"
,
supi
.
c_str
());
event_sub
.
ue_registration_state
(
supi
,
_5GMM_COMMON_PROCEDURE_INITIATED
,
1
);
nc
.
get
()
->
is_stacs_available
=
true
;
nc
.
get
()
->
is_stacs_available
=
true
;
}
}
// TODO: Trigger UE Location Report
// TODO: Trigger UE Location Report
...
@@ -1104,13 +1097,6 @@ void amf_n1::registration_request_handle(
...
@@ -1104,13 +1097,6 @@ void amf_n1::registration_request_handle(
set_5gmm_state
(
nc
,
_5GMM_COMMON_PROCEDURE_INITIATED
);
set_5gmm_state
(
nc
,
_5GMM_COMMON_PROCEDURE_INITIATED
);
// stacs.display();
// stacs.display();
string
supi
=
"imsi-"
+
nc
.
get
()
->
imsi
;
Logger
::
amf_n1
().
debug
(
"Signal the UE Registration State Event notification for SUPI %s"
,
supi
.
c_str
());
event_sub
.
ue_registration_state
(
supi
,
_5GMM_COMMON_PROCEDURE_INITIATED
,
1
);
nc
.
get
()
->
is_stacs_available
=
true
;
nc
.
get
()
->
is_stacs_available
=
true
;
}
}
}
}
...
@@ -3647,7 +3633,11 @@ void amf_n1::handle_ue_registration_state_change(
...
@@ -3647,7 +3633,11 @@ void amf_n1::handle_ue_registration_state_change(
std
::
vector
<
oai
::
amf
::
model
::
RmInfo
>
rm_infos
;
std
::
vector
<
oai
::
amf
::
model
::
RmInfo
>
rm_infos
;
oai
::
amf
::
model
::
RmInfo
rm_info
=
{};
oai
::
amf
::
model
::
RmInfo
rm_info
=
{};
oai
::
amf
::
model
::
RmState
rm_state
=
{};
oai
::
amf
::
model
::
RmState
rm_state
=
{};
rm_state
.
set_value
(
"REGISTERED"
);
if
(
status
==
_5GMM_DEREGISTERED
)
rm_state
.
set_value
(
"DEREGISTERED"
);
else
if
(
status
==
_5GMM_REGISTERED
)
rm_state
.
set_value
(
"REGISTERED"
);
rm_info
.
setRmState
(
rm_state
);
rm_info
.
setRmState
(
rm_state
);
oai
::
amf
::
model
::
AccessType
access_type
=
{};
oai
::
amf
::
model
::
AccessType
access_type
=
{};
...
...
src/amf-app/amf_n11.cpp
View file @
33f0817c
...
@@ -614,9 +614,21 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
...
@@ -614,9 +614,21 @@ void amf_n11::handle_itti_message(itti_sbi_notify_subscribed_event& itti_msg) {
if
(
r
.
supiIsSet
())
{
if
(
r
.
supiIsSet
())
{
report
[
"supi"
]
=
r
.
getSupi
();
report
[
"supi"
]
=
r
.
getSupi
();
}
}
if
(
r
.
locationIsSet
())
{
report
[
"location"
]
=
r
.
getLocation
();
// get eutraLocation, nrLocation, n3gaLocation?
}
if
(
r
.
rmInfoListIsSet
())
{
report
[
"rmInfoList"
]
=
r
.
getRmInfoList
();
}
if
(
r
.
cmInfoListIsSet
())
{
report
[
"cmInfoList"
]
=
r
.
getCmInfoList
();
}
if
(
r
.
reachabilityIsSet
())
{
if
(
r
.
reachabilityIsSet
())
{
report
[
"reachability"
]
=
r
.
getReachability
().
get_value
();
report
[
"reachability"
]
=
r
.
getReachability
().
get_value
();
}
}
if
(
r
.
lossOfConnectReasonIsSet
())
{
report
[
"lossOfConnectReason"
]
=
r
.
getLossOfConnectReason
().
get_value
();
}
// timestamp
// timestamp
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
...
...
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