summaryrefslogtreecommitdiff
path: root/orkbasecxx/Utils.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2008-01-23 15:27:59 +0000
committerHenri Herscher <henri@oreka.org>2008-01-23 15:27:59 +0000
commit27add11974dffb1d3a6b48d140e3f8dd689c995d (patch)
tree3bf94676aa61d4b78fe0276b1c3faa7d021cf2eb /orkbasecxx/Utils.h
parentf915e7cad47201430fdb9575ecd0a93efa0d1c2b (diff)
Added SipIgnoredMediaAddresses config parameter. If a SIP INVITE has an RTP address that matches this csv list of CIDR ranges, it will be ignored.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@521 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Utils.h')
-rw-r--r--orkbasecxx/Utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/orkbasecxx/Utils.h b/orkbasecxx/Utils.h
index a0ef277..048d7c9 100644
--- a/orkbasecxx/Utils.h
+++ b/orkbasecxx/Utils.h
@@ -104,6 +104,19 @@ private:
std::list<TcpAddress> m_addresses;
};
+class DLL_IMPORT_EXPORT_ORKBASE IpRanges
+{
+public:
+ bool Matches(struct in_addr ip);
+ void Compute();
+
+ std::list<CStdString> m_asciiIpRanges;
+private:
+ std::list<unsigned int> m_ipRangePrefixes;
+ std::list<unsigned int> m_ipRangeBitWidths;
+};
+
+
//=====================================================
// Miscellanous stuff