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
4c95e448
Commit
4c95e448
authored
Feb 18, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NRF URI (from conf file)
parent
96c7338d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+3
-6
No files found.
src/amf-app/amf_n11.cpp
View file @
4c95e448
...
...
@@ -289,7 +289,7 @@ void amf_n11::handle_itti_message(itti_nsmf_pdusession_create_sm_context& smf) {
Logger
::
amf_n11
().
debug
(
"Handle ITTI SMF_PDU_SESSION_CREATE_SM_CTX"
);
if
(
!
amf_n1_inst
->
is_amf_ue_id_2_nas_context
(
smf
.
amf_ue_ngap_id
))
{
Logger
::
amf_n
2
().
error
(
Logger
::
amf_n
11
().
error
(
"No UE NAS context with amf_ue_ngap_id (0x%x)"
,
smf
.
amf_ue_ngap_id
);
return
;
}
...
...
@@ -340,7 +340,7 @@ void amf_n11::handle_itti_message(itti_nsmf_pdusession_create_sm_context& smf) {
psc
.
get
()
->
plmn
.
mcc
=
smf
.
plmn
.
mcc
;
psc
.
get
()
->
plmn
.
mnc
=
smf
.
plmn
.
mnc
;
Logger
::
amf_n1
().
debug
(
Logger
::
amf_n1
1
().
debug
(
"PDU Session Context, NSSAI SST (0x%x) SD %s"
,
psc
.
get
()
->
snssai
.
sST
,
psc
.
get
()
->
snssai
.
sD
.
c_str
());
...
...
@@ -1620,10 +1620,7 @@ bool amf_n11::get_nrf_uri(
if
(
!
amf_cfg
.
support_features
.
enable_nrf_selection
)
{
// Get NRF info from configuration file if available
if
(
amf_cfg
.
support_features
.
enable_external_nrf
)
{
nrf_uri
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
nrf_addr
.
ipv4_addr
)))
+
":"
+
std
::
to_string
(
amf_cfg
.
nrf_addr
.
port
)
+
"/nnrf-disc/"
+
amf_cfg
.
nrf_addr
.
api_version
+
"/nf-instances"
;
nrf_uri
=
amf_cfg
.
get_nrf_nf_discovery_service_uri
();
return
true
;
}
else
{
Logger
::
amf_n11
().
debug
(
"No NRF information from the configuration file"
);
...
...
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