dtmf: squelch logging of keystrokes
This commit is contained in:
parent
dc77504338
commit
e0ae088c63
@ -192,14 +192,14 @@ namespace sip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _Call::onDtmfDigit(pj::OnDtmfDigitParam &prm) {
|
void _Call::onDtmfDigit(pj::OnDtmfDigitParam &prm) {
|
||||||
communicator.logger.notice("DTMF digit '%s' (call %d).",
|
//communicator.logger.notice("DTMF digit '%s' (call %d).",
|
||||||
prm.digit.c_str(), getId());
|
// prm.digit.c_str(), getId());
|
||||||
pj::CallOpParam param;
|
pj::CallOpParam param;
|
||||||
|
|
||||||
if ( communicator.pin.length() > 0 ) {
|
if ( communicator.pin.length() > 0 ) {
|
||||||
if ( prm.digit == "#" ) {
|
if ( prm.digit == "#" ) {
|
||||||
communicator.logger.notice("DTMF got string command %s",
|
//communicator.logger.notice("DTMF got string command %s",
|
||||||
communicator.got_dtmf.c_str());
|
// communicator.got_dtmf.c_str());
|
||||||
if ( communicator.got_dtmf == communicator.pin ) {
|
if ( communicator.got_dtmf == communicator.pin ) {
|
||||||
communicator.logger.notice("Caller entered correct PIN");
|
communicator.logger.notice("Caller entered correct PIN");
|
||||||
communicator.onMuteDeafChange(0);
|
communicator.onMuteDeafChange(0);
|
||||||
@ -210,8 +210,8 @@ namespace sip {
|
|||||||
}
|
}
|
||||||
communicator.got_dtmf = "";
|
communicator.got_dtmf = "";
|
||||||
} else {
|
} else {
|
||||||
communicator.logger.notice("DTMF append %s to %s",
|
// communicator.logger.notice("DTMF append %s to %s",
|
||||||
prm.digit.c_str(), communicator.got_dtmf.c_str());
|
// prm.digit.c_str(), communicator.got_dtmf.c_str());
|
||||||
communicator.got_dtmf = communicator.got_dtmf + prm.digit;
|
communicator.got_dtmf = communicator.got_dtmf + prm.digit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user