diff options
author | Henri Herscher <henri@oreka.org> | 2009-01-18 22:59:16 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2009-01-18 22:59:16 +0000 |
commit | fb0f29baaf0c4252e69c527367356c3c0bd1dda0 (patch) | |
tree | ecc4c20d7b11ebc3d0dfa6b824f5fdf66e95ca2c | |
parent | f8b12e6f3c5cdf3eee5368ef71a85c0e0ae05ecb (diff) |
session m_lastUpdated timestamp is now updated when going off hold so that the session does not expire immediately because of hold RTP inactivity.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@595 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/RtpSession.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp index a8b2d40..aa16387 100644 --- a/orkaudio/audiocaptureplugins/voip/RtpSession.cpp +++ b/orkaudio/audiocaptureplugins/voip/RtpSession.cpp @@ -1188,6 +1188,7 @@ void RtpSessions::ReportSipInvite(SipInviteInfoRef& invite) if(session->m_onHold) { session->m_onHold = false; + session->m_lastUpdated = time(NULL); // so that timeout countdown is reset LOG4CXX_INFO(m_log, "[" + session->m_trackingId + "] SIP session going off hold"); return; } @@ -1220,6 +1221,7 @@ void RtpSessions::ReportSipInvite(SipInviteInfoRef& invite) if(session->m_onHold) { session->m_onHold = false; + session->m_lastUpdated = time(NULL); // so that timeout countdown is reset LOG4CXX_INFO(m_log, "[" + session->m_trackingId + "] SIP session going off hold"); return; } @@ -1972,6 +1974,7 @@ void RtpSessions::ReportSkinnySoftKeyResume(SkSoftKeyEventMessageStruct* skEvent if(session.get()) { session->m_onHold = false; + session->m_lastUpdated = time(NULL); // so that timeout countdown is reset logMsg.Format("[%s] Going off hold due to SoftKeyEvent: RESUME", session->m_trackingId); LOG4CXX_INFO(m_log, logMsg); } |