Browse Source

model

feature/protocol-log-Perfect
root 3 days ago
parent
commit
cf7da640a0
  1. 6
      CoreAgent.ProtocolClient/ProtocolEngineCore/LogDataConverter.cs

6
CoreAgent.ProtocolClient/ProtocolEngineCore/LogDataConverter.cs

@ -38,7 +38,7 @@ namespace CoreAgent.ProtocolClient.ProtocolEngineCore
var result = new List<TransferProtocolLog>(); var result = new List<TransferProtocolLog>();
var tmsiMatches =new List<TmsiMatchResult>(); var tmsiMatches =new List<TmsiMatchResult>();
var srTmsiMappings = new List<SrTmsiMapping>(); var srTmsiMappings = new List<SrTmsiMapping>();
if (_config.Name == "RAN") if (_config.Model == "RAN")
{ {
tmsiMatches = _context.UeIdentifier.GenerateTmsiMatches(); tmsiMatches = _context.UeIdentifier.GenerateTmsiMatches();
srTmsiMappings = _context.UeIdentifier.GenerateSrTmsiMappings(tmsiMatches); srTmsiMappings = _context.UeIdentifier.GenerateSrTmsiMappings(tmsiMatches);
@ -166,7 +166,7 @@ namespace CoreAgent.ProtocolClient.ProtocolEngineCore
MessageDetailJson = JsonConvert.SerializeObject(log.Data) MessageDetailJson = JsonConvert.SerializeObject(log.Data)
}; };
detail.Timestamp = TimeStampHelper.ConvertToFullTimestamp(log.Timestamp); detail.Timestamp = TimeStampHelper.ConvertToFullTimestamp(log.Timestamp);
if (_config.Name == "RAN") if (_config.Model == "RAN")
{ {
// 获取IMSI信息 // 获取IMSI信息
detail.IMSI = GetImsiFromUeList(log.UeId, tmsiMatches, srTmsiMappings); detail.IMSI = GetImsiFromUeList(log.UeId, tmsiMatches, srTmsiMappings);
@ -174,7 +174,7 @@ namespace CoreAgent.ProtocolClient.ProtocolEngineCore
// 获取PLMN信息 // 获取PLMN信息
detail.PLMN = GetPlmnFromPlmnToUeIdMapping(log.UeId, srTmsiMappings); detail.PLMN = GetPlmnFromPlmnToUeIdMapping(log.UeId, srTmsiMappings);
} }
if (_config.Name == "IMS") if (_config.Model == "IMS")
{ {
detail.IMSI = log.SIP.IMSI; detail.IMSI = log.SIP.IMSI;
detail.PLMN = log.SIP.Plmn; detail.PLMN = log.SIP.Plmn;

Loading…
Cancel
Save