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
f5b4b240
Commit
f5b4b240
authored
Oct 15, 2022
by
KARIM BOUTIBA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ngap_ids to registration report to map the user with the RAN
parent
8a7b149e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
src/amf-app/amf_event_sig.hpp
src/amf-app/amf_event_sig.hpp
+1
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+6
-14
src/amf-app/amf_n1.hpp
src/amf-app/amf_n1.hpp
+3
-1
No files found.
src/amf-app/amf_event_sig.hpp
View file @
f5b4b240
...
...
@@ -52,7 +52,7 @@ typedef bs2::signal_type<
// Signal for UE Registration State Report
// SUPI, registration state, HTTP version
typedef
bs2
::
signal_type
<
void
(
std
::
string
,
uint8_t
,
uint8_t
),
void
(
std
::
string
,
uint8_t
,
uint8_t
,
uint32_t
,
long
),
bs2
::
keywords
::
mutex_type
<
bs2
::
dummy_mutex
>>::
type
ue_registration_state_sig_t
;
...
...
src/amf-app/amf_n1.cpp
View file @
f5b4b240
...
...
@@ -165,7 +165,7 @@ amf_n1::amf_n1()
// EventExposure: subscribe to UE Registration State change
ee_ue_registration_state_connection
=
event_sub
.
subscribe_ue_registration_state
(
boost
::
bind
(
&
amf_n1
::
handle_ue_registration_state_change
,
this
,
_1
,
_2
,
_3
));
&
amf_n1
::
handle_ue_registration_state_change
,
this
,
_1
,
_2
,
_3
,
_4
,
_5
));
// EventExposure: subscribe to UE Connectivity State change
ee_ue_connectivity_state_connection
=
...
...
@@ -2632,22 +2632,12 @@ void amf_n1::security_mode_complete_handle(
}
}
// Trigger UE Registration Status Notify
string
supi
=
"imsi-"
+
nc
->
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_REGISTERED
,
1
);
event_sub
.
ue_registration_state
(
supi
,
_5GMM_REGISTERED
,
1
,
ran_ue_ngap_id
,
amf_ue_ngap_id
);
// Trigger UE Connectivity Status Notify
Logger
::
amf_n1
().
debug
(
...
...
@@ -3119,7 +3109,7 @@ void amf_n1::ue_initiate_de_registration_handle(
Logger
::
amf_n1
().
debug
(
"Signal the UE Registration State Event notification for SUPI %s"
,
supi
.
c_str
());
event_sub
.
ue_registration_state
(
supi
,
_5GMM_DEREGISTERED
,
1
);
event_sub
.
ue_registration_state
(
supi
,
_5GMM_DEREGISTERED
,
1
,
ran_ue_ngap_id
,
amf_ue_ngap_id
);
// Trigger UE Loss of Connectivity Status Notify
Logger
::
amf_n1
().
debug
(
...
...
@@ -3660,7 +3650,7 @@ void amf_n1::handle_ue_reachability_status_change(
//------------------------------------------------------------------------------
void
amf_n1
::
handle_ue_registration_state_change
(
std
::
string
supi
,
uint8_t
status
,
uint8_t
http_version
)
{
std
::
string
supi
,
uint8_t
status
,
uint8_t
http_version
,
uint32_t
ran_ue_ngap_id
,
long
amf_ue_ngap_id
)
{
Logger
::
amf_n1
().
debug
(
"Send request to SBI to trigger UE Registration State Report (SUPI "
"%s )"
,
...
...
@@ -3721,6 +3711,8 @@ void amf_n1::handle_ue_registration_state_change(
event_report
.
setRmInfoList
(
rm_infos
);
event_report
.
setSupi
(
supi
);
event_report
.
setRanUeNgapId
(
ran_ue_ngap_id
);
event_report
.
setAmfUeNgapId
(
amf_ue_ngap_id
);
ev_notif
.
add_report
(
event_report
);
itti_msg
->
event_notifs
.
push_back
(
ev_notif
);
...
...
src/amf-app/amf_n1.hpp
View file @
f5b4b240
...
...
@@ -800,10 +800,12 @@ class amf_n1 {
* @param [std::string] supi: SUPI
* @param [uint8_t] status: Registration status
* @param [uint8_t] http_version: HTTP version (for the notification)
* @param [uint32_t] ran_ue_ngap_id: RAN UE NGAP ID
* @param [long] amf_ue_ngap_id: AMF UE NGAP ID
* @return void
*/
void
handle_ue_registration_state_change
(
std
::
string
supi
,
uint8_t
status
,
uint8_t
http_version
);
std
::
string
supi
,
uint8_t
status
,
uint8_t
http_version
,
uint32_t
ran_ue_ngap_id
,
long
amf_ue_ngap_id
);
/*
* Handle the UE Connectivity State Change event to trigger the notification
...
...
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