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-Simple
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
CommunityXG
OpenXG-AMF-Simple
Commits
8e7bd952
Commit
8e7bd952
authored
Sep 24, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix to update UE state and display correctly
parent
c2f91a23
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-1
src/amf-app/amf_statistics.cpp
src/amf-app/amf_statistics.cpp
+2
-1
No files found.
src/amf-app/amf_n1.cpp
View file @
8e7bd952
...
...
@@ -508,7 +508,7 @@ void amf_n1::registration_request_handle(bool isNasSig, std::shared_ptr<nas_cont
ue_info_t
ueItem
;
//update_ue_information_statics(ueItem, "CM-CONNECTED", "REGISTRATION-INITIATING", ran_ue_ngap_id, amf_ue_ngap_id, nc.get()->imsi, "", uc.get()->cgi.mcc, uc.get()->cgi.mnc, uc.get()->cgi.nrCellID);
ueItem
.
connStatus
=
"5GMM-CONNECTED"
;
//"CM-CONNECTED";
ueItem
.
registerStatus
=
"5GMM-REG
ISTRATION
-INITIATED"
;
//5GMM-COMMON-PROCEDURE-INITIATED
ueItem
.
registerStatus
=
"5GMM-REG-INITIATED"
;
//5GMM-COMMON-PROCEDURE-INITIATED
ueItem
.
ranid
=
ran_ue_ngap_id
;
ueItem
.
amfid
=
amf_ue_ngap_id
;
ueItem
.
imsi
=
nc
.
get
()
->
imsi
;
...
...
src/amf-app/amf_statistics.cpp
View file @
8e7bd952
...
...
@@ -60,7 +60,7 @@ void statistics::display() {
int
i
=
0
;
for
(
auto
const
&
ue
:
ue_infos
)
{
Logger
::
amf_app
().
info
(
"|%7d|%22s|
19%
s|%15s|%16d|%11d|%9s|%7d|"
,
i
+
1
,
ue
.
second
.
registerStatus
.
c_str
(),
ue
.
second
.
imsi
.
c_str
(),
ue
.
second
.
guti
.
c_str
(),
ue
.
second
.
ranid
,
ue
.
second
.
amfid
,
(
ue
.
second
.
mcc
+
ue
.
second
.
mnc
).
c_str
(),
ue
.
second
.
cellId
);
Logger
::
amf_app
().
info
(
"|%7d|%22s|
%18
s|%15s|%16d|%11d|%9s|%7d|"
,
i
+
1
,
ue
.
second
.
registerStatus
.
c_str
(),
ue
.
second
.
imsi
.
c_str
(),
ue
.
second
.
guti
.
c_str
(),
ue
.
second
.
ranid
,
ue
.
second
.
amfid
,
(
ue
.
second
.
mcc
+
ue
.
second
.
mnc
).
c_str
(),
ue
.
second
.
cellId
);
i
++
;
}
Logger
::
amf_app
().
info
(
"|----------------------------------------------------------------------------------------------------------------|"
);
...
...
@@ -95,6 +95,7 @@ void statistics::update_5gmm_state(const std::string& imsi, const std::string& s
if
(
ue_infos
.
count
(
imsi
)
>
0
)
{
ue_info_t
ue_info
=
ue_infos
.
at
(
imsi
);
ue_info
.
registerStatus
=
state
;
ue_infos
.
erase
(
ue_info
.
imsi
);
ue_infos
.
insert
(
std
::
pair
<
std
::
string
,
ue_info_t
>
(
imsi
,
ue_info
));
Logger
::
amf_app
().
debug
(
"Update UE State (IMSI %s, State %s) success"
,
imsi
.
c_str
(),
state
.
c_str
());
}
else
{
...
...
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