From de4d229d7224c38963681d40a3bdd1343713fa7c Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 24 Apr 2018 11:03:30 -0700 Subject: [PATCH] different dtmf logs --- QnetGateway.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index a0384b1..d010a32 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1563,13 +1563,14 @@ void CQnetGateway::process() if ((ber_data[0] & 0x0ffc) == 0xfc0) { dtmf_digit = (ber_data[0] & 0x03) | ((ber_data[2] & 0x60) >> 3); if (dtmf_counter[i] > 0) { + if (bool_dtmf_debug) + printf("new digit=%d, counter[%d]=%d, lastframe=%d\n", + dtmf_digit, i, dtmf_counter[i], dtmf_last_frame[i]); if (dtmf_last_frame[i] != dtmf_digit) dtmf_counter[i] = 0; } dtmf_last_frame[i] = dtmf_digit; dtmf_counter[i]++; - if (bool_dtmf_debug) - printf("got a dtmf digit = %d and counter is %d\n", dtmf_digit, dtmf_counter[i]); if ((dtmf_counter[i] == 5) && (dtmf_digit >= 0) && (dtmf_digit <= 15)) { if (dtmf_buf_count[i] < MAX_DTMF_BUF) {