@@ -1241,13 +1308,13 @@ void amf_n1::security_mode_complete_handle(uint32_t ran_ue_ngap_id, long amf_ue_
}
if(!uc.get()->isUeContextRequest){
Logger::amf_n1().debug("UE Context is not requested, ue with ran_ue_ngap_id %d, amf_ue_ngap_id %d attached",ran_ue_ngap_id,amf_ue_ngap_id);
Logger::amf_n1().debug("UE Context is not requested, UE with ran_ue_ngap_id %d, amf_ue_ngap_id %d attached",ran_ue_ngap_id,amf_ue_ngap_id);
//send registration accept back
}else{
//encoding InitialContextSetupRequest(NGAP message) back
std::shared_ptr<nas_context>nc;
nc=amf_ue_id_2_nas_context(amf_ue_ngap_id);
Logger::amf_n1().info("UE (IMSI %s, GUTI %s, current RAN ID %d, current AMF ID %d) has been registered into network",nc.get()->imsi.c_str(),guti.c_str(),ran_ue_ngap_id,amf_ue_ngap_id);
Logger::amf_n1().info("UE (IMSI %s, GUTI %s, current RAN ID %d, current AMF ID %d) has been registered to the network",nc.get()->imsi.c_str(),guti.c_str(),ran_ue_ngap_id,amf_ue_ngap_id);
if(nc.get()->is_stacs_available){
intindex=0;
for(inti=0;i<stacs.ues.size();i++){
...
...
@@ -1258,7 +1325,7 @@ void amf_n1::security_mode_complete_handle(uint32_t ran_ue_ngap_id, long amf_ue_
//TODO: should be removed, since we stored list of common PLMNs
gnbItem.mcc=s_ta_list[0].b_plmn_list[0].mcc;
gnbItem.mnc=s_ta_list[0].b_plmn_list[0].mnc;
gnbItem.tac=s_ta_list[0].tac;
//association GlobalRANNodeID with assoc_id
//store RAN Node Name in gNB context, if present
//verify PLMN Identity and TAC with configuration and store supportedTAList in gNB context, if verified; else response NG SETUP FAILURE with cause "Unknown PLMN"(9.3.1.2, ts38413)
//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*/
//check the gNB context on which this UE is attached with assoc_id