Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
OpenXG
OpenXG-SMF
Commits
10120aa7
Commit
10120aa7
authored
Jul 27, 2021
by
Niuhaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add amf port
parent
54f4e234
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
etc/smf.conf
etc/smf.conf
+3
-3
src/smf_app/.smf_context.cpp.swp
src/smf_app/.smf_context.cpp.swp
+0
-0
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+3
-3
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+1
-1
No files found.
etc/smf.conf
View file @
10120aa7
...
...
@@ -29,7 +29,7 @@ SMF =
N4
:
{
# SMF binded interface for N4 communication (UPF)
INTERFACE_NAME
=
"ens3
3
"
;
# YOUR NETWORK CONFIG HERE
INTERFACE_NAME
=
"ens3
4
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"read"
;
PORT
=
8805
;
};
...
...
@@ -79,7 +79,7 @@ SMF =
{
# STRING, {"yes", "no"},
REGISTER_NRF
=
"yes"
;
# Set to yes if SMF resgisters to an NRF
DISCOVER_UPF
=
"
yes
"
;
# Set to yes to enable UPF discovery and selection
DISCOVER_UPF
=
"
no
"
;
# Set to yes to enable UPF discovery and selection
FORCE_PUSH_PROTOCOL_CONFIGURATION_OPTIONS
=
"no"
;
# Non standard feature, normally should be set to "no",
# but you may need to set to yes for UE that do not explicitly request a PDN address through NAS signalling
USE_LOCAL_SUBSCRIPTION_INFO
=
"yes"
;
# Set to yes if SMF uses local subscription information instead of from an UDM
...
...
@@ -107,7 +107,7 @@ SMF =
};
UPF_LIST
= (
{
IPV4_ADDRESS
=
"192.168.1
0.10
"
;}
# YOUR UPF CONFIG HERE
{
IPV4_ADDRESS
=
"192.168.1
99.201
"
;}
# YOUR UPF CONFIG HERE
);
LOCAL_CONFIGURATION
:
...
...
src/smf_app/.smf_context.cpp.swp
0 → 100644
View file @
10120aa7
File added
src/smf_app/smf_context.cpp
View file @
10120aa7
...
...
@@ -785,7 +785,7 @@ void smf_context::handle_itti_msg(
// std::string(inet_ntoa(
// *((struct in_addr*) &smf_cfg.amf_addr.ipv4_addr))) +
//":" + std::to_string(smf_cfg.amf_addr.port) +
sp
.
get
()
->
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
sp
.
get
()
->
get_amf_addr
()
+
":8282"
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
...
...
@@ -1625,7 +1625,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// inet_ntoa(*((struct in_addr*) &smf_cfg.amf_addr.ipv4_addr))) +
// ":" + std::to_string(smf_cfg.amf_addr.port) + NAMF_COMMUNICATION_BASE
// +
sp
.
get
()
->
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
sp
.
get
()
->
get_amf_addr
()
+
":8282"
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
...
...
@@ -2823,7 +2823,7 @@ void smf_context::handle_pdu_session_modification_network_requested(
// std::string(inet_ntoa(*((struct in_addr*)
// &smf_cfg.amf_addr.ipv4_addr))) +
//":" + std::to_string(smf_cfg.amf_addr.port) + NAMF_COMMUNICATION_BASE +
sp
.
get
()
->
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
sp
.
get
()
->
get_amf_addr
()
+
":8282"
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
...
...
src/smf_app/smf_procedure.cpp
View file @
10120aa7
...
...
@@ -444,7 +444,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
// std::string(inet_ntoa(*((struct in_addr*)
// &smf_cfg.amf_addr.ipv4_addr))) +
//":" + std::to_string(smf_cfg.amf_addr.port) + NAMF_COMMUNICATION_BASE +
sps
.
get
()
->
get_amf_addr
()
+
NAMF_COMMUNICATION_BASE
+
sps
.
get
()
->
get_amf_addr
()
+
":8282"
+
NAMF_COMMUNICATION_BASE
+
smf_cfg
.
amf_addr
.
api_version
+
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
...
...
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