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
ba1eaa2d
Commit
ba1eaa2d
authored
Feb 08, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
7ab275d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
61 deletions
+2
-61
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+1
-0
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+1
-42
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+0
-10
src/sbi/amf_server/impl/N1N2MessageCollectionDocumentApiImpl.cpp
.../amf_server/impl/N1N2MessageCollectionDocumentApiImpl.cpp
+0
-9
No files found.
src/amf-app/amf_n1.cpp
View file @
ba1eaa2d
...
...
@@ -596,6 +596,7 @@ void amf_n1::service_request_handle(
"Cannot get pdu_session_context with SUPI %s"
,
supi
.
c_str
());
}
//TODO: is_supi_to_pdu_ctx should be removed
if
(
!
amf_n11_inst
->
is_supi_to_pdu_ctx
(
supi
)
||
!
psc
.
get
()
->
isn2sm_avaliable
)
{
Logger
::
amf_n1
().
error
(
"Cannot get pdu session information with supi(%s)"
,
supi
.
c_str
());
...
...
src/amf-app/amf_n11.cpp
View file @
ba1eaa2d
...
...
@@ -179,16 +179,6 @@ void amf_n11::handle_itti_message(
supi
.
c_str
());
return
;
}
/*
if (is_supi_to_pdu_ctx(supi)) {
psc = supi_to_pdu_ctx(supi);
} else {
Logger::amf_n11().error(
"Could not find psu_session_context with SUPI %s, Failed",
supi.c_str());
return;
}
*/
std
::
string
smf_addr
;
std
::
string
smf_api_version
;
...
...
@@ -248,16 +238,9 @@ void amf_n11::handle_itti_message(itti_smf_services_consumer& smf) {
if
(
!
uc
.
get
()
->
find_pdu_session_context
(
smf
.
pdu_sess_id
,
psc
))
{
psc
=
std
::
shared_ptr
<
pdu_session_context
>
(
new
pdu_session_context
());
uc
.
get
()
->
add_pdu_session_context
(
smf
.
pdu_sess_id
,
psc
);
set_supi_to_pdu_ctx
(
supi
,
psc
);
//TODO: should be removed
}
/* //std::shared_ptr<pdu_session_context> psc;
if (is_supi_to_pdu_ctx(supi)) {
psc = supi_to_pdu_ctx(supi);
} else {
psc = std::shared_ptr<pdu_session_context>(new pdu_session_context());
set_supi_to_pdu_ctx(supi, psc);
}
*/
pduid2supi
[
smf
.
pdu_sess_id
]
=
supi
;
psc
.
get
()
->
amf_ue_ngap_id
=
nc
.
get
()
->
amf_ue_ngap_id
;
psc
.
get
()
->
ran_ue_ngap_id
=
nc
.
get
()
->
ran_ue_ngap_id
;
...
...
@@ -279,20 +262,6 @@ void amf_n11::handle_itti_message(itti_smf_services_consumer& smf) {
Logger
::
amf_n11
().
debug
(
"Requested DNN: %s"
,
dnn
.
c_str
());
psc
.
get
()
->
dnn
=
dnn
;
/* std::string smf_addr;
std::string smf_api_version;
if (!psc.get()->smf_available) {
if (!smf_selection_from_configuration(smf_addr, smf_api_version)) {
Logger::amf_n11().error("No candidate for SMF is available");
return;
}
} else {
smf_addr = psc->smf_addr;
smf_api_version = psc->smf_api_version;
// smf_selection_from_context(smf_addr, smf_api_version);
}
*/
std
::
string
smf_addr
;
std
::
string
smf_api_version
;
if
(
!
psc
.
get
()
->
smf_available
)
{
...
...
@@ -553,21 +522,11 @@ void amf_n11::curl_http_client(
std
::
string
body
;
std
::
shared_ptr
<
pdu_session_context
>
psc
;
// TTN: Should be replace by new mechanism to support multiple PDU sessions
if
(
!
amf_app_inst
->
find_pdu_session_context
(
supi
,
pdu_session_id
,
psc
))
{
Logger
::
amf_n11
().
warn
(
"PDU Session context for SUPI %s doesn't exit!"
,
supi
.
c_str
());
// TODO:
}
/*
if (is_supi_to_pdu_ctx(supi)) {
psc = supi_to_pdu_ctx(supi);
} else {
Logger::amf_n11().warn(
"PDU Session context for SUPI %s doesn't exit!", supi.c_str());
// TODO:
}
*/
if
((
n1SmMsg
.
size
()
>
0
)
and
(
n2SmMsg
.
size
()
>
0
))
{
// prepare the body content for Curl
...
...
src/amf-app/amf_n2.cpp
View file @
ba1eaa2d
...
...
@@ -704,16 +704,6 @@ void amf_n2::handle_itti_message(
"Cannot get pdu_session_context with SUPI (%s)"
,
supi
.
c_str
());
}
// TODO: REMOVE supi_to_pdu_ctx
/*
if (amf_n11_inst->is_supi_to_pdu_ctx(supi)) {
psc = amf_n11_inst->supi_to_pdu_ctx(supi);
} else {
Logger::amf_n2().warn(
"Cannot get pdu_session_context with SUPI (%s)", supi.c_str());
}
*/
// item.s_nssai.sst = std::to_string(psc.get()->snssai.sST);
// item.s_nssai.sd = psc.get()->snssai.sD;
...
...
src/sbi/amf_server/impl/N1N2MessageCollectionDocumentApiImpl.cpp
View file @
ba1eaa2d
...
...
@@ -86,15 +86,6 @@ void N1N2MessageCollectionDocumentApiImpl::n1_n2_message_transfer(
"Cannot get pdu_session_context with SUPI (%s)"
,
supi
.
c_str
());
}
// TODO: REMOVE supi_to_pdu_ctx
/*
if(amf_n11_inst->is_supi_to_pdu_ctx(supi)){
psc = amf_n11_inst->supi_to_pdu_ctx(supi);
}else{
Logger::amf_server().error("Cannot get pdu_session_context with SUPI
(%s)", supi.c_str());
}
*/
bstring
n1sm
;
msg_str_2_msg_hex
(
n1sm_str
.
substr
(
0
,
n1sm_str
.
length
()),
n1sm
);
// TODO: verify n1sm_length
...
...
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