diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-03-06 17:26:41 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2007-03-06 17:26:41 +0000 |
commit | aaf9793f442e14a80da56342f11fba24a57f8b3a (patch) | |
tree | a529efa2d63597204afb745109350bf3298acd83 /orkaudio/audiocaptureplugins/voip/Iax2Session.cpp | |
parent | bbb1a16f102f947b3841d5275512d867da797182 (diff) |
Corrected issue where IAX2 checks masked SIP traffic
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@428 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/Iax2Session.cpp')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/Iax2Session.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/Iax2Session.cpp b/orkaudio/audiocaptureplugins/voip/Iax2Session.cpp index 8b6c3e0..6216f71 100644 --- a/orkaudio/audiocaptureplugins/voip/Iax2Session.cpp +++ b/orkaudio/audiocaptureplugins/voip/Iax2Session.cpp @@ -788,8 +788,8 @@ void Iax2Sessions::Stop(Iax2SessionRef& session) } } - -void Iax2Sessions::ReportIax2Packet(Iax2PacketInfoRef& iax2Packet) +/* Returns false if there is no matching session */ +bool Iax2Sessions::ReportIax2Packet(Iax2PacketInfoRef& iax2Packet) { Iax2SessionRef session; CStdString logMsg, sourcecallno, IpAndCallNo; @@ -817,10 +817,12 @@ void Iax2Sessions::ReportIax2Packet(Iax2PacketInfoRef& iax2Packet) if(!session->AddIax2Packet(iax2Packet)) { /* Discontinuity detected? */ Stop(session); + } else { + return true; } } - return; + return false; } /* Search in the destination IP map */ @@ -832,16 +834,20 @@ void Iax2Sessions::ReportIax2Packet(Iax2PacketInfoRef& iax2Packet) if(!session->AddIax2Packet(iax2Packet)) { /* Discontinuity detected? */ Stop(session); - } + } else { + return true; + } } - return; + return false; } /* XXX Tracking?? */ CStdString pktinfo; iax2Packet->ToString(pktinfo); //LOG4CXX_INFO(m_log, "Could not figure out where to place packet from "+IpAndCallNo+": [" + pktinfo +"]"); + + return false; } void Iax2Sessions::StopAll() |