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
38a0a08b
Commit
38a0a08b
authored
Jul 23, 2021
by
liuyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add smf discover
parent
2fdb1f2e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
27 deletions
+155
-27
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+146
-25
src/amf-app/amf_n11.hpp
src/amf-app/amf_n11.hpp
+7
-2
src/contexts/pdu_session_context.hpp
src/contexts/pdu_session_context.hpp
+2
-0
No files found.
src/amf-app/amf_n11.cpp
View file @
38a0a08b
This diff is collapsed.
Click to expand it.
src/amf-app/amf_n11.hpp
View file @
38a0a08b
...
...
@@ -48,7 +48,8 @@ class amf_n11 {
void
handle_itti_message
(
itti_smf_services_consumer
&
);
void
handle_pdu_session_initial_request
(
std
::
string
supi
,
std
::
shared_ptr
<
pdu_session_context
>
psc
,
std
::
string
smf_addr
,
bstring
sm_msg
,
std
::
string
dnn
);
std
::
string
smf_addr
,
std
::
string
smf_api_version
,
bstring
sm_msg
,
std
::
string
dnn
);
void
handle_itti_message
(
itti_nsmf_pdusession_update_sm_context
&
itti_msg
);
void
handle_itti_message
(
itti_nsmf_pdusession_release_sm_context
&
itti_msg
);
void
handle_itti_message
(
itti_pdu_session_resource_setup_response
&
itti_msg
);
...
...
@@ -66,7 +67,8 @@ class amf_n11 {
const
std
::
string
&
supi
,
std
::
shared_ptr
<
pdu_session_context
>
psc
);
std
::
map
<
uint8_t
,
std
::
string
>
pduid2supi
;
bool
smf_selection_from_configuration
(
std
::
string
&
smf_addr
);
bool
smf_selection_from_configuration
(
std
::
string
&
smf_addr
);
bool
smf_selection_from_context
(
std
::
string
&
smf_addr
);
void
handle_post_sm_context_response_error_400
();
void
handle_post_sm_context_response_error
(
...
...
@@ -77,6 +79,9 @@ class amf_n11 {
std
::
string
remoteUri
,
std
::
string
jsonData
,
std
::
string
n1SmMsg
,
std
::
string
n2SmMsg
,
std
::
string
supi
,
uint8_t
pdu_session_id
);
bool
discover_smf
(
std
::
string
&
smf_addr
,
std
::
string
&
smf_api_version
,
const
snssai_t
snssai
,
const
plmn_t
plmn
,
const
std
::
string
dnn
);
void
register_nf_instance
(
std
::
shared_ptr
<
itti_n11_register_nf_instance_request
>
msg
);
...
...
src/contexts/pdu_session_context.hpp
View file @
38a0a08b
...
...
@@ -69,6 +69,8 @@ class pdu_session_context {
bstring
n1sm
;
bool
isn1sm_avaliable
;
std
::
string
dnn
;
std
::
string
smf_addr
;
std
::
string
smf_api_version
;
std
::
string
remote_smf_addr
[
0
];
//"192.168.12.10:8080"
bool
smf_available
;
std
::
string
location
;
...
...
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