Commit 1b7d0e37 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Add ITTI Terminate msg

parent 92fb2038
......@@ -123,7 +123,7 @@ void amf_app_task(void*) {
amf_app_inst->handle_itti_message(ref(*m));
} break;
case TIME_OUT:
case TIME_OUT: {
if (itti_msg_timeout* to = dynamic_cast<itti_msg_timeout*>(msg)) {
switch (to->arg1_user) {
case TASK_AMF_APP_PERIODIC_STATISTICS:
......@@ -138,7 +138,14 @@ void amf_app_task(void*) {
to->arg1_user);
}
}
break;
} break;
case TERMINATE: {
if (itti_msg_terminate* terminate =
dynamic_cast<itti_msg_terminate*>(msg)) {
Logger::amf_n2().info("Received terminate message");
return;
}
} break;
default:
Logger::amf_app().info("no handler for msg type %d", msg->msg_type);
}
......
......@@ -111,6 +111,13 @@ void amf_n1_task(void*) {
dynamic_cast<itti_downlink_nas_transfer*>(msg);
amf_n1_inst->handle_itti_message(ref(*m));
} break;
case TERMINATE: {
if (itti_msg_terminate* terminate =
dynamic_cast<itti_msg_terminate*>(msg)) {
Logger::amf_n1().info("Received terminate message");
return;
}
} break;
default:
Logger::amf_n1().error("No handler for msg type %d", msg->msg_type);
}
......
......@@ -136,6 +136,13 @@ void amf_n11_task(void*) {
dynamic_cast<itti_sbi_notify_subscribed_event*>(msg);
amf_n11_inst->handle_itti_message(ref(*m));
} break;
case TERMINATE: {
if (itti_msg_terminate* terminate =
dynamic_cast<itti_msg_terminate*>(msg)) {
Logger::amf_n11().info("Received terminate message");
return;
}
} break;
default: {
Logger::amf_n11().info(
"Receive unknown message type %d", msg->msg_type);
......
......@@ -213,6 +213,13 @@ void amf_n2_task(void* args_p) {
itti_paging* m = dynamic_cast<itti_paging*>(msg);
amf_n2_inst->handle_itti_message(ref(*m));
} break;
case TERMINATE: {
if (itti_msg_terminate* terminate =
dynamic_cast<itti_msg_terminate*>(msg)) {
Logger::amf_n2().info("Received terminate message");
return;
}
} break;
default:
Logger::amf_n2().info("No handler for msg type %d", msg->msg_type);
}
......
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