From 22a0c4c7b84c0a408d095b5110ea20223bf2b709 Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Sun, 3 May 2020 11:56:55 +0100 Subject: [PATCH] Update YSFGateway.cpp Improve support for new 5 digit FCS hosts --- YSFGateway/YSFGateway.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 47d5717..dab4e5c 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -651,10 +651,13 @@ void CYSFGateway::processDTMF(unsigned char* buffer, unsigned char dt) case WXS_CONNECT_FCS: { std::string raw = m_dtmf.getReflector(); std::string id = "FCS00"; + std::string idShort = "FCS"; if (raw.length() == 2U) { id += raw.at(0U) + std::string("0") + raw.at(1U); } else if (raw.length() == 3U) { id += raw; + } else if (raw.length() == 5U) { + idShort += raw; } else { LogWarning("Nonsense from the DTMF decoder - \"%s\"", raw.c_str()); return;