|
|
@ -118,6 +118,10 @@ bool ric_client::send_e2_msg(e2_msg_type_t msg_type)
|
|
|
|
send_pdu = e2ap_.generate_subscription_response();
|
|
|
|
send_pdu = e2ap_.generate_subscription_response();
|
|
|
|
message_name = "E2 SUBSCRIPTION RESPONSE";
|
|
|
|
message_name = "E2 SUBSCRIPTION RESPONSE";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case e2_msg_type_t::E2_SUB_DEL_RESPONSE:
|
|
|
|
|
|
|
|
send_pdu = e2ap_.generate_subscription_delete_response();
|
|
|
|
|
|
|
|
message_name = "E2 SUBSCRIPTION DELETE RESPONSE";
|
|
|
|
|
|
|
|
break;
|
|
|
|
case e2_msg_type_t::E2_INDICATION:
|
|
|
|
case e2_msg_type_t::E2_INDICATION:
|
|
|
|
send_pdu = e2ap_.generate_indication();
|
|
|
|
send_pdu = e2ap_.generate_indication();
|
|
|
|
message_name = "E2 INDICATION";
|
|
|
|
message_name = "E2 INDICATION";
|
|
|
@ -183,7 +187,7 @@ bool ric_client::handle_e2_init_msg(asn1::e2ap::init_msg_s& init_msg)
|
|
|
|
handle_ric_subscription_request(init_msg.value.ricsubscription_request());
|
|
|
|
handle_ric_subscription_request(init_msg.value.ricsubscription_request());
|
|
|
|
} else if (init_msg.value.type() == e2_ap_elem_procs_o::init_msg_c::types_opts::ricsubscription_delete_request) {
|
|
|
|
} else if (init_msg.value.type() == e2_ap_elem_procs_o::init_msg_c::types_opts::ricsubscription_delete_request) {
|
|
|
|
logger.info("Received E2AP RIC Subscription Delete Request");
|
|
|
|
logger.info("Received E2AP RIC Subscription Delete Request");
|
|
|
|
// handle_ric_subscription_delete_request(init_msg.value.ricsubscription_delete_request());
|
|
|
|
handle_ric_subscription_delete_request(init_msg.value.ricsubscription_delete_request());
|
|
|
|
} else if (init_msg.value.type() == e2_ap_elem_procs_o::init_msg_c::types_opts::ri_cctrl_request) {
|
|
|
|
} else if (init_msg.value.type() == e2_ap_elem_procs_o::init_msg_c::types_opts::ri_cctrl_request) {
|
|
|
|
logger.info("Received E2AP RIC Control Request");
|
|
|
|
logger.info("Received E2AP RIC Control Request");
|
|
|
|
// handle_ri_cctrl_request(init_msg.value.ri_cctrl_request());
|
|
|
|
// handle_ri_cctrl_request(init_msg.value.ri_cctrl_request());
|
|
|
@ -270,6 +274,14 @@ bool ric_client::handle_ric_subscription_request(ricsubscription_request_s ric_s
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool ric_client::handle_ric_subscription_delete_request(ricsubscription_delete_request_s ricsubscription_delete_request)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
auto send_resp = [this]() { send_e2_msg(E2_SUB_DEL_RESPONSE); };
|
|
|
|
|
|
|
|
ric_rece_task_queue.push(send_resp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool ric_client::handle_reset_request(reset_request_s& reset_request)
|
|
|
|
bool ric_client::handle_reset_request(reset_request_s& reset_request)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Received E2AP E2 Reset Request \n");
|
|
|
|
printf("Received E2AP E2 Reset Request \n");
|
|
|
|