gnb,ngap: Add basic handler for NGAP Paging

master
Bedran Karakoc 3 years ago committed by Andre Puschmann
parent 4cda49a037
commit 6112871da9

@ -138,6 +138,8 @@ private:
bool handle_initial_ctxt_setup_request(const asn1::ngap::init_context_setup_request_s& msg); bool handle_initial_ctxt_setup_request(const asn1::ngap::init_context_setup_request_s& msg);
// TS 38.413 - Section 9.2.1.1 - PDU Session Resource Setup Request // TS 38.413 - Section 9.2.1.1 - PDU Session Resource Setup Request
bool handle_ue_pdu_session_res_setup_request(const asn1::ngap::pdu_session_res_setup_request_s& msg); bool handle_ue_pdu_session_res_setup_request(const asn1::ngap::pdu_session_res_setup_request_s& msg);
// TS 38.413 - Section 9.2.4.1 - Paging
bool handle_paging(const asn1::ngap::paging_s& msg);
// PCAP // PCAP
srsran::ngap_pcap* pcap = nullptr; srsran::ngap_pcap* pcap = nullptr;

@ -435,6 +435,8 @@ bool ngap::handle_initiating_message(const asn1::ngap::init_msg_s& msg)
return handle_ue_context_release_cmd(msg.value.ue_context_release_cmd()); return handle_ue_context_release_cmd(msg.value.ue_context_release_cmd());
case ngap_elem_procs_o::init_msg_c::types_opts::pdu_session_res_setup_request: case ngap_elem_procs_o::init_msg_c::types_opts::pdu_session_res_setup_request:
return handle_ue_pdu_session_res_setup_request(msg.value.pdu_session_res_setup_request()); return handle_ue_pdu_session_res_setup_request(msg.value.pdu_session_res_setup_request());
case ngap_elem_procs_o::init_msg_c::types_opts::paging:
return handle_paging(msg.value.paging());
default: default:
logger.error("Unhandled initiating message: %s", msg.value.type().to_string()); logger.error("Unhandled initiating message: %s", msg.value.type().to_string());
} }
@ -574,6 +576,20 @@ bool ngap::handle_ue_pdu_session_res_setup_request(const asn1::ngap::pdu_session
return true; return true;
} }
bool ngap::handle_paging(const asn1::ngap::paging_s& msg)
{
logger.info("Paging is not supported yet.");
// TODO: Handle Paging after RRC Paging is implemented
// uint32_t ue_paging_id = msg->ue_paging_id.id;
// Note: IMSI Paging is not supported in NR
// uint64_t tmsi = msg->ue_paging_id.value.five_g_s_tmsi().five_g_tmsi.to_number();
// rrc->add_paging(ue_paging_id, tmsi);
return true;
}
/******************************************************************************* /*******************************************************************************
/* NGAP message senders /* NGAP message senders
********************************************************************************/ ********************************************************************************/

Loading…
Cancel
Save