Module: sems
Branch: 1.2
Commit: 53c9f3158715a883f016c519c55b6b8a26d0363f
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=53c9f3158715a883f016c519c55b6b8a26d0363f

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Apr 27 09:15:31 2010 +0000

fixed DTMF propagation (only for RTP events)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/tr...@1836 
8eb893ce-cfd4-0310-b710-fb5ebe64c474

---

 core/AmDtmfDetector.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/AmDtmfDetector.cpp b/core/AmDtmfDetector.cpp
index f52df7d..678ccdd 100644
--- a/core/AmDtmfDetector.cpp
+++ b/core/AmDtmfDetector.cpp
@@ -254,8 +254,10 @@ void AmDtmfDetector::registerKeyReleased(int event, 
Dtmf::EventSource source,
 
   m_eventPending = true;
   m_currentEvent = event;
-  m_current_eventid_i = true;
-  m_current_eventid = event_id;
+  if (has_eventid) {
+    m_current_eventid_i = true;
+    m_current_eventid = event_id;
+  }
 
   memcpy(&m_startTime, &start, sizeof(struct timeval));
   memcpy(&m_lastReportTime, &stop, sizeof(struct timeval));

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to