Commit d446e563 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

code cleanup

parent c768dba0
...@@ -55,8 +55,6 @@ using namespace web; ...@@ -55,8 +55,6 @@ using namespace web;
using namespace web::http; using namespace web::http;
// Common features like URIs. // Common features like URIs.
using namespace web::http::client; using namespace web::http::client;
// Common HTTP functionality
using namespace config; using namespace config;
using namespace amf_application; using namespace amf_application;
extern itti_mw *itti_inst; extern itti_mw *itti_inst;
...@@ -121,14 +119,10 @@ void amf_n11_task(void*) { ...@@ -121,14 +119,10 @@ void amf_n11_task(void*) {
amf_n11_inst->handle_itti_message(ref(*m)); amf_n11_inst->handle_itti_message(ref(*m));
} }
break; break;
case PDU_SESS_RES_SET_RESP: { default: {
Logger::amf_n1().info( Logger::amf_n1().info(
"Receive PDU Session Resource Setup Response, handling ..."); "Receive unknown message type %d", msg->msg_type);
itti_pdu_session_resource_setup_response *m =
dynamic_cast<itti_pdu_session_resource_setup_response*>(msg);
amf_n11_inst->handle_itti_message(ref(*m));
} }
break;
} }
} while (true); } while (true);
} }
...@@ -147,12 +141,6 @@ amf_n11::amf_n11() { ...@@ -147,12 +141,6 @@ amf_n11::amf_n11() {
amf_n11::~amf_n11() { amf_n11::~amf_n11() {
} }
// itti message handlers
//------------------------------------------------------------------------------
void amf_n11::handle_itti_message(
itti_pdu_session_resource_setup_response &itti_msg) {
}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void amf_n11::handle_itti_message( void amf_n11::handle_itti_message(
itti_nsmf_pdusession_update_sm_context &itti_msg) { itti_nsmf_pdusession_update_sm_context &itti_msg) {
......
...@@ -47,7 +47,6 @@ class amf_n11 { ...@@ -47,7 +47,6 @@ class amf_n11 {
void handle_pdu_session_initial_request( void handle_pdu_session_initial_request(
std::string supi, std::shared_ptr<pdu_session_context> psc, std::string supi, std::shared_ptr<pdu_session_context> psc,
std::string smf_addr, bstring sm_msg, std::string dnn); std::string smf_addr, bstring sm_msg, std::string dnn);
void handle_itti_message(itti_pdu_session_resource_setup_response &itti_msg);
void handle_itti_message(itti_nsmf_pdusession_update_sm_context &itti_msg); void handle_itti_message(itti_nsmf_pdusession_update_sm_context &itti_msg);
void send_pdu_session_update_sm_context_request( void send_pdu_session_update_sm_context_request(
std::string supi, std::shared_ptr<pdu_session_context> psc, std::string supi, std::shared_ptr<pdu_session_context> psc,
......
...@@ -75,7 +75,6 @@ typedef enum { ...@@ -75,7 +75,6 @@ typedef enum {
N1N2_MESSAGE_TRANSFER_REQ, N1N2_MESSAGE_TRANSFER_REQ,
SMF_SERVICES_CONSUMER, SMF_SERVICES_CONSUMER,
NSMF_PDU_SESSION_UPDATE_SM_CTX, NSMF_PDU_SESSION_UPDATE_SM_CTX,
PDU_SESS_RES_SET_RESP,
TIME_OUT, TIME_OUT,
HEALTH_PING, HEALTH_PING,
TERMINATE, TERMINATE,
......
...@@ -282,7 +282,6 @@ int ngap_amf_handle_pdu_session_resource_release_response( ...@@ -282,7 +282,6 @@ int ngap_amf_handle_pdu_session_resource_release_response(
} }
return 0; return 0;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
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