sip-lab 1.12.25 → 1.12.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -21
- package/{install.sh → build_deps.sh} +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,6 +18,9 @@ TODO:
|
|
|
18
18
|
|
|
19
19
|
### Installation
|
|
20
20
|
|
|
21
|
+
This is an node.js addon and it is known to work on Ubuntu 18.04, Ubuntu 20.04, Debian 10 and Debian 11 (it is known to not work on Debian 8 unless you build the addon yourself).
|
|
22
|
+
It is discributed with prebuild binaries for node.js 15.0.0 and above (it is possible to use older versions of node but you will need to build the addon yourself).
|
|
23
|
+
|
|
21
24
|
This will require you to have some libraries installed. So do:
|
|
22
25
|
```
|
|
23
26
|
apt install build-essential automake autoconf libtool libspeex-dev libopus-dev libsdl2-dev libavdevice-dev libswscale-dev libv4l-dev libopencore-amrnb-dev libopencore-amrwb-dev libvo-amrwbenc-dev libopus-dev libsdl2-dev libopencore-amrnb-dev libopencore-amrwb-dev libvo-amrwbenc-dev libboost-dev libtiff-dev libpcap-dev libssl-dev uuid-dev
|
|
@@ -28,23 +31,12 @@ Then install sip-lab by doing:
|
|
|
28
31
|
npm install sip-lab
|
|
29
32
|
```
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
We will also download and build spandsp, bcg729 and rapidjson.
|
|
34
|
-
|
|
35
|
-
However since it takes several minutes to build this module, you can install it globally:
|
|
34
|
+
To test from within this repo you will need to download and build dependencies. Do:
|
|
36
35
|
```
|
|
37
|
-
|
|
36
|
+
./build_deps.sh
|
|
38
37
|
```
|
|
39
|
-
|
|
40
|
-
But if you do so, you will need to set NODE_PATH for node to find it by doing:
|
|
41
|
-
```
|
|
42
|
-
export NODE_PATH=$(npm root --quiet -g)
|
|
38
|
+
Then build the node addon by doing:
|
|
43
39
|
```
|
|
44
|
-
|
|
45
|
-
To test from within this repo just build and install by doing:
|
|
46
|
-
```
|
|
47
|
-
npm install -g node-gyp
|
|
48
40
|
npm install
|
|
49
41
|
```
|
|
50
42
|
And run some sample script from subfolder samples:
|
|
@@ -54,13 +46,6 @@ And run some sample script from subfolder samples:
|
|
|
54
46
|
The above script has detailed comments.
|
|
55
47
|
Please read it to undestand how to write your own test scripts.
|
|
56
48
|
|
|
57
|
-
The module is known to work properly in Ubuntu 18.04.4, Ubuntu 20.04.4, Debian 8 and Debian 10 (and it is expected to work in Debian 9).
|
|
58
|
-
|
|
59
|
-
It was originally developed with node v.10 and tested with v.12 and v16.13.1 and it is expected to work with latest versions of node.
|
|
60
|
-
|
|
61
|
-
(it is known to not work with node v.8)
|
|
62
|
-
|
|
63
|
-
|
|
64
49
|
### About the code
|
|
65
50
|
|
|
66
51
|
Although the code in written in *.cpp/*.hpp named files, this is not actually a C++ project.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-lab",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"files": [
|
|
32
32
|
"index.js",
|
|
33
33
|
"bindings.gyp",
|
|
34
|
-
"
|
|
34
|
+
"build_deps.sh",
|
|
35
35
|
"samples",
|
|
36
36
|
"prebuilds"
|
|
37
37
|
]
|