@@ -1241,13 +1241,13 @@ void amf_n1::security_mode_complete_handle(uint32_t ran_ue_ngap_id, long amf_ue_
...
@@ -1241,13 +1241,13 @@ void amf_n1::security_mode_complete_handle(uint32_t ran_ue_ngap_id, long amf_ue_
}
}
if(!uc.get()->isUeContextRequest){
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
//send registration accept back
}else{
}else{
//encoding InitialContextSetupRequest(NGAP message) back
//encoding InitialContextSetupRequest(NGAP message) back
std::shared_ptr<nas_context>nc;
std::shared_ptr<nas_context>nc;
nc=amf_ue_id_2_nas_context(amf_ue_ngap_id);
nc=amf_ue_id_2_nas_context(amf_ue_ngap_id);
Logger::amf_n1().info("UE [imsi:%s][guti:%s][current ranid:%d][current amfid:%d] has been registred 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 into network",nc.get()->imsi.c_str(),guti.c_str(),ran_ue_ngap_id,amf_ue_ngap_id);
@@ -185,7 +185,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
...
@@ -185,7 +185,7 @@ int sctp_server::sctp_read_from_socket(int sd, uint32_t ppid) {
Logger::sctp().error("Received data from peer with unsolicited PPID (%d), expecting (%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
Logger::sctp().error("Received data from peer with unsolicited PPID (%d), expecting (%d)",ntohl(sinfo.sinfo_ppid),association->ppid);
returnSCTP_RC_ERROR;
returnSCTP_RC_ERROR;
}
}
Logger::sctp().info("[Assoc_id (%d)][Socket (%d)] Received a msg (length %d) from port %d, on stream %d, PPID %d",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));
Logger::sctp().info("[Assoc_id %d, Socket %d] Received a msg (length %d) from port %d, on stream %d, PPID %d",sinfo.sinfo_assoc_id,sd,n,ntohs(addr.sin6_port),sinfo.sinfo_stream,ntohl(sinfo.sinfo_ppid));