forked from sipXcom/sipxecs
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'oss_core/' from commit 'f2eab901e0c816ba9cd6e22aca7d0e4ae9458bc8'
- Loading branch information
Showing
1,214 changed files
with
232,480 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
nbproject | ||
Makefile.in | ||
aclocal.m4 | ||
autom4te.cache/ | ||
configure | ||
/BUILD/ | ||
.build | ||
/nbproject/private/ | ||
src/boost_pch.hpp.gch | ||
*.lo | ||
*.o | ||
*.deps | ||
*.dirstamp | ||
*.a | ||
*.la | ||
*.so | ||
/build/ | ||
Makefile | ||
config/compile | ||
config/ltmain.sh | ||
config/test-driver | ||
include/Makefile | ||
include/OSS/build.h | ||
src/Makefile | ||
src/config.h.* | ||
/src/js/nbproject/private/ | ||
/src/js/modules/examples/nbproject/private/ | ||
config.log | ||
config.status | ||
debian.control | ||
libtool | ||
oss_core.spec | ||
src/.libs/ | ||
src/apps/AccessList.js.h | ||
src/apps/AuthProfile.js.h | ||
src/apps/PropertyObject.js.h | ||
src/apps/RouteProfile.js.h | ||
src/apps/SIPMessage.js.h | ||
src/apps/TransactionProfile.js.h | ||
src/config.h | ||
src/js/OSSJS_modules.js.h | ||
src/oss_carp | ||
src/oss_core | ||
src/oss_garp | ||
src/ossjs | ||
src/stamp-h1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
sudo: required | ||
dist: trusty | ||
language: cpp | ||
compiler: | ||
- gcc | ||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y libpoco-dev | ||
- sudo apt-get install -y libboost-all-dev | ||
- sudo apt-get install -y libzmq-dev | ||
- sudo apt-get install -y libv8-dev | ||
- sudo apt-get install -y libhiredis-dev | ||
- sudo apt-get install -y libconfig++-dev | ||
- sudo apt-get install -y libpcap-dev | ||
- sudo apt-get install -y libdb++-dev | ||
script: autoreconf -if && ./configure && make | ||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
06-13-2012: Added FURI field in incoming packet log entry for parsers to | ||
properly identify the caller when grepping. | ||
|
||
06-03-2012: Changed buffer size for RTP read/write buffers from | ||
1024 to 8192 to accomodate for packet resizing | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Copyright (c) OSS Software Solutions | ||
|
||
Permission is hereby granted, to any person or organization | ||
obtaining a copy of the software and accompanying documentation covered by | ||
this license (the "Software") to use, execute, and to prepare | ||
derivative works of the Software, all subject to the | ||
"GNU Lesser General Public License (LGPL)". | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
include config/utility.am | ||
include config/project.am | ||
|
||
@PACKAGE@_EXTRA_DIST = \ | ||
README | ||
|
||
SUBDIRS = . | ||
SUBDIRS += src | ||
SUBDIRS += include | ||
|
||
system-install: | ||
mkdir -p .system-install | ||
cd .system-install && ../../configure \ | ||
--enable-all-features \ | ||
--program-prefix= \ | ||
--prefix=/usr \ | ||
--exec-prefix=/usr \ | ||
--bindir=/usr/bin \ | ||
--sbindir=/usr/sbin \ | ||
--sysconfdir=/etc \ | ||
--datadir=/usr/share \ | ||
--includedir=/usr/include \ | ||
--libdir=/usr/lib \ | ||
--libexecdir=/usr/libexec \ | ||
--localstatedir=/var \ | ||
--sharedstatedir=/var/lib \ | ||
--mandir=/usr/share/man \ | ||
--infodir=/usr/share/info | ||
cd .system-install && make -j4 install | ||
|
||
rpm: dist | ||
rm -rf `pwd`/RPMBUILD && rm -rf `pwd`/RPMS; \ | ||
mkdir -p `pwd`/RPMBUILD/{BUILD,SOURCES,RPMS,SRPMS,SPECS}; \ | ||
rpmbuild -ta --define "%_topdir `pwd`/RPMBUILD" oss_core*.gz; \ | ||
mv `pwd`/RPMBUILD/RPMS `pwd`/RPMS && rm -rf `pwd`/RPMBUILD | ||
|
||
install-rpm: rpm | ||
yum localinstall -y RPMS/x86_64/*.rpm | ||
|
||
deb: | ||
rm -rf `pwd`/DEBBUILD | ||
mkdir -p `pwd`/DEBBUILD/libosscore-@VERSION@/DEBIAN | ||
DESTDIR=`pwd`/DEBBUILD/libosscore-@VERSION@ make install | ||
cp debian.control `pwd`/DEBBUILD/libosscore-@VERSION@/DEBIAN/control | ||
cd DEBBUILD && dpkg-deb --build libosscore-@VERSION@ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
## The OSS Core library currently provides classes that encapsulate functions and operations for: | ||
|
||
* SIP ABNF Parser | ||
* SIP Finite State Machines | ||
* SIP B2B User Agent | ||
* CommonJS Java Script Engine using Google V8 | ||
* SIP Over Websockets | ||
* STUN server | ||
* RTP Proxy | ||
* CARP High Availability | ||
* SIPCapture (HEP3) | ||
* REST Persistence Store | ||
* BSON/JSON Parser | ||
* RAFT Consensus | ||
|
||
## Minimal Prerequisites (Mac and Linux) | ||
### Mac build is tested using homebrew installed packages | ||
* openssl-devel | ||
* boost-devel | ||
* poco-devel | ||
|
||
Note: In Mac, you will need to create a softlink of the openssl include directory in /usr/local/include | ||
|
||
## Prerequisites (CentOS or Fedora) | ||
----------------------------------- | ||
You can use the spec file to install all dependencies | ||
|
||
To list build dependencies | ||
|
||
grep '^BuildRequires' oss_core/oss_core.spec.in | awk '{print $2}' | ||
|
||
To list runtime dependencies | ||
|
||
grep '^Requires' oss_core/oss_core.spec.in | awk '{print $2}' | ||
|
||
To install build dependencies | ||
|
||
sudo yum install -y `grep '^BuildRequires' oss_core/oss_core.spec.in | awk '{print $2}'` | ||
|
||
## Prerequisites for Ubuntu | ||
apt-get -qq update | ||
apt-get install -y build-essential autoconf libtool | ||
apt-get install -y libpoco-dev libboost-all-dev libzmq3-dev libv8-dev libhiredis-dev libconfig++-dev libpcap-dev | ||
|
||
## Optional dependencies for Ubuntu | ||
apt-get install -y libleveldb-dev libmcrypt-dev libdb++-dev | ||
|
||
|
||
## Building From Source (Mac and Linux) | ||
------------------------------------------ | ||
### Download the source code from https://github.com/joegen/oss_core and build it | ||
git clone https://github.com/joegen/oss_core.git | ||
cd oss_core | ||
autoreconf -if | ||
mkdir -p .build | ||
cd .build | ||
../configure | ||
make && sudo make install | ||
|
||
## Building RPMS (CentOS or Fedora) | ||
----------------------------------- | ||
|
||
### Create RPM Build environment | ||
echo "%_topdir $HOME/rpmbuild" >> ~/.rpmmacros | ||
mkdir -p ~/rpmbuild/{BUILD,SOURCES,RPMS,SRPMS,SPECS} | ||
cd oss_core | ||
autoreconf -if | ||
mkdir -p .build | ||
cd .build | ||
../configure --enable-all-features --disable-dep-check | ||
make dist | ||
rpmbuild -ta oss_core-*tar.gz | ||
|
||
## Building DEB (Debian or Ubuntu) | ||
----------------------------------- | ||
cd oss_core | ||
apt-get install -y debhelper pkg-config dh-autoreconf devscripts | ||
debuild -uc -us | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/config.guess | ||
/config.sub | ||
/depcomp | ||
/install-sh | ||
/missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
## Macros in Autoconf 2.66 that are not available in older autoconf versions. Such as the version on centos 5. | ||
|
||
m4_ifndef([AS_VERSION_COMPARE], | ||
[ | ||
## From m4sh.m4 | ||
# _AS_VERSION_COMPARE_PREPARE | ||
# --------------------------- | ||
# Output variables for comparing version numbers. | ||
m4_defun([_AS_VERSION_COMPARE_PREPARE], | ||
[[as_awk_strverscmp=' | ||
# Use only awk features that work with 7th edition Unix awk (1978). | ||
# My, what an old awk you have, Mr. Solaris! | ||
END { | ||
while (length(v1) && length(v2)) { | ||
# Set d1 to be the next thing to compare from v1, and likewise for d2. | ||
# Normally this is a single character, but if v1 and v2 contain digits, | ||
# compare them as integers and fractions as strverscmp does. | ||
if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | ||
# Split v1 and v2 into their leading digit string components d1 and d2, | ||
# and advance v1 and v2 past the leading digit strings. | ||
for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | ||
for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | ||
d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | ||
d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | ||
if (d1 ~ /^0/) { | ||
if (d2 ~ /^0/) { | ||
# Compare two fractions. | ||
while (d1 ~ /^0/ && d2 ~ /^0/) { | ||
d1 = substr(d1, 2); len1-- | ||
d2 = substr(d2, 2); len2-- | ||
} | ||
if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | ||
# The two components differ in length, and the common prefix | ||
# contains only leading zeros. Consider the longer to be less. | ||
d1 = -len1 | ||
d2 = -len2 | ||
} else { | ||
# Otherwise, compare as strings. | ||
d1 = "x" d1 | ||
d2 = "x" d2 | ||
} | ||
} else { | ||
# A fraction is less than an integer. | ||
exit 1 | ||
} | ||
} else { | ||
if (d2 ~ /^0/) { | ||
# An integer is greater than a fraction. | ||
exit 2 | ||
} else { | ||
# Compare two integers. | ||
d1 += 0 | ||
d2 += 0 | ||
} | ||
} | ||
} else { | ||
# The normal case, without worrying about digits. | ||
d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | ||
d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | ||
} | ||
if (d1 < d2) exit 1 | ||
if (d1 > d2) exit 2 | ||
} | ||
# Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | ||
# which mishandles some comparisons of empty strings to integers. | ||
if (length(v2)) exit 1 | ||
if (length(v1)) exit 2 | ||
} | ||
']])# _AS_VERSION_COMPARE_PREPARE | ||
# AS_VERSION_COMPARE(VERSION-1, VERSION-2, | ||
# [ACTION-IF-LESS], [ACTION-IF-EQUAL], [ACTION-IF-GREATER]) | ||
# ---------------------------------------------------------------------------- | ||
# Compare two strings possibly containing shell variables as version strings. | ||
# | ||
# This usage is portable even to ancient awk, | ||
# so don't worry about finding a "nice" awk version. | ||
m4_defun([AS_VERSION_COMPARE], | ||
[AS_REQUIRE([_$0_PREPARE])], | ||
[as_arg_v1=$1 | ||
as_arg_v2=$2 | ||
awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | ||
AS_CASE([$?], | ||
[1], [$3], | ||
[0], [$4], | ||
[2], [$5])])# AS_VERSION_COMPARE | ||
]) |
Oops, something went wrong.