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
4968a4f5
Commit
4968a4f5
authored
Mar 10, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for Service Request
parent
a3ab8d23
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+14
-0
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+1
-1
src/contexts/ue_context.cpp
src/contexts/ue_context.cpp
+4
-0
src/contexts/ue_context.hpp
src/contexts/ue_context.hpp
+1
-0
No files found.
src/amf-app/amf_n1.cpp
View file @
4968a4f5
...
...
@@ -572,12 +572,26 @@ void amf_n1::service_request_handle(
std
::
unique_ptr
<
ServiceAccept
>
serApt
=
std
::
make_unique
<
ServiceAccept
>
();
serApt
->
setHeader
(
PLAIN_5GS_MSG
);
string
supi
=
"imsi-"
+
nc
.
get
()
->
imsi
;
uc
.
get
()
->
supi
=
supi
;
supi2amfId
[
supi
]
=
amf_ue_ngap_id
;
supi2ranId
[
supi
]
=
ran_ue_ngap_id
;
Logger
::
amf_n1
().
debug
(
"amf_ue_ngap_id %d, ran_ue_ngap_id %d"
,
amf_ue_ngap_id
,
ran_ue_ngap_id
);
Logger
::
amf_n1
().
debug
(
"Key for pdu session context: SUPI %s"
,
supi
.
c_str
());
// get the status of PDU Session context
std
::
shared_ptr
<
pdu_session_context
>
old_psc
=
{};
if
(
amf_app_inst
->
is_supi_2_ue_context
(
supi
))
{
std
::
shared_ptr
<
ue_context
>
old_uc
=
{};
old_uc
=
amf_app_inst
->
supi_2_ue_context
(
supi
);
uc
->
copy_pdu_sessions
(
old_uc
);
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
}
// associate SUPI with UC
amf_app_inst
->
set_supi_2_ue_context
(
supi
,
uc
);
// get PDU session status
std
::
vector
<
uint8_t
>
pdu_session_to_be_activated
=
{};
std
::
bitset
<
16
>
pdu_session_status_bits
((
uint16_t
)
0x0200
);
...
...
src/amf-app/amf_n11.cpp
View file @
4968a4f5
...
...
@@ -171,7 +171,7 @@ void amf_n11::handle_itti_message(
"ID %d)"
,
supi
.
c_str
(),
itti_msg
.
pdu_session_id
);
std
::
shared_ptr
<
pdu_session_context
>
psc
;
std
::
shared_ptr
<
pdu_session_context
>
psc
=
{}
;
if
(
!
uc
.
get
()
->
find_pdu_session_context
(
itti_msg
.
pdu_session_id
,
psc
))
{
Logger
::
amf_n11
().
error
(
"Could not find psu_session_context with SUPI %s, Failed"
,
...
...
src/contexts/ue_context.cpp
View file @
4968a4f5
...
...
@@ -52,3 +52,7 @@ void ue_context::add_pdu_session_context(
std
::
unique_lock
lock
(
m_pdu_session
);
pdu_sessions
[
session_id
]
=
context
;
}
void
ue_context
::
copy_pdu_sessions
(
std
::
shared_ptr
<
ue_context
>&
ue_ctx
)
{
pdu_sessions
=
ue_ctx
->
pdu_sessions
;
}
src/contexts/ue_context.hpp
View file @
4968a4f5
...
...
@@ -54,6 +54,7 @@ class ue_context {
void
add_pdu_session_context
(
const
std
::
uint8_t
&
session_id
,
const
std
::
shared_ptr
<
pdu_session_context
>&
context
);
void
copy_pdu_sessions
(
std
::
shared_ptr
<
ue_context
>&
ue_ctx
);
public:
uint32_t
ran_ue_ngap_id
;
// 32bits
...
...
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