sip-lab 1.12.37 → 1.12.39

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 CHANGED
@@ -28,10 +28,19 @@ npm install
28
28
  Then perform code changes and tests. When you are satisfied with them, update install.sh with the new commit id.
29
29
 
30
30
  #### prebuild binaries
31
+ Previously we would do:
32
+
31
33
  ```
32
- nvm use v16.13.1 # if we try with v17 it will fail to build for -t 1.5.0.0
34
+ nvm use v16.13.1 # if we try with v17 it will fail to build for -t 15.0.0
33
35
  npx prebuildify --strip -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0
34
36
  ```
37
+ However the above will build the addon to run on the current OS.
38
+
39
+ Instead we will force the build on debian11 (using docker). So to this instead:
40
+ ```
41
+ nvm use v16.13.1
42
+ npx prebuildify-cross -i mayamatakeshi/sip-lab-debian11:latest -t 15.0.0 -t 16.0.0 -t 17.0.0 -t 18.0.0 --strip
43
+ ```
35
44
 
36
45
  #### Running tests
37
46
  ```
package/README.md CHANGED
@@ -15,7 +15,6 @@ TODO:
15
15
  - add suport for T.38 fax
16
16
  - add support for WebRTC
17
17
  - add support for video playing/recording from/to file
18
- - use prebuildify-cross to support multiple OSs and OS versions.
19
18
 
20
19
  ### Installation
21
20
 
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
- 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
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
- git clone https://github.com/Tencent/rapidjson
31
- cd rapidjson
32
- git checkout 27c3a8dc0e2c9218fe94986d249a12b5ed838f1d
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
- git clone https://github.com/pjsip/pjproject
53
- cd pjproject
54
- #git checkout de3d744c2e1188b59bb907b6ee32ef83740ebc64
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
- cat > user.mak <<EOF
59
- export CFLAGS += -fPIC -g
60
- export LDFLAGS +=
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
- cat > pjlib/include/pj/config_site.h <<EOF
65
+ cat > pjlib/include/pj/config_site.h <<EOF
66
66
  #define PJMEDIA_HAS_SRTP 0
67
67
  EOF
68
- make dep && make clean && make
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
- # wget https://github.com/openssl/openssl/archive/refs/tags/openssl-3.0.5.tar.gz
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
- # ./Configure
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.37",
3
+ "version": "1.12.39",
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.32"
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