diff options
author | Henri Herscher <henri@oreka.org> | 2009-06-23 21:22:57 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2009-06-23 21:22:57 +0000 |
commit | 37af020b54aea14ebb12cfe5aafd612c10e23214 (patch) | |
tree | 7a144cabe66488d1b44194d72af8fef30035310c /orkbasecxx/Utils.cpp | |
parent | 79bc58f84cecf79b2f451f4488adb4460b0f0d92 (diff) |
Added SipDirectionReferenceUserAgents VoIp config parameter. Any SIP INVITE with User Agent field matching an entry in this list will be considered incoming. Populated by default with "Asterisk".
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@624 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Utils.cpp')
-rw-r--r-- | orkbasecxx/Utils.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/orkbasecxx/Utils.cpp b/orkbasecxx/Utils.cpp index dca2200..f06d673 100644 --- a/orkbasecxx/Utils.cpp +++ b/orkbasecxx/Utils.cpp @@ -24,6 +24,23 @@ bool StringIsDigit(CStdString& string) return true; } +bool MatchesStringList(CStdString& string, std::list<CStdString>& stringList) +{ + if(string.size() == 0) + { + return false; + } + for(std::list<CStdString>::iterator it = stringList.begin(); it != stringList.end(); it++) + { + CStdString element = *it; + + if(element.CompareNoCase(string) == 0) + { + return true; + } + } + return false; +} //======================================================== // file related stuff |