summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.h
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2008-03-06 17:52:46 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2008-03-06 17:52:46 +0000
commitc8218d259f148e5eb267369a2e508d43570291c0 (patch)
tree7b6b1243e3e72dc5efa3f24704226e4ff72cb1a0 /orkaudio/audiocaptureplugins/voip/RtpSession.h
parent0937742d2f5689c93efca3a5a56e8b36f81152c7 (diff)
Changed the way direction is determined while recording SIP-based VoIP sessions. A new configuration parameter, SipDomains, has been created and should be set under the VoIpPlugin section in config.xml. This parameter should contain a comma separated list of domains. So, if the domain of the SIP "from" URI matches any entry in this list, direction is set to "out". If the domain of the SIP "to" URI matches any entry in this list, direction is set to "in". If both domains of the "from" and "to" URIs match entries in this list, direction is set to "out" which is also the default case.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@527 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/RtpSession.h')
-rw-r--r--orkaudio/audiocaptureplugins/voip/RtpSession.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/RtpSession.h b/orkaudio/audiocaptureplugins/voip/RtpSession.h
index 392d7bf..82515d5 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.h
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h
@@ -44,6 +44,8 @@ public:
std::map<CStdString, CStdString> m_extractedFields;
CStdString m_telephoneEventPayloadType;
bool m_telephoneEventPtDefined;
+ CStdString m_fromDomain;
+ CStdString m_toDomain;
time_t m_recvTime;
};
@@ -158,6 +160,7 @@ private:
void GenerateOrkUid();
void HandleRtpEvent(RtpPacketInfoRef& rtpPacket);
void RecordRtpEvent();
+ bool MatchesSipDomain(CStdString& domain);
RtpPacketInfoRef m_lastRtpPacket;
RtpPacketInfoRef m_lastRtpPacketSide1;