From e0ae088c63989b7d359e8b95d9008a7db806e175 Mon Sep 17 00:00:00 2001 From: Scott Hardin Date: Mon, 22 May 2017 06:46:11 +0200 Subject: [PATCH] dtmf: squelch logging of keystrokes --- PjsuaCommunicator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PjsuaCommunicator.cpp b/PjsuaCommunicator.cpp index 5bbd78a..a190717 100644 --- a/PjsuaCommunicator.cpp +++ b/PjsuaCommunicator.cpp @@ -192,14 +192,14 @@ namespace sip { } void _Call::onDtmfDigit(pj::OnDtmfDigitParam &prm) { - communicator.logger.notice("DTMF digit '%s' (call %d).", - prm.digit.c_str(), getId()); + //communicator.logger.notice("DTMF digit '%s' (call %d).", + // prm.digit.c_str(), getId()); pj::CallOpParam param; if ( communicator.pin.length() > 0 ) { if ( prm.digit == "#" ) { - communicator.logger.notice("DTMF got string command %s", - communicator.got_dtmf.c_str()); + //communicator.logger.notice("DTMF got string command %s", + // communicator.got_dtmf.c_str()); if ( communicator.got_dtmf == communicator.pin ) { communicator.logger.notice("Caller entered correct PIN"); communicator.onMuteDeafChange(0); @@ -210,8 +210,8 @@ namespace sip { } communicator.got_dtmf = ""; } else { - communicator.logger.notice("DTMF append %s to %s", - prm.digit.c_str(), communicator.got_dtmf.c_str()); + // communicator.logger.notice("DTMF append %s to %s", + // prm.digit.c_str(), communicator.got_dtmf.c_str()); communicator.got_dtmf = communicator.got_dtmf + prm.digit; } } else {