-
Notifications
You must be signed in to change notification settings - Fork 11
/
README
79 lines (61 loc) · 2.3 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
## 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