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
3d4eec0c
Commit
3d4eec0c
authored
Feb 08, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix smContextStatusUri for PDU Session Establishment Request
parent
ba1eaa2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+3
-2
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+6
-2
No files found.
src/amf-app/amf_n1.cpp
View file @
3d4eec0c
...
...
@@ -599,7 +599,7 @@ void amf_n1::service_request_handle(
//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
());
"Cannot get pdu session information with supi
(%s)"
,
supi
.
c_str
());
if
(
amf_n11_inst
->
is_supi_to_pdu_ctx
(
supi
))
{
psc
.
get
()
->
isn2sm_avaliable
=
true
;
}
...
...
@@ -839,12 +839,13 @@ void amf_n1::registration_request_handle(
nc
.
get
()
->
amf_ue_ngap_id
=
amf_ue_ngap_id
;
nc
.
get
()
->
serving_network
=
snn
;
// Update UE conext
// Update UE con
t
ext
if
(
uc
.
get
()
!=
nullptr
)
{
std
::
string
supi
=
"imsi-"
+
nc
.
get
()
->
imsi
;
uc
.
get
()
->
supi
=
supi
;
// associate SUPI with UC
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
Logger
::
amf_n1
().
debug
(
"Update UC context, SUPI %s"
,
supi
.
c_str
());
}
// Check 5GS_Registration_type IE (Mandatory IE)
...
...
src/amf-app/amf_n11.cpp
View file @
3d4eec0c
...
...
@@ -238,7 +238,8 @@ 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
set_supi_to_pdu_ctx
(
supi
,
psc
);
// TODO: should be removed
Logger
::
amf_n11
().
debug
(
"Create a PDU Session Context"
);
}
pduid2supi
[
smf
.
pdu_sess_id
]
=
supi
;
...
...
@@ -402,7 +403,10 @@ void amf_n11::handle_pdu_session_initial_request(
psc
.
get
()
->
plmn
.
mnc
;
pdu_session_establishment_request
[
"anType"
]
=
"3GPP_ACCESS"
;
// TODO
pdu_session_establishment_request
[
"smContextStatusUri"
]
=
"smContextStatusUri"
;
"http://"
+
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
amf_cfg
.
n11
.
addr4
)))
+
"/nsmf-pdusession/callback/"
+
supi
+
"/"
+
std
::
to_string
(
psc
.
get
()
->
pdu_session_id
);
pdu_session_establishment_request
[
"n1MessageContainer"
][
"n1MessageClass"
]
=
"SM"
;
...
...
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