summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/RtpSession.h
diff options
context:
space:
mode:
authorGerald Begumisa <ben_g@users.sourceforge.net>2009-07-10 15:38:59 +0000
committerGerald Begumisa <ben_g@users.sourceforge.net>2009-07-10 15:38:59 +0000
commit8358b29b488a3ce5121c8887424adb5f410d5520 (patch)
tree6c99c6e54ff1cf5cd244864dc900a4fa65217d4e /orkaudio/audiocaptureplugins/voip/RtpSession.h
parent37af020b54aea14ebb12cfe5aafd612c10e23214 (diff)
Implemented a localpartymap feature whereby a local party value may be swapped for another value. To use this feature, the mappings should be added to a file called localpartymap.csv, placed in /etc/orkaudio or in the directory where the orkaudio executable is. The format of localpartymap.csv should be oldlocalparty, newlocalparty - with only one mapping entry per line.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@625 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 221c771..42fe9e7 100644
--- a/orkaudio/audiocaptureplugins/voip/RtpSession.h
+++ b/orkaudio/audiocaptureplugins/voip/RtpSession.h
@@ -267,6 +267,8 @@ public:
void StartCaptureOrkuid(CStdString& orkuid);
void PauseCapture(CStdString& party);
void PauseCaptureOrkuid(CStdString& orkuid);
+ void SaveLocalPartyMap(char *oldparty, char *newparty);
+ CStdString GetLocalPartyMap(CStdString& oldlocalparty);
private:
RtpSessionRef findByEndpointIp(struct in_addr endpointIpAddr, int passThruPartyId = 0);
@@ -281,6 +283,7 @@ private:
std::map<CStdString, RtpSessionRef> m_byIpAndPort;
std::map<CStdString, RtpSessionRef> m_byCallId;
std::map<unsigned int, EndpointInfoRef> m_endpoints;
+ std::map<CStdString, CStdString> m_localPartyMap;
LoggerPtr m_log;
AlphaCounter m_alphaCounter;
};