From 27734109e0fa7e2abaf37687f68cf634f263ae7d Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 3 Mar 2019 08:45:22 -0700 Subject: [PATCH] send closing voice frames on, even if they are out of sequence --- QnetGateway.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index dd179c3..3df69db 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1130,7 +1130,8 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b } } - if ((lastctrl + 1U) % 21U == (0x3FU & g2buf.ctrl)) { + if (((lastctrl + 1U) % 21U == (0x3FU & g2buf.ctrl)) || (0x40U & g2buf.ctrl)) { + // no matter what, we will send this on if it is the closing frame lastctrl = (0x3FU & g2buf.ctrl); Gate2Modem[i].Write(g2buf.title, 27); } else {