sip-lab 1.12.36 → 1.12.38
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/DEV.md +1 -1
- package/README.md +3 -3
- package/binding.gyp +1 -4
- package/build_deps.sh +21 -21
- package/package.json +4 -3
- package/prebuilds/linux-x64/node.abi102.node +0 -0
- package/prebuilds/linux-x64/node.abi108.node +0 -0
- package/prebuilds/linux-x64/node.abi88.node +0 -0
- package/prebuilds/linux-x64/node.abi93.node +0 -0
package/DEV.md
CHANGED
|
@@ -29,7 +29,7 @@ Then perform code changes and tests. When you are satisfied with them, update in
|
|
|
29
29
|
|
|
30
30
|
#### prebuild binaries
|
|
31
31
|
```
|
|
32
|
-
nvm use v16.13.1 # if we try with v17 it will fail to build for -t
|
|
32
|
+
nvm use v16.13.1 # if we try with v17 it will fail to build for -t 15.0.0
|
|
33
33
|
npx prebuildify --strip -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0
|
|
34
34
|
```
|
|
35
35
|
|
package/README.md
CHANGED
|
@@ -18,15 +18,15 @@ TODO:
|
|
|
18
18
|
|
|
19
19
|
### Installation
|
|
20
20
|
|
|
21
|
-
This is an node.js addon and it is known to work on
|
|
22
|
-
It is distributed with prebuild binaries for node.js 15.0.0 and above (but built for Debian 11).
|
|
21
|
+
This is an node.js addon and it is known to work on Debian 11, Debian 10, Ubuntu 22.04 and Ubuntu 20.04.
|
|
22
|
+
It is distributed with prebuild binaries for node.js 15.0.0 and above (but built for Debian 11. For other Debian versions or for Ubuntu a local built of the addon will be executed. Being the case, be patient as the build process will take several minutes to complete).
|
|
23
23
|
|
|
24
24
|
To install it, first install some dependencies:
|
|
25
25
|
```
|
|
26
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 libvo-amrwbenc-dev libboost-dev libtiff-dev libpcap-dev libssl-dev uuid-dev cmake
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Then install sip-lab:
|
|
29
|
+
Then install sip-lab (local build of the addon might be triggered here if this is not Debian 11):
|
|
30
30
|
```
|
|
31
31
|
npm install sip-lab
|
|
32
32
|
```
|
package/binding.gyp
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
'message': 'executing build_deps.sh',
|
|
9
9
|
'inputs': [],
|
|
10
10
|
'outputs': ['./3rdParty'],
|
|
11
|
-
'action': ['./build_deps.sh'],
|
|
11
|
+
'action': ['bash', './build_deps.sh'],
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
14
|
'sources': [
|
|
@@ -39,9 +39,6 @@
|
|
|
39
39
|
"3rdParty/spandsp/src",
|
|
40
40
|
"<!@(node -p \"require('node-addon-api').include\")",
|
|
41
41
|
],
|
|
42
|
-
"dependencies": [
|
|
43
|
-
"<!@(node -p \"require('node-addon-api').gyp\")"
|
|
44
|
-
],
|
|
45
42
|
'conditions': [
|
|
46
43
|
[ 'OS!="win"', {
|
|
47
44
|
'cflags_cc': [
|
package/build_deps.sh
CHANGED
|
@@ -14,12 +14,12 @@ mkdir -p $START_DIR/3rdParty
|
|
|
14
14
|
cd $START_DIR/3rdParty
|
|
15
15
|
if [[ ! -d spandsp ]]
|
|
16
16
|
then
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
commit=e59ca8fb8b1591e626e6a12fdc60a2ebe83435ed
|
|
18
|
+
git clone https://github.com/freeswitch/spandsp
|
|
19
|
+
cd spandsp
|
|
20
|
+
git checkout $commit
|
|
21
|
+
./bootstrap.sh
|
|
22
|
+
CFLAGS='-O -fPIC' ./configure --enable-shared
|
|
23
23
|
make
|
|
24
24
|
fi
|
|
25
25
|
|
|
@@ -27,9 +27,9 @@ fi
|
|
|
27
27
|
cd $START_DIR/3rdParty
|
|
28
28
|
if [[ ! -d rapidjson ]]
|
|
29
29
|
then
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
git clone https://github.com/Tencent/rapidjson
|
|
31
|
+
cd rapidjson
|
|
32
|
+
git checkout 27c3a8dc0e2c9218fe94986d249a12b5ed838f1d
|
|
33
33
|
fi
|
|
34
34
|
|
|
35
35
|
|
|
@@ -49,36 +49,36 @@ fi
|
|
|
49
49
|
cd $START_DIR/3rdParty
|
|
50
50
|
if [[ ! -d pjproject ]]
|
|
51
51
|
then
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
git clone https://github.com/pjsip/pjproject
|
|
53
|
+
cd pjproject
|
|
54
|
+
#git checkout de3d744c2e1188b59bb907b6ee32ef83740ebc64
|
|
55
55
|
#git checkout 33a3c9e0a5eb84426edef05a9aa98af17d8011c3 # required for bcg729
|
|
56
56
|
git checkout 797088ed133c98492519b7d042b75735f6f9388c # updated as part of #21
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
cat > user.mak <<EOF
|
|
59
|
+
export CFLAGS += -fPIC -g
|
|
60
|
+
export LDFLAGS +=
|
|
61
61
|
EOF
|
|
62
62
|
|
|
63
63
|
sed -i -r 's/BCG729_LIBS="-lbcg729"/BCG729_LIBS=''/' aconfigure
|
|
64
64
|
LIBS=`pwd`/../bcg729/src/libbcg729.a ./configure --with-bcg729=`pwd`/../bcg729
|
|
65
|
-
|
|
65
|
+
cat > pjlib/include/pj/config_site.h <<EOF
|
|
66
66
|
#define PJMEDIA_HAS_SRTP 0
|
|
67
67
|
EOF
|
|
68
|
-
|
|
68
|
+
make dep && make clean && make
|
|
69
69
|
fi
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
#cd $START_DIR/3rdParty
|
|
73
73
|
#if [[ ! -d openssl ]]
|
|
74
74
|
#then
|
|
75
|
-
#
|
|
76
|
-
# tar xf openssl-3.0.5.tar.gz
|
|
77
|
-
# mv openssl-openssl-3.0.5 openssl
|
|
75
|
+
# git clone https://github.com/openssl/openssl
|
|
78
76
|
# cd openssl
|
|
79
|
-
#
|
|
77
|
+
# git checkout openssl-3.0.7
|
|
78
|
+
# ./config -d # configure with debug symbols enabled
|
|
80
79
|
# make
|
|
81
80
|
#fi
|
|
81
|
+
# statically linking to openssl will not solve anything (see #37).
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
echo "Build of dependencies successful"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-lab",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.38",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"node-addon-api": "^5.0.0",
|
|
24
24
|
"node-gyp": "^9.3.0",
|
|
25
25
|
"node-gyp-build": "^4.5.0",
|
|
26
|
-
"sip-matching": "^1.3.
|
|
26
|
+
"sip-matching": "^1.3.34"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"prebuildify": "^5.0.1"
|
|
29
|
+
"prebuildify": "^5.0.1",
|
|
30
|
+
"prebuildify-cross": "github:MayamaTakeshi/prebuildify-cross#use_existing_images"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"index.js",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|