|
|
@ -127,18 +127,24 @@ void ric_client::ric_subscription::delete_subscription()
|
|
|
|
reporting_timer.stop();
|
|
|
|
reporting_timer.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ric_subscription_reponse_t ric_subscription_reponse;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ric_requestor_id = ric_requestor_id;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ric_instance_id = ric_instance_id;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ra_nfunction_id = ra_nfunction_id;
|
|
|
|
|
|
|
|
|
|
|
|
// remove registered actions from SM
|
|
|
|
// remove registered actions from SM
|
|
|
|
if (sm_ptr) {
|
|
|
|
if (sm_ptr) {
|
|
|
|
for (auto& action : admitted_actions) {
|
|
|
|
for (auto& action : admitted_actions) {
|
|
|
|
sm_ptr->remove_ric_action_definition(action);
|
|
|
|
sm_ptr->remove_ric_action_definition(action);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
e2_ap_pdu_c send_pdu = parent->e2ap_.generate_subscription_delete_failure(ric_subscription_reponse);
|
|
|
|
|
|
|
|
parent->queue_send_e2ap_pdu(send_pdu);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
parent->logger.debug("Send RIC Subscription Delete Response to RIC Requestor ID: %i\n", ric_requestor_id);
|
|
|
|
parent->logger.debug("Send RIC Subscription Delete Response to RIC Requestor ID: %i\n", ric_requestor_id);
|
|
|
|
ric_subscription_reponse_t ric_subscription_reponse;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ric_requestor_id = ric_requestor_id;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ric_instance_id = ric_instance_id;
|
|
|
|
|
|
|
|
ric_subscription_reponse.ra_nfunction_id = ra_nfunction_id;
|
|
|
|
|
|
|
|
e2_ap_pdu_c send_pdu = parent->e2ap_.generate_subscription_delete_response(ric_subscription_reponse);
|
|
|
|
e2_ap_pdu_c send_pdu = parent->e2ap_.generate_subscription_delete_response(ric_subscription_reponse);
|
|
|
|
parent->queue_send_e2ap_pdu(send_pdu);
|
|
|
|
parent->queue_send_e2ap_pdu(send_pdu);
|
|
|
|
}
|
|
|
|
}
|
|
|
|