Commit e8a591e9 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

buxfix to test pdu session release notification

parent 921a0a21
...@@ -39,15 +39,16 @@ extern smf::smf_app *smf_app_inst; ...@@ -39,15 +39,16 @@ extern smf::smf_app *smf_app_inst;
extern itti_mw *itti_inst; extern itti_mw *itti_inst;
smf_event::smf_event() { smf_event::smf_event() {
//bind signal to slot type
bind();
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void smf_event::bind() { void smf_event::bind() {
//by default, subscribe to the events //by default, subscribe to the events
smf_event_inst->subscribe_sm_context_status_notification( subscribe_sm_context_status_notification(
boost::bind(&smf_event::send_sm_context_status_notification, this, _1, _1, boost::bind(&smf_event::send_sm_context_status_notification, this, _1, _1,
_1)); _1));
smf_event_inst->subscribe_ee_pdu_session_release( subscribe_ee_pdu_session_release(
boost::bind(&smf_event::send_ee_pdu_session_release, this, _1, _1, _1)); boost::bind(&smf_event::send_ee_pdu_session_release, this, _1, _1, _1));
} }
......
...@@ -54,6 +54,10 @@ class smf_event { ...@@ -54,6 +54,10 @@ class smf_event {
smf_event(smf_event const&) = delete; smf_event(smf_event const&) = delete;
void operator=(smf_event const&) = delete; void operator=(smf_event const&) = delete;
/*
* Bind the signals to corresponding slot for each event
* @return void
*/
void bind(); void bind();
/* /*
......
...@@ -450,6 +450,7 @@ void smf_n11::send_n1n2_message_transfer_request( ...@@ -450,6 +450,7 @@ void smf_n11::send_n1n2_message_transfer_request(
void smf_n11::send_sm_context_status_notification( void smf_n11::send_sm_context_status_notification(
std::shared_ptr<itti_n11_notify_sm_context_status> sm_context_status) { std::shared_ptr<itti_n11_notify_sm_context_status> sm_context_status) {
Logger::smf_n11().debug("Send SM Context Status Notification to AMF(HTTP version %d)", sm_context_status->http_version); Logger::smf_n11().debug("Send SM Context Status Notification to AMF(HTTP version %d)", sm_context_status->http_version);
Logger::smf_n11().debug("AMF URI: %s", sm_context_status->amf_status_uri.c_str());
nlohmann::json json_data = { }; nlohmann::json json_data = { };
//Fill the json part //Fill the json part
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment