//create ngap-ue context and store in gNB context to store UE information in gNB, for example, here RAN UE NGAP ID and location information and RRC Establishment Cause
//send NAS-PDU to NAS layer
/*get INITIAL_UE_MESSAGE IEs*/
//Get INITIAL_UE_MESSAGE IEs
//check the gNB context on which this UE is attached with assoc_id
Logger::amf_n2().error("No UE NGAP context with ran_ue_ngap_id(%d)",ran_ue_ngap_id);
Logger::amf_n2().error("No UE NGAP context with ran_ue_ngap_id(%d)",ran_ue_ngap_id);
return;
}
unc=ran_ue_id_2_ue_ngap_context(ran_ue_ngap_id);
if(unc.get()->amf_ue_ngap_id!=amf_ue_ngap_id){
Logger::amf_n2().error("The requested UE(amf_ue_ngap_id:0x%x) is not valid, existed UE which's amf_ue_ngap_id(0x%x)",amf_ue_ngap_id,unc.get()->amf_ue_ngap_id);
Logger::amf_n2().error("The requested UE (amf_ue_ngap_id: 0x%x) is not valid, existed UE which's amf_ue_ngap_id (0x%x)",amf_ue_ngap_id,unc.get()->amf_ue_ngap_id);
}
if(unc.get()->ng_ue_state!=NGAP_UE_CONNECTED){
Logger::amf_n2().error("Received NGAP UPLINK_NAS_TRANSPORT while UE in state != NGAP_UE_CONNECTED");