Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
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-SMF
Commits
ad2259d6
Commit
ad2259d6
authored
Sep 02, 2020
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix issue for recovery_time_stamp when testing with dsTester (UPF)
parent
fd78292a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/smf_app/smf_n4.cpp
src/smf_app/smf_n4.cpp
+10
-2
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+4
-2
No files found.
src/smf_app/smf_n4.cpp
View file @
ad2259d6
...
...
@@ -215,8 +215,13 @@ smf_n4::smf_n4()
std
::
chrono
::
system_clock
::
now
();
std
::
time_t
now_c
=
std
::
chrono
::
system_clock
::
to_time_t
(
now
);
std
::
time_t
ellapsed
=
now_c
-
time_epoch
;
recovery_time_stamp
=
ellapsed
;
//
recovery_time_stamp = ellapsed;
//test new way to calculate recovery_time_stamp
std
::
time_t
time_epoch_ntp
=
std
::
time
(
nullptr
);
uint64_t
tv_ntp
=
time_epoch_ntp
+
SECONDS_SINCE_FIRST_EPOCH
;
recovery_time_stamp
=
tv_ntp
;
// TODO may load this from config
cp_function_features
=
{
};
cp_function_features
.
ovrl
=
0
;
...
...
@@ -560,9 +565,12 @@ void smf_n4::send_n4_msg(itti_n4_session_report_response &i) {
//------------------------------------------------------------------------------
void
smf_n4
::
send_heartbeat_request
(
std
::
shared_ptr
<
pfcp_association
>
&
a
)
{
std
::
time_t
time_epoch
=
std
::
time
(
nullptr
);
uint64_t
tv_ntp
=
time_epoch
+
SECONDS_SINCE_FIRST_EPOCH
;
pfcp
::
pfcp_heartbeat_request
h
=
{
};
pfcp
::
recovery_time_stamp_t
r
=
{
.
recovery_time_stamp
=
(
uint32_t
)
recovery_time_stam
p
};
(
uint32_t
)
tv_nt
p
};
h
.
set
(
r
);
pfcp
::
node_id_t
&
node_id
=
a
->
node_id
;
...
...
src/smf_app/smf_procedure.cpp
View file @
ad2259d6
...
...
@@ -1346,9 +1346,11 @@ void session_release_sm_context_procedure::handle_itti_msg(
problem_details
.
setCause
(
pdu_session_application_error_e2str
[
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE
]);
//trigger to send reply to AMF
/*
smf_app_inst->trigger_http_response(
http_status_code_e
::
HTTP_STATUS_CODE_406_NOT_ACCEPTABLE
,
n11_triggered_pending
->
pid
,
N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE
);
http_status_code_e::HTTP_STATUS_CODE_406_NOT_ACCEPTABLE,
n11_triggered_pending->pid, N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE);
*/
}
//TODO:
...
...
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