private void ParseAndPublishDialedCall(DialedCallReport rp) { var call = rp.ToProtobuf(); var msg = new PhoneCallEnded { JWToken = AC.SC.AccessToken, MsgReceivedAt = C.GetCurrentInstant().ToTS(), RawMsg = rp.RawLine, MitelCallEnded = call, }; CH.Publish(PBXConnectorTopics.PbxCallCompletedTopic, msg); }
private void ParseAndPublishRoomStatus(Match regexMatch) { var message = new TCPRoomStatusMessage() { JWToken = AC.SC.AccessToken, StatusCode = regexMatch.Groups[1].Value, TerminalIdentifier = regexMatch.Groups[2].Value }; CH.Publish(PBXConnectorTopics.TcpRoomStatusTopic, message); Log.LogDebug(string.Format(ReceivedMessageStringFormat, regexMatch.Groups[1], regexMatch.Groups[2])); }