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
682223fb
Commit
682223fb
authored
Feb 23, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace N11/N10 by SBI
parent
fe06e1a6
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
160 additions
and
164 deletions
+160
-164
src/api-server/impl/IndividualSMContextApiImpl.cpp
src/api-server/impl/IndividualSMContextApiImpl.cpp
+2
-2
src/api-server/impl/NFStatusNotifyApiImpl.cpp
src/api-server/impl/NFStatusNotifyApiImpl.cpp
+1
-1
src/api-server/impl/SMContextsCollectionApiImpl.cpp
src/api-server/impl/SMContextsCollectionApiImpl.cpp
+1
-1
src/api-server/impl/SubscriptionsCollectionApiImpl.cpp
src/api-server/impl/SubscriptionsCollectionApiImpl.cpp
+1
-1
src/api-server/smf-http2-server.cpp
src/api-server/smf-http2-server.cpp
+3
-3
src/common/logger.cpp
src/common/logger.cpp
+1
-2
src/common/logger.hpp
src/common/logger.hpp
+2
-4
src/itti/itti_msg.hpp
src/itti/itti_msg.hpp
+1
-2
src/smf_app/CMakeLists.txt
src/smf_app/CMakeLists.txt
+1
-1
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+19
-19
src/smf_app/smf_context.cpp
src/smf_app/smf_context.cpp
+18
-18
src/smf_app/smf_procedure.cpp
src/smf_app/smf_procedure.cpp
+3
-3
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+98
-98
src/smf_app/smf_sbi.hpp
src/smf_app/smf_sbi.hpp
+9
-9
No files found.
src/api-server/impl/IndividualSMContextApiImpl.cpp
View file @
682223fb
...
@@ -80,7 +80,7 @@ void IndividualSMContextApiImpl::release_sm_context(
...
@@ -80,7 +80,7 @@ void IndividualSMContextApiImpl::release_sm_context(
// Handle the itti_n11_release_sm_context_request message in smf_app
// Handle the itti_n11_release_sm_context_request message in smf_app
std
::
shared_ptr
<
itti_n11_release_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_release_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_release_sm_context_request
>
(
std
::
make_shared
<
itti_n11_release_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
,
smContextRef
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
,
smContextRef
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
m_smf_app
->
handle_pdu_session_release_sm_context_request
(
itti_msg
);
m_smf_app
->
handle_pdu_session_release_sm_context_request
(
itti_msg
);
...
@@ -133,7 +133,7 @@ void IndividualSMContextApiImpl::update_sm_context(
...
@@ -133,7 +133,7 @@ void IndividualSMContextApiImpl::update_sm_context(
// Handle the itti_n11_update_sm_context_request message in smf_app
// Handle the itti_n11_update_sm_context_request message in smf_app
std
::
shared_ptr
<
itti_n11_update_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_sm_context_request
>
(
std
::
make_shared
<
itti_n11_update_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
,
smContextRef
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
,
smContextRef
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
m_smf_app
->
handle_pdu_session_update_sm_context_request
(
itti_msg
);
m_smf_app
->
handle_pdu_session_update_sm_context_request
(
itti_msg
);
...
...
src/api-server/impl/NFStatusNotifyApiImpl.cpp
View file @
682223fb
...
@@ -65,7 +65,7 @@ void NFStatusNotifyApiImpl::receive_nf_status_notification(
...
@@ -65,7 +65,7 @@ void NFStatusNotifyApiImpl::receive_nf_status_notification(
// Handle the message in smf_app
// Handle the message in smf_app
std
::
shared_ptr
<
itti_sbi_notification_data
>
itti_msg
=
std
::
shared_ptr
<
itti_sbi_notification_data
>
itti_msg
=
std
::
make_shared
<
itti_sbi_notification_data
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
);
std
::
make_shared
<
itti_sbi_notification_data
>
(
TASK_SMF_
SBI
,
TASK_SMF_APP
);
itti_msg
->
notification_msg
=
notification_msg
;
itti_msg
->
notification_msg
=
notification_msg
;
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
...
...
src/api-server/impl/SMContextsCollectionApiImpl.cpp
View file @
682223fb
...
@@ -92,7 +92,7 @@ void SMContextsCollectionApiImpl::post_sm_contexts(
...
@@ -92,7 +92,7 @@ void SMContextsCollectionApiImpl::post_sm_contexts(
// Handle the pdu_session_create_sm_context_request message in smf_app
// Handle the pdu_session_create_sm_context_request message in smf_app
std
::
shared_ptr
<
itti_n11_create_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_create_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_create_sm_context_request
>
(
std
::
make_shared
<
itti_n11_create_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
m_smf_app
->
handle_pdu_session_create_sm_context_request
(
itti_msg
);
m_smf_app
->
handle_pdu_session_create_sm_context_request
(
itti_msg
);
...
...
src/api-server/impl/SubscriptionsCollectionApiImpl.cpp
View file @
682223fb
...
@@ -74,7 +74,7 @@ void SubscriptionsCollectionApiImpl::create_individual_subcription(
...
@@ -74,7 +74,7 @@ void SubscriptionsCollectionApiImpl::create_individual_subcription(
// Handle the message in smf_app
// Handle the message in smf_app
std
::
shared_ptr
<
itti_sbi_event_exposure_request
>
itti_msg
=
std
::
shared_ptr
<
itti_sbi_event_exposure_request
>
itti_msg
=
std
::
make_shared
<
itti_sbi_event_exposure_request
>
(
std
::
make_shared
<
itti_sbi_event_exposure_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
);
TASK_SMF_
SBI
,
TASK_SMF_APP
);
itti_msg
->
event_exposure
=
event_exposure
;
itti_msg
->
event_exposure
=
event_exposure
;
itti_msg
->
http_version
=
1
;
itti_msg
->
http_version
=
1
;
...
...
src/api-server/smf-http2-server.cpp
View file @
682223fb
...
@@ -345,7 +345,7 @@ void smf_http2_server::create_sm_contexts_handler(
...
@@ -345,7 +345,7 @@ void smf_http2_server::create_sm_contexts_handler(
// Handle the pdu_session_create_sm_context_request message in smf_app
// Handle the pdu_session_create_sm_context_request message in smf_app
std
::
shared_ptr
<
itti_n11_create_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_create_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_create_sm_context_request
>
(
std
::
make_shared
<
itti_n11_create_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
http_version
=
2
;
itti_msg
->
http_version
=
2
;
m_smf_app
->
handle_pdu_session_create_sm_context_request
(
itti_msg
);
m_smf_app
->
handle_pdu_session_create_sm_context_request
(
itti_msg
);
...
@@ -410,7 +410,7 @@ void smf_http2_server::update_sm_context_handler(
...
@@ -410,7 +410,7 @@ void smf_http2_server::update_sm_context_handler(
// Handle the itti_n11_update_sm_context_request message in smf_app
// Handle the itti_n11_update_sm_context_request message in smf_app
std
::
shared_ptr
<
itti_n11_update_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_sm_context_request
>
(
std
::
make_shared
<
itti_n11_update_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
,
smf_ref
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
,
smf_ref
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
http_version
=
2
;
itti_msg
->
http_version
=
2
;
m_smf_app
->
handle_pdu_session_update_sm_context_request
(
itti_msg
);
m_smf_app
->
handle_pdu_session_update_sm_context_request
(
itti_msg
);
...
@@ -495,7 +495,7 @@ void smf_http2_server::release_sm_context_handler(
...
@@ -495,7 +495,7 @@ void smf_http2_server::release_sm_context_handler(
"request from AMF."
);
"request from AMF."
);
std
::
shared_ptr
<
itti_n11_release_sm_context_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_release_sm_context_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_release_sm_context_request
>
(
std
::
make_shared
<
itti_n11_release_sm_context_request
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
,
smf_ref
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
,
smf_ref
);
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
req
=
sm_context_req_msg
;
itti_msg
->
scid
=
smf_ref
;
itti_msg
->
scid
=
smf_ref
;
itti_msg
->
http_version
=
2
;
itti_msg
->
http_version
=
2
;
...
...
src/common/logger.cpp
View file @
682223fb
...
@@ -63,8 +63,7 @@ void Logger::_init(
...
@@ -63,8 +63,7 @@ void Logger::_init(
m_smf_n1
=
new
_Logger
(
"smf_n1 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n1
=
new
_Logger
(
"smf_n1 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n2
=
new
_Logger
(
"smf_n2 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n2
=
new
_Logger
(
"smf_n2 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n4
=
new
_Logger
(
"smf_n4 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n4
=
new
_Logger
(
"smf_n4 "
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n10
=
new
_Logger
(
"smf_n10"
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_sbi
=
new
_Logger
(
"smf_sbi"
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_n11
=
new
_Logger
(
"smf_n11"
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_api_server
=
new
_Logger
(
"sbi_srv"
,
m_sinks
,
ss
.
str
().
c_str
());
m_smf_api_server
=
new
_Logger
(
"sbi_srv"
,
m_sinks
,
ss
.
str
().
c_str
());
}
}
...
...
src/common/logger.hpp
View file @
682223fb
...
@@ -86,8 +86,7 @@ class Logger {
...
@@ -86,8 +86,7 @@ class Logger {
static
_Logger
&
smf_n1
()
{
return
*
singleton
().
m_smf_n1
;
}
static
_Logger
&
smf_n1
()
{
return
*
singleton
().
m_smf_n1
;
}
static
_Logger
&
smf_n2
()
{
return
*
singleton
().
m_smf_n2
;
}
static
_Logger
&
smf_n2
()
{
return
*
singleton
().
m_smf_n2
;
}
static
_Logger
&
smf_n4
()
{
return
*
singleton
().
m_smf_n4
;
}
static
_Logger
&
smf_n4
()
{
return
*
singleton
().
m_smf_n4
;
}
static
_Logger
&
smf_n10
()
{
return
*
singleton
().
m_smf_n10
;
}
static
_Logger
&
smf_sbi
()
{
return
*
singleton
().
m_smf_sbi
;
}
static
_Logger
&
smf_n11
()
{
return
*
singleton
().
m_smf_n11
;
}
static
_Logger
&
smf_api_server
()
{
return
*
singleton
().
m_smf_api_server
;
}
static
_Logger
&
smf_api_server
()
{
return
*
singleton
().
m_smf_api_server
;
}
private:
private:
...
@@ -116,8 +115,7 @@ class Logger {
...
@@ -116,8 +115,7 @@ class Logger {
_Logger
*
m_smf_n1
;
_Logger
*
m_smf_n1
;
_Logger
*
m_smf_n2
;
_Logger
*
m_smf_n2
;
_Logger
*
m_smf_n4
;
_Logger
*
m_smf_n4
;
_Logger
*
m_smf_n10
;
_Logger
*
m_smf_sbi
;
_Logger
*
m_smf_n11
;
_Logger
*
m_smf_api_server
;
_Logger
*
m_smf_api_server
;
};
};
...
...
src/itti/itti_msg.hpp
View file @
682223fb
...
@@ -36,8 +36,7 @@ typedef enum {
...
@@ -36,8 +36,7 @@ typedef enum {
TASK_ASYNC_SHELL_CMD
,
TASK_ASYNC_SHELL_CMD
,
TASK_SMF_APP
,
TASK_SMF_APP
,
TASK_SMF_N4
,
TASK_SMF_N4
,
TASK_SMF_N10
,
TASK_SMF_SBI
,
TASK_SMF_N11
,
TASK_MAX
,
TASK_MAX
,
TASK_NONE
,
TASK_NONE
,
TASK_ALL
=
255
TASK_ALL
=
255
...
...
src/smf_app/CMakeLists.txt
View file @
682223fb
...
@@ -55,7 +55,7 @@ add_library (SMF STATIC
...
@@ -55,7 +55,7 @@ add_library (SMF STATIC
smf_pco.cpp
smf_pco.cpp
smf_procedure.cpp
smf_procedure.cpp
smf_n4.cpp
smf_n4.cpp
smf_
n11
.cpp
smf_
sbi
.cpp
smf_event.cpp
smf_event.cpp
smf_profile.cpp
smf_profile.cpp
smf_subscription.cpp
smf_subscription.cpp
...
...
src/smf_app/smf_app.cpp
View file @
682223fb
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
#include "smf.h"
#include "smf.h"
#include "smf_event.hpp"
#include "smf_event.hpp"
#include "smf_n1.hpp"
#include "smf_n1.hpp"
#include "smf_
n11
.hpp"
#include "smf_
sbi
.hpp"
#include "smf_n4.hpp"
#include "smf_n4.hpp"
#include "smf_paa_dynamic.hpp"
#include "smf_paa_dynamic.hpp"
#include "string.hpp"
#include "string.hpp"
...
@@ -72,7 +72,7 @@ extern util::async_shell_cmd* async_shell_cmd_inst;
...
@@ -72,7 +72,7 @@ extern util::async_shell_cmd* async_shell_cmd_inst;
extern
smf_app
*
smf_app_inst
;
extern
smf_app
*
smf_app_inst
;
extern
smf_config
smf_cfg
;
extern
smf_config
smf_cfg
;
smf_n4
*
smf_n4_inst
=
nullptr
;
smf_n4
*
smf_n4_inst
=
nullptr
;
smf_
n11
*
smf_n11
_inst
=
nullptr
;
smf_
sbi
*
smf_sbi
_inst
=
nullptr
;
extern
itti_mw
*
itti_inst
;
extern
itti_mw
*
itti_inst
;
void
smf_app_task
(
void
*
);
void
smf_app_task
(
void
*
);
...
@@ -327,7 +327,7 @@ smf_app::smf_app(const std::string& config_file)
...
@@ -327,7 +327,7 @@ smf_app::smf_app(const std::string& config_file)
try
{
try
{
smf_n4_inst
=
new
smf_n4
();
smf_n4_inst
=
new
smf_n4
();
smf_
n11_inst
=
new
smf_n11
();
smf_
sbi_inst
=
new
smf_sbi
();
}
catch
(
std
::
exception
&
e
)
{
}
catch
(
std
::
exception
&
e
)
{
Logger
::
smf_app
().
error
(
"Cannot create SMF_APP: %s"
,
e
.
what
());
Logger
::
smf_app
().
error
(
"Cannot create SMF_APP: %s"
,
e
.
what
());
throw
;
throw
;
...
@@ -923,7 +923,7 @@ void smf_app::handle_pdu_session_create_sm_context_request(
...
@@ -923,7 +923,7 @@ void smf_app::handle_pdu_session_create_sm_context_request(
if
(
not
use_local_configuration_subscription_data
(
dnn_selection_mode
))
{
if
(
not
use_local_configuration_subscription_data
(
dnn_selection_mode
))
{
Logger
::
smf_app
().
debug
(
Logger
::
smf_app
().
debug
(
"Retrieve Session Management Subscription data from the UDM"
);
"Retrieve Session Management Subscription data from the UDM"
);
if
(
smf_
n11
_inst
->
get_sm_data
(
supi64
,
dnn
,
snssai
,
subscription
))
{
if
(
smf_
sbi
_inst
->
get_sm_data
(
supi64
,
dnn
,
snssai
,
subscription
))
{
// update dnn_context with subscription info
// update dnn_context with subscription info
sc
.
get
()
->
insert_dnn_subscription
(
snssai
,
subscription
);
sc
.
get
()
->
insert_dnn_subscription
(
snssai
,
subscription
);
}
else
{
}
else
{
...
@@ -1175,7 +1175,7 @@ void smf_app::trigger_pdu_session_modification(
...
@@ -1175,7 +1175,7 @@ void smf_app::trigger_pdu_session_modification(
std
::
shared_ptr
<
itti_nx_trigger_pdu_session_modification
>
itti_msg
=
std
::
shared_ptr
<
itti_nx_trigger_pdu_session_modification
>
itti_msg
=
std
::
make_shared
<
itti_nx_trigger_pdu_session_modification
>
(
std
::
make_shared
<
itti_nx_trigger_pdu_session_modification
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
itti_msg
->
http_version
=
http_version
;
itti_msg
->
http_version
=
http_version
;
// step 1. collect the necessary information
// step 1. collect the necessary information
...
@@ -1552,7 +1552,7 @@ void smf_app::timer_nrf_heartbeat_timeout(
...
@@ -1552,7 +1552,7 @@ void smf_app::timer_nrf_heartbeat_timeout(
std
::
shared_ptr
<
itti_n11_update_nf_instance_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_nf_instance_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_nf_instance_request
>
(
std
::
make_shared
<
itti_n11_update_nf_instance_request
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
oai
::
smf_server
::
model
::
PatchItem
patch_item
=
{};
oai
::
smf_server
::
model
::
PatchItem
patch_item
=
{};
//{"op":"replace","path":"/nfStatus", "value": "REGISTERED"}
//{"op":"replace","path":"/nfStatus", "value": "REGISTERED"}
...
@@ -1565,7 +1565,7 @@ void smf_app::timer_nrf_heartbeat_timeout(
...
@@ -1565,7 +1565,7 @@ void smf_app::timer_nrf_heartbeat_timeout(
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
else
{
}
else
{
Logger
::
smf_app
().
debug
(
Logger
::
smf_app
().
debug
(
...
@@ -1716,7 +1716,7 @@ void smf_app::trigger_create_context_error_response(
...
@@ -1716,7 +1716,7 @@ void smf_app::trigger_create_context_error_response(
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_create_sm_context_response
sm_context_response
=
{};
pdu_session_create_sm_context_response
sm_context_response
=
{};
nlohmann
::
json
json_data
=
{};
nlohmann
::
json
json_data
=
{};
to_json
(
json_data
,
sm_context
);
to_json
(
json_data
,
sm_context
);
...
@@ -1746,7 +1746,7 @@ void smf_app::trigger_update_context_error_response(
...
@@ -1746,7 +1746,7 @@ void smf_app::trigger_update_context_error_response(
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_update_sm_context_response
sm_context_response
=
{};
pdu_session_update_sm_context_response
sm_context_response
=
{};
nlohmann
::
json
json_data
=
{};
nlohmann
::
json
json_data
=
{};
to_json
(
json_data
,
smContextUpdateError
);
to_json
(
json_data
,
smContextUpdateError
);
...
@@ -1776,7 +1776,7 @@ void smf_app::trigger_update_context_error_response(
...
@@ -1776,7 +1776,7 @@ void smf_app::trigger_update_context_error_response(
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_update_sm_context_response
sm_context_response
=
{};
pdu_session_update_sm_context_response
sm_context_response
=
{};
nlohmann
::
json
json_data
=
{};
nlohmann
::
json
json_data
=
{};
to_json
(
json_data
,
smContextUpdateError
);
to_json
(
json_data
,
smContextUpdateError
);
...
@@ -1802,7 +1802,7 @@ void smf_app::trigger_http_response(
...
@@ -1802,7 +1802,7 @@ void smf_app::trigger_http_response(
case
N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE
:
{
case
N11_SESSION_RELEASE_SM_CONTEXT_RESPONSE
:
{
std
::
shared_ptr
<
itti_n11_release_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_release_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_release_sm_context_response
>
(
std
::
make_shared
<
itti_n11_release_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_release_sm_context_response
sm_context_response
=
{};
pdu_session_release_sm_context_response
sm_context_response
=
{};
sm_context_response
.
set_http_code
(
http_code
);
sm_context_response
.
set_http_code
(
http_code
);
itti_msg
->
res
=
sm_context_response
;
itti_msg
->
res
=
sm_context_response
;
...
@@ -1817,7 +1817,7 @@ void smf_app::trigger_http_response(
...
@@ -1817,7 +1817,7 @@ void smf_app::trigger_http_response(
case
N11_SESSION_CREATE_SM_CONTEXT_RESPONSE
:
{
case
N11_SESSION_CREATE_SM_CONTEXT_RESPONSE
:
{
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_create_sm_context_response
sm_context_response
=
{};
pdu_session_create_sm_context_response
sm_context_response
=
{};
sm_context_response
.
set_http_code
(
http_code
);
sm_context_response
.
set_http_code
(
http_code
);
itti_msg
->
res
=
sm_context_response
;
itti_msg
->
res
=
sm_context_response
;
...
@@ -1832,7 +1832,7 @@ void smf_app::trigger_http_response(
...
@@ -1832,7 +1832,7 @@ void smf_app::trigger_http_response(
case
N11_SESSION_UPDATE_SM_CONTEXT_RESPONSE
:
{
case
N11_SESSION_UPDATE_SM_CONTEXT_RESPONSE
:
{
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
std
::
make_shared
<
itti_n11_update_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
promise_id
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
promise_id
);
pdu_session_update_sm_context_response
sm_context_response
=
{};
pdu_session_update_sm_context_response
sm_context_response
=
{};
sm_context_response
.
set_http_code
(
http_code
);
sm_context_response
.
set_http_code
(
http_code
);
itti_msg
->
res
=
sm_context_response
;
itti_msg
->
res
=
sm_context_response
;
...
@@ -1989,12 +1989,12 @@ void smf_app::trigger_nf_registration_request() {
...
@@ -1989,12 +1989,12 @@ void smf_app::trigger_nf_registration_request() {
std
::
shared_ptr
<
itti_n11_register_nf_instance_request
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_register_nf_instance_request
>
itti_msg
=
std
::
make_shared
<
itti_n11_register_nf_instance_request
>
(
std
::
make_shared
<
itti_n11_register_nf_instance_request
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
itti_msg
->
profile
=
nf_instance_profile
;
itti_msg
->
profile
=
nf_instance_profile
;
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
}
...
@@ -2006,12 +2006,12 @@ void smf_app::trigger_nf_deregistration() {
...
@@ -2006,12 +2006,12 @@ void smf_app::trigger_nf_deregistration() {
std
::
shared_ptr
<
itti_n11_deregister_nf_instance
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_deregister_nf_instance
>
itti_msg
=
std
::
make_shared
<
itti_n11_deregister_nf_instance
>
(
std
::
make_shared
<
itti_n11_deregister_nf_instance
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
itti_msg
->
smf_instance_id
=
smf_instance_id
;
itti_msg
->
smf_instance_id
=
smf_instance_id
;
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
}
...
@@ -2024,7 +2024,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
...
@@ -2024,7 +2024,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
std
::
shared_ptr
<
itti_n11_subscribe_upf_status_notify
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_subscribe_upf_status_notify
>
itti_msg
=
std
::
make_shared
<
itti_n11_subscribe_upf_status_notify
>
(
std
::
make_shared
<
itti_n11_subscribe_upf_status_notify
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
nlohmann
::
json
json_data
=
{};
nlohmann
::
json
json_data
=
{};
// TODO: remove hardcoded values
// TODO: remove hardcoded values
...
@@ -2049,7 +2049,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
...
@@ -2049,7 +2049,7 @@ void smf_app::trigger_upf_status_notification_subscribe() {
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
}
src/smf_app/smf_context.cpp
View file @
682223fb
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
#include "smf_config.hpp"
#include "smf_config.hpp"
#include "smf_event.hpp"
#include "smf_event.hpp"
#include "smf_n1.hpp"
#include "smf_n1.hpp"
#include "smf_
n11
.hpp"
#include "smf_
sbi
.hpp"
#include "smf_n2.hpp"
#include "smf_n2.hpp"
#include "smf_paa_dynamic.hpp"
#include "smf_paa_dynamic.hpp"
#include "smf_pfcp_association.hpp"
#include "smf_pfcp_association.hpp"
...
@@ -836,7 +836,7 @@ void smf_context::handle_itti_msg(
...
@@ -836,7 +836,7 @@ void smf_context::handle_itti_msg(
session_report_msg
.
set_json_data
(
json_data
);
session_report_msg
.
set_json_data
(
json_data
);
itti_n11_session_report_request
*
itti_n11
=
itti_n11_session_report_request
*
itti_n11
=
new
itti_n11_session_report_request
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
new
itti_n11_session_report_request
(
TASK_SMF_APP
,
TASK_SMF_
SBI
);
itti_n11
->
http_version
=
1
;
// use HTTPv1 for the moment
itti_n11
->
http_version
=
1
;
// use HTTPv1 for the moment
std
::
shared_ptr
<
itti_n11_session_report_request
>
itti_n11_report
=
std
::
shared_ptr
<
itti_n11_session_report_request
>
itti_n11_report
=
std
::
shared_ptr
<
itti_n11_session_report_request
>
(
itti_n11
);
std
::
shared_ptr
<
itti_n11_session_report_request
>
(
itti_n11
);
...
@@ -844,13 +844,13 @@ void smf_context::handle_itti_msg(
...
@@ -844,13 +844,13 @@ void smf_context::handle_itti_msg(
// send ITTI message to N11 interface to trigger N1N2MessageTransfer
// send ITTI message to N11 interface to trigger N1N2MessageTransfer
// towards AMFs
// towards AMFs
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Sending ITTI message %s to task TASK_SMF_
N11
"
,
"Sending ITTI message %s to task TASK_SMF_
SBI
"
,
itti_n11_report
->
get_msg_name
());
itti_n11_report
->
get_msg_name
());
ret
=
itti_inst
->
send_msg
(
itti_n11_report
);
ret
=
itti_inst
->
send_msg
(
itti_n11_report
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_n11_report
->
get_msg_name
());
itti_n11_report
->
get_msg_name
());
}
}
}
}
...
@@ -1260,7 +1260,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
...
@@ -1260,7 +1260,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// receiving the response from UPF
// receiving the response from UPF
itti_n11_create_sm_context_response
*
sm_context_resp
=
itti_n11_create_sm_context_response
*
sm_context_resp
=
new
itti_n11_create_sm_context_response
(
new
itti_n11_create_sm_context_response
(
TASK_SMF_APP
,
TASK_SMF_
N11
,
smreq
->
pid
);
TASK_SMF_APP
,
TASK_SMF_
SBI
,
smreq
->
pid
);
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
sm_context_resp_pending
=
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
sm_context_resp_pending
=
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
(
sm_context_resp
);
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
(
sm_context_resp
);
...
@@ -1476,7 +1476,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
...
@@ -1476,7 +1476,7 @@ void smf_context::handle_pdu_session_create_sm_context_request(
"Send ITTI msg to SMF APP to trigger the response of Server"
);
"Send ITTI msg to SMF APP to trigger the response of Server"
);
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_create_sm_context_response
>
itti_msg
=
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
std
::
make_shared
<
itti_n11_create_sm_context_response
>
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
smreq
->
pid
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
smreq
->
pid
);
pdu_session_create_sm_context_response
sm_context_response
=
{};
pdu_session_create_sm_context_response
sm_context_response
=
{};
std
::
string
smContextRef
=
std
::
to_string
(
smreq
->
scid
);
std
::
string
smContextRef
=
std
::
to_string
(
smreq
->
scid
);
...
@@ -1595,12 +1595,12 @@ void smf_context::handle_pdu_session_create_sm_context_request(
...
@@ -1595,12 +1595,12 @@ void smf_context::handle_pdu_session_create_sm_context_request(
// send ITTI message to N11 to trigger N1N2MessageTransfer towards AMFs
// send ITTI message to N11 to trigger N1N2MessageTransfer towards AMFs
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Sending ITTI message %s to task TASK_SMF_
N11
"
,
"Sending ITTI message %s to task TASK_SMF_
SBI
"
,
sm_context_resp_pending
->
get_msg_name
());
sm_context_resp_pending
->
get_msg_name
());
int
ret
=
itti_inst
->
send_msg
(
sm_context_resp_pending
);
int
ret
=
itti_inst
->
send_msg
(
sm_context_resp_pending
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
sm_context_resp_pending
->
get_msg_name
());
sm_context_resp_pending
->
get_msg_name
());
}
}
}
}
...
@@ -2297,7 +2297,7 @@ void smf_context::handle_pdu_session_update_sm_context_request(
...
@@ -2297,7 +2297,7 @@ void smf_context::handle_pdu_session_update_sm_context_request(
// when receiving the response from UPF
// when receiving the response from UPF
itti_n11_update_sm_context_response
*
n11_sm_context_resp
=
itti_n11_update_sm_context_response
*
n11_sm_context_resp
=
new
itti_n11_update_sm_context_response
(
new
itti_n11_update_sm_context_response
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
smreq
->
pid
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
smreq
->
pid
);
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
sm_context_resp_pending
=
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
sm_context_resp_pending
=
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
(
n11_sm_context_resp
);
std
::
shared_ptr
<
itti_n11_update_sm_context_response
>
(
n11_sm_context_resp
);
...
@@ -2623,7 +2623,7 @@ void smf_context::handle_pdu_session_update_sm_context_request(
...
@@ -2623,7 +2623,7 @@ void smf_context::handle_pdu_session_update_sm_context_request(
int
ret
=
itti_inst
->
send_msg
(
sm_context_resp_pending
);
int
ret
=
itti_inst
->
send_msg
(
sm_context_resp_pending
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
sm_context_resp_pending
->
get_msg_name
());
sm_context_resp_pending
->
get_msg_name
());
}
}
}
}
...
@@ -2666,7 +2666,7 @@ void smf_context::handle_pdu_session_release_sm_context_request(
...
@@ -2666,7 +2666,7 @@ void smf_context::handle_pdu_session_release_sm_context_request(
itti_n11_release_sm_context_response
*
n11_sm_context_resp
=
itti_n11_release_sm_context_response
*
n11_sm_context_resp
=
new
itti_n11_release_sm_context_response
(
new
itti_n11_release_sm_context_response
(
TASK_SMF_
N11
,
TASK_SMF_APP
,
smreq
->
pid
);
TASK_SMF_
SBI
,
TASK_SMF_APP
,
smreq
->
pid
);
std
::
shared_ptr
<
itti_n11_release_sm_context_response
>
std
::
shared_ptr
<
itti_n11_release_sm_context_response
>
sm_context_resp_pending
=
sm_context_resp_pending
=
...
@@ -2781,7 +2781,7 @@ void smf_context::handle_pdu_session_modification_network_requested(
...
@@ -2781,7 +2781,7 @@ void smf_context::handle_pdu_session_modification_network_requested(
fmt
::
format
(
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
itti_msg
->
msg
.
set_amf_url
(
url
);
itti_msg
->
msg
.
set_amf_url
(
url
);
Logger
::
smf_
n11
().
debug
(
Logger
::
smf_
app
().
debug
(
"N1N2MessageTransfer will be sent to AMF with URL: %s"
,
url
.
c_str
());
"N1N2MessageTransfer will be sent to AMF with URL: %s"
,
url
.
c_str
());
// Fill the json part
// Fill the json part
...
@@ -2811,12 +2811,12 @@ void smf_context::handle_pdu_session_modification_network_requested(
...
@@ -2811,12 +2811,12 @@ void smf_context::handle_pdu_session_modification_network_requested(
// Step 3. Send ITTI message to N11 interface to trigger N1N2MessageTransfer
// Step 3. Send ITTI message to N11 interface to trigger N1N2MessageTransfer
// towards AMFs
// towards AMFs
Logger
::
smf_app
().
info
(
Logger
::
smf_app
().
info
(
"Sending ITTI message %s to task TASK_SMF_
N11
"
,
itti_msg
->
get_msg_name
());
"Sending ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
}
...
@@ -2970,7 +2970,7 @@ void smf_context::handle_sm_context_status_change(
...
@@ -2970,7 +2970,7 @@ void smf_context::handle_sm_context_status_change(
"Send ITTI msg to SMF N11 to trigger the status notification"
);
"Send ITTI msg to SMF N11 to trigger the status notification"
);
std
::
shared_ptr
<
itti_n11_notify_sm_context_status
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_notify_sm_context_status
>
itti_msg
=
std
::
make_shared
<
itti_n11_notify_sm_context_status
>
(
std
::
make_shared
<
itti_n11_notify_sm_context_status
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
itti_msg
->
scid
=
scid
;
itti_msg
->
scid
=
scid
;
itti_msg
->
sm_context_status
=
status
;
itti_msg
->
sm_context_status
=
status
;
itti_msg
->
amf_status_uri
=
scf
.
get
()
->
amf_status_uri
;
itti_msg
->
amf_status_uri
=
scf
.
get
()
->
amf_status_uri
;
...
@@ -2979,7 +2979,7 @@ void smf_context::handle_sm_context_status_change(
...
@@ -2979,7 +2979,7 @@ void smf_context::handle_sm_context_status_change(
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
}
...
@@ -3002,7 +3002,7 @@ void smf_context::handle_ee_pdu_session_release(
...
@@ -3002,7 +3002,7 @@ void smf_context::handle_ee_pdu_session_release(
"Send ITTI msg to SMF N11 to trigger the event notification"
);
"Send ITTI msg to SMF N11 to trigger the event notification"
);
std
::
shared_ptr
<
itti_n11_notify_subscribed_event
>
itti_msg
=
std
::
shared_ptr
<
itti_n11_notify_subscribed_event
>
itti_msg
=
std
::
make_shared
<
itti_n11_notify_subscribed_event
>
(
std
::
make_shared
<
itti_n11_notify_subscribed_event
>
(
TASK_SMF_APP
,
TASK_SMF_
N11
);
TASK_SMF_APP
,
TASK_SMF_
SBI
);
for
(
auto
i
:
subscriptions
)
{
for
(
auto
i
:
subscriptions
)
{
event_notification
ev_notif
=
{};
event_notification
ev_notif
=
{};
...
@@ -3020,7 +3020,7 @@ void smf_context::handle_ee_pdu_session_release(
...
@@ -3020,7 +3020,7 @@ void smf_context::handle_ee_pdu_session_release(
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
int
ret
=
itti_inst
->
send_msg
(
itti_msg
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
itti_msg
->
get_msg_name
());
itti_msg
->
get_msg_name
());
}
}
}
else
{
}
else
{
...
...
src/smf_app/smf_procedure.cpp
View file @
682223fb
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include "smf_config.hpp"
#include "smf_config.hpp"
#include "smf_context.hpp"
#include "smf_context.hpp"
#include "smf_n1.hpp"
#include "smf_n1.hpp"
#include "smf_
n11
.hpp"
#include "smf_
sbi
.hpp"
#include "smf_n2.hpp"
#include "smf_n2.hpp"
#include "smf_pfcp_association.hpp"
#include "smf_pfcp_association.hpp"
#include "ProblemDetails.h"
#include "ProblemDetails.h"
...
@@ -443,7 +443,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
...
@@ -443,7 +443,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
fmt
::
format
(
fmt
::
format
(
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
NAMF_COMMUNICATION_N1N2_MESSAGE_TRANSFER_URL
,
supi_str
.
c_str
());
n11_triggered_pending
->
res
.
set_amf_url
(
url
);
n11_triggered_pending
->
res
.
set_amf_url
(
url
);
Logger
::
smf_
n11
().
debug
(
Logger
::
smf_
app
().
debug
(
"N1N2MessageTransfer will be sent to AMF with URL: %s"
,
url
.
c_str
());
"N1N2MessageTransfer will be sent to AMF with URL: %s"
,
url
.
c_str
());
// Fill the json part
// Fill the json part
...
@@ -495,7 +495,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
...
@@ -495,7 +495,7 @@ void session_create_sm_context_procedure::handle_itti_msg(
int
ret
=
itti_inst
->
send_msg
(
n11_triggered_pending
);
int
ret
=
itti_inst
->
send_msg
(
n11_triggered_pending
);
if
(
RETURNok
!=
ret
)
{
if
(
RETURNok
!=
ret
)
{
Logger
::
smf_app
().
error
(
Logger
::
smf_app
().
error
(
"Could not send ITTI message %s to task TASK_SMF_
N11
"
,
"Could not send ITTI message %s to task TASK_SMF_
SBI
"
,
n11_triggered_pending
->
get_msg_name
());
n11_triggered_pending
->
get_msg_name
());
}
}
}
}
...
...
src/smf_app/smf_
n11
.cpp
→
src/smf_app/smf_
sbi
.cpp
View file @
682223fb
This diff is collapsed.
Click to expand it.
src/smf_app/smf_
n11
.hpp
→
src/smf_app/smf_
sbi
.hpp
View file @
682223fb
...
@@ -19,15 +19,15 @@
...
@@ -19,15 +19,15 @@
* contact@openairinterface.org
* contact@openairinterface.org
*/
*/
/*! \file smf_
n11
.hpp
/*! \file smf_
sbi
.hpp
\author Lionel GAUTHIER, Tien-Thinh NGUYEN
\author Lionel GAUTHIER, Tien-Thinh NGUYEN
\company Eurecom
\company Eurecom
\date 2019
\date 2019
\email: lionel.gauthier@eurecom.fr, tien-thinh.nguyen@eurecom.fr
\email: lionel.gauthier@eurecom.fr, tien-thinh.nguyen@eurecom.fr
*/
*/
#ifndef FILE_SMF_
N11
_HPP_SEEN
#ifndef FILE_SMF_
SBI
_HPP_SEEN
#define FILE_SMF_
N11
_HPP_SEEN
#define FILE_SMF_
SBI
_HPP_SEEN
#include <map>
#include <map>
#include <thread>
#include <thread>
...
@@ -39,17 +39,17 @@
...
@@ -39,17 +39,17 @@
namespace
smf
{
namespace
smf
{
#define TASK_SMF_
N11
_TIMEOUT_NRF_HEARTBEAT_REQUEST 1
#define TASK_SMF_
SBI
_TIMEOUT_NRF_HEARTBEAT_REQUEST 1
class
smf_
n11
{
class
smf_
sbi
{
private:
private:
std
::
thread
::
id
thread_id
;
std
::
thread
::
id
thread_id
;
std
::
thread
thread
;
std
::
thread
thread
;
public:
public:
smf_
n11
();
smf_
sbi
();
smf_
n11
(
smf_n11
const
&
)
=
delete
;
smf_
sbi
(
smf_sbi
const
&
)
=
delete
;
void
operator
=
(
smf_
n11
const
&
)
=
delete
;
void
operator
=
(
smf_
sbi
const
&
)
=
delete
;
/*
/*
* Send N1N2 Message Transfer Request to AMF
* Send N1N2 Message Transfer Request to AMF
...
@@ -164,4 +164,4 @@ class smf_n11 {
...
@@ -164,4 +164,4 @@ class smf_n11 {
void
subscribe_sm_data
();
void
subscribe_sm_data
();
};
};
}
// namespace smf
}
// namespace smf
#endif
/* FILE_SMF_
N11
_HPP_SEEN */
#endif
/* FILE_SMF_
SBI
_HPP_SEEN */
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