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
54c1eb25
Commit
54c1eb25
authored
Mar 10, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update UE-related context after receiving Service Request msg
parent
4968a4f5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
src/amf-app/amf_app.cpp
src/amf-app/amf_app.cpp
+10
-0
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+11
-1
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
+7
-7
No files found.
src/amf-app/amf_app.cpp
View file @
54c1eb25
...
...
@@ -280,6 +280,16 @@ void amf_app::handle_itti_message(
set_ran_amf_id_2_ue_context
(
ue_context_key
,
uc
);
}
// Update AMF UE NGAP ID
std
::
shared_ptr
<
ue_ngap_context
>
unc
=
{};
if
(
!
amf_n2_inst
->
is_ran_ue_id_2_ue_ngap_context
(
itti_msg
.
ran_ue_ngap_id
))
{
Logger
::
amf_n1
().
error
(
"Could not find UE NGAP Context with ran_ue_ngap_id (0x%x)"
,
itti_msg
.
ran_ue_ngap_id
);
}
else
{
unc
.
get
()
->
amf_ue_ngap_id
=
amf_ue_ngap_id
;
}
if
(
uc
.
get
()
==
nullptr
)
{
Logger
::
amf_app
().
error
(
"Failed to create ue_context with ran_amf_id %s"
,
...
...
src/amf-app/amf_n1.cpp
View file @
54c1eb25
...
...
@@ -588,7 +588,17 @@ void amf_n1::service_request_handle(
uc
->
copy_pdu_sessions
(
old_uc
);
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
}
/*
//Update AMF UE NGAP ID
std::shared_ptr<ue_ngap_context> unc = {};
if (!amf_n2_inst->is_ran_ue_id_2_ue_ngap_context(ran_ue_ngap_id)) {
Logger::amf_n1().error(
"Could not find UE NGAP Context with ran_ue_ngap_id (0x%x)",
ran_ue_ngap_id);
} else {
unc.get()->amf_ue_ngap_id = amf_ue_ngap_id;
}
*/
// associate SUPI with UC
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
...
...
src/ngap/ngapMsgs/PduSessionResourceReleaseResponse.cpp
View file @
54c1eb25
...
...
@@ -111,7 +111,7 @@ void PduSessionResourceReleaseResponseMsg::setAmfUeNgapId(unsigned long id) {
ret
=
ASN_SEQUENCE_ADD
(
&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
,
ie
);
if
(
ret
!=
0
)
Logger
::
nas_mm
().
warn
(
"Encode AMF_UE_NGAP_ID IE error"
);
//free_wrapper((void**) &ie);
//
free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
...
...
@@ -138,7 +138,7 @@ void PduSessionResourceReleaseResponseMsg::setRanUeNgapId(
ret
=
ASN_SEQUENCE_ADD
(
&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
,
ie
);
if
(
ret
!=
0
)
Logger
::
nas_mm
().
warn
(
"Encode RAN_UE_NGAP_ID IE error"
);
//free_wrapper((void**) &ie);
//
free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
...
...
@@ -185,7 +185,7 @@ void PduSessionResourceReleaseResponseMsg::setPduSessionResourceReleasedList(
if
(
ret
!=
0
)
Logger
::
nas_mm
().
warn
(
"Encode PDUSessionResourceReleasedListRelRes IE error"
);
//free_wrapper((void**) &ie);
//
free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
...
...
@@ -231,7 +231,7 @@ void PduSessionResourceReleaseResponseMsg::setUserLocationInfoNR(
&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
,
ie
);
if
(
ret
!=
0
)
Logger
::
nas_mm
().
warn
(
"Encode UserLocationInformation IE error"
);
//free_wrapper((void**) &ie);
//
free_wrapper((void**) &ie);
}
//------------------------------------------------------------------------------
...
...
@@ -298,7 +298,7 @@ bool PduSessionResourceReleaseResponseMsg::decodefrompdu(
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
id
)
{
case
Ngap_ProtocolIE_ID_id_AMF_UE_NGAP_ID
:
{
if
(
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
criticality
==
Ngap_Criticality_
reject
&&
->
criticality
==
Ngap_Criticality_
ignore
&&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
value
.
present
==
Ngap_PDUSessionResourceReleaseResponseIEs__value_PR_AMF_UE_NGAP_ID
)
{
...
...
@@ -318,7 +318,7 @@ bool PduSessionResourceReleaseResponseMsg::decodefrompdu(
case
Ngap_ProtocolIE_ID_id_RAN_UE_NGAP_ID
:
{
if
(
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
criticality
==
Ngap_Criticality_
reject
&&
->
criticality
==
Ngap_Criticality_
ignore
&&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
value
.
present
==
Ngap_PDUSessionResourceReleaseResponseIEs__value_PR_RAN_UE_NGAP_ID
)
{
...
...
@@ -338,7 +338,7 @@ bool PduSessionResourceReleaseResponseMsg::decodefrompdu(
case
Ngap_ProtocolIE_ID_id_PDUSessionResourceReleasedListRelRes
:
{
if
(
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
criticality
==
Ngap_Criticality_
reject
&&
->
criticality
==
Ngap_Criticality_
ignore
&&
pduSessionResourceReleaseResponseIEs
->
protocolIEs
.
list
.
array
[
i
]
->
value
.
present
==
Ngap_PDUSessionResourceReleaseResponseIEs__value_PR_PDUSessionResourceReleasedListRelRes
)
{
...
...
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