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
51e9d93e
Commit
51e9d93e
authored
Aug 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process Handover Required
parent
e975eb79
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
9 deletions
+32
-9
src/amf-app/amf_n2.cpp
src/amf-app/amf_n2.cpp
+13
-1
src/ngap/ngapIEs/GlobalgNBId.cpp
src/ngap/ngapIEs/GlobalgNBId.cpp
+2
-2
src/ngap/ngapIEs/TAI.cpp
src/ngap/ngapIEs/TAI.cpp
+2
-2
src/ngap/ngapMsgs/HandoverRequiredMsg.cpp
src/ngap/ngapMsgs/HandoverRequiredMsg.cpp
+15
-4
No files found.
src/amf-app/amf_n2.cpp
View file @
51e9d93e
...
...
@@ -1151,6 +1151,12 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
return
false
;
}
Logger
::
amf_n2
().
debug
(
"Cause, Choice of Cause %d, Cause %ld"
,
(
int
)
itti_msg
.
handoverReq
->
getChoiceOfCause
(),
itti_msg
.
handoverReq
->
getCauseValue
());
/*
if (itti_msg.handoverReq->getChoiceOfCause() != Ngap_Cause_PR_radioNetwork) {
Logger::amf_n2().error("CHOICE Cause Group is not supported");
return false;
...
...
@@ -1169,6 +1175,11 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
"Ngap_DirectForwardingPathAvailability_direct_path_available!");
return false;
}
*/
Logger
::
amf_n2
().
debug
(
"DirectForwardingPathAvailability %d"
,
itti_msg
.
handoverReq
->
getDirectForwardingPathAvailability
());
unc
.
get
()
->
gnb_assoc_id
=
itti_msg
.
assoc_id
;
unc
.
get
()
->
ncc
++
;
...
...
@@ -1194,7 +1205,8 @@ bool amf_n2::handle_itti_message(itti_handover_required& itti_msg) {
PlmnId
*
plmnOfTAI
=
new
PlmnId
();
TAC
*
tac
=
new
TAC
();
tai
->
getTAI
(
plmnOfTAI
,
tac
);
string
mccOfselectTAI
,
mncOfselectTAI
;
string
mccOfselectTAI
=
{};
string
mncOfselectTAI
=
{};
plmn
->
getMcc
(
mccOfselectTAI
);
plmn
->
getMnc
(
mncOfselectTAI
);
Logger
::
amf_n2
().
debug
(
...
...
src/ngap/ngapIEs/GlobalgNBId.cpp
View file @
51e9d93e
...
...
@@ -68,7 +68,7 @@ bool GlobalgNBId::decodefromGlobalgNBId(Ngap_GlobalGNB_ID_t* globalgnbid) {
//------------------------------------------------------------------------------
void
GlobalgNBId
::
getGlobalgNBId
(
PlmnId
*&
plmn
,
GNB_ID
*&
gnbid
)
{
plmn
=
plmnId
;
gnbid
=
gNB_ID
;
if
(
plmnId
)
plmn
=
plmnId
;
if
(
gNB_ID
)
gnbid
=
gNB_ID
;
}
}
// namespace ngap
src/ngap/ngapIEs/TAI.cpp
View file @
51e9d93e
...
...
@@ -68,7 +68,7 @@ bool TAI::decodefromTAI(Ngap_TAI_t* tai) {
//------------------------------------------------------------------------------
void
TAI
::
getTAI
(
PlmnId
*&
m_plmnId
,
TAC
*&
m_tac
)
{
m_plmnId
=
plmnId
;
m_tac
=
tac
;
if
(
plmnId
)
m_plmnId
=
plmnId
;
if
(
tac
)
m_tac
=
tac
;
}
}
// namespace ngap
src/ngap/ngapMsgs/HandoverRequiredMsg.cpp
View file @
51e9d93e
...
...
@@ -97,14 +97,25 @@ long HandoverRequiredMsg::getCauseValue() {
//------------------------------------------------------------------------------
void
HandoverRequiredMsg
::
getGlobalRanNodeId
(
GlobalgNBId
*&
ptr
)
{
if
(
ptr
)
ptr
->
decodefromGlobalgNBId
(
targetid
->
choice
.
targetRANNodeID
->
globalRANNodeID
.
choice
.
globalGNB_ID
);
if
(
ptr
&&
targetid
)
{
if
(
targetid
->
present
==
Ngap_TargetID_PR_targeteNB_ID
)
{
if
(
targetid
->
choice
.
targetRANNodeID
->
globalRANNodeID
.
present
==
Ngap_GlobalRANNodeID_PR_globalGNB_ID
)
{
ptr
->
decodefromGlobalgNBId
(
targetid
->
choice
.
targetRANNodeID
->
globalRANNodeID
.
choice
.
globalGNB_ID
);
return
;
}
}
}
return
;
}
//------------------------------------------------------------------------------
void
HandoverRequiredMsg
::
getTAI
(
TAI
*&
ptr
)
{
if
(
ptr
)
ptr
->
decodefromTAI
(
&
(
targetid
->
choice
.
targetRANNodeID
->
selectedTAI
));
if
(
ptr
)
{
if
(
targetid
->
present
==
Ngap_TargetID_PR_targetRANNodeID
)
ptr
->
decodefromTAI
(
&
(
targetid
->
choice
.
targetRANNodeID
->
selectedTAI
));
}
}
//------------------------------------------------------------------------------
...
...
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