diff --git a/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs b/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs index 8e7ead1..6894911 100644 --- a/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs +++ b/ProjectPlugins/CodexPlugin/CodexStartupConfig.cs @@ -53,7 +53,7 @@ namespace CodexPlugin "connmanager", "websock", "ws-session", - "dialer", + // Removed: "dialer", is used for transcript event generation. "muxedupgrade", "upgrade", "identify" diff --git a/ProjectPlugins/CodexPlugin/OverwatchSupport/CodexLogConverter.cs b/ProjectPlugins/CodexPlugin/OverwatchSupport/CodexLogConverter.cs index 0754d9d..1dbdf47 100644 --- a/ProjectPlugins/CodexPlugin/OverwatchSupport/CodexLogConverter.cs +++ b/ProjectPlugins/CodexPlugin/OverwatchSupport/CodexLogConverter.cs @@ -56,7 +56,8 @@ namespace CodexPlugin.OverwatchSupport private readonly ILineConverter[] converters = new ILineConverter[] { new BlockReceivedLineConverter(), - new BootstrapLineConverter() + new BootstrapLineConverter(), + new DialSuccessfulLineConverter(), }; public ConversionRunner(ITranscriptWriter writer, string name, string peerId) diff --git a/ProjectPlugins/CodexPlugin/OverwatchSupport/LineConverters/DialSuccessfulLineConverter.cs b/ProjectPlugins/CodexPlugin/OverwatchSupport/LineConverters/DialSuccessfulLineConverter.cs new file mode 100644 index 0000000..3858633 --- /dev/null +++ b/ProjectPlugins/CodexPlugin/OverwatchSupport/LineConverters/DialSuccessfulLineConverter.cs @@ -0,0 +1,20 @@ +namespace CodexPlugin.OverwatchSupport.LineConverters +{ + public class DialSuccessfulLineConverter : ILineConverter + { + public string Interest => "Dial successful"; + + public void Process(CodexLogLine line, Action> addEvent) + { + var peerId = line.Attributes["peerId"]; + + addEvent(e => + { + e.DialSuccessful = new DialSuccessfulEvent + { + TargetPeerId = peerId + }; + }); + } + } +} diff --git a/ProjectPlugins/CodexPlugin/OverwatchSupport/ModelExtensions.cs b/ProjectPlugins/CodexPlugin/OverwatchSupport/ModelExtensions.cs index 16e396a..6be3825 100644 --- a/ProjectPlugins/CodexPlugin/OverwatchSupport/ModelExtensions.cs +++ b/ProjectPlugins/CodexPlugin/OverwatchSupport/ModelExtensions.cs @@ -21,6 +21,7 @@ namespace CodexPlugin.OverwatchSupport public FileUploadedEvent? FileUploaded { get; set; } public FileDownloadedEvent? FileDownloaded { get; set; } public BlockReceivedEvent? BlockReceived { get; set; } + public DialSuccessfulEvent? DialSuccessful { get; set; } public void Write(DateTime utc, ITranscriptWriter writer) { @@ -96,5 +97,11 @@ namespace CodexPlugin.OverwatchSupport public string SenderPeerId { get; set; } = string.Empty; } + [Serializable] + public class DialSuccessfulEvent + { + public string TargetPeerId { get; set; } = string.Empty; + } + #endregion }