From 22fad01ddc8aab813b3eb92dc0d0ecc87bb0a26a Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 23 Feb 2010 15:26:22 +0000 Subject: [PATCH] fix detection of same digits following each other when using DTMF RTP payload. drawback is little bigger reaction time. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1629 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmDtmfDetector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/AmDtmfDetector.h b/core/AmDtmfDetector.h index 5bef4862..08832d81 100644 --- a/core/AmDtmfDetector.h +++ b/core/AmDtmfDetector.h @@ -345,7 +345,7 @@ class AmRtpDtmfDetector // after MAX_PACKET_WAIT packets with no RTP DTMF packets received, // a RTP DTMF event is sent out to the aggregating detector - static const int MAX_PACKET_WAIT = 5; + static const int MAX_PACKET_WAIT = 8; /** * Time when first packet for current event was received */ @@ -382,7 +382,7 @@ class AmDtmfDetector public AmKeyPressSink { private: - static const int WAIT_TIMEOUT = 100; // miliseconds + static const int WAIT_TIMEOUT = 200; // miliseconds /** * Session this class belongs to. */