maximum DTMF INFO key press length

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@510 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 96070613fb
commit fcad45df8d

@ -33,6 +33,11 @@
#include <math.h>
#include <sys/time.h>
// per RFC this is 5000ms, but in reality then
// one needs to wait 5 sec on the first keypress
// (e.g. due to a bug on recent snoms)
#define MAX_INFO_DTMF_LENGTH 1000
//
// AmDtmfEventQueue methods
//
@ -119,6 +124,9 @@ void AmSipDtmfEvent::parseLine(const string& line)
line.substr(0, KeyDuration.length()) == KeyDuration)
{
m_duration_msec = atol(line.substr(KeyDuration.length(), string::npos).c_str());
if (m_duration_msec > MAX_INFO_DTMF_LENGTH)
m_duration_msec = MAX_INFO_DTMF_LENGTH;
}
}

Loading…
Cancel
Save