sip-lab 1.12.4 → 1.12.8
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/install.sh +24 -20
- package/package.json +3 -4
- package/samples/artifacts/yosemitesam.wav +0 -0
- package/samples/delayed_media.js +2 -2
- package/samples/g729.js +2 -2
- package/samples/register_subscribe.js +2 -2
- package/samples/reinvite_and_dtmf.js +2 -2
- package/samples/send_and_receive_fax.js +2 -2
- package/samples/simple.js +5 -5
- package/samples/sip_cancel.js +2 -2
- package/samples/tcp_and_extra_headers.js +4 -4
package/install.sh
CHANGED
|
@@ -24,6 +24,28 @@ then
|
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
cd $START_DIR/3rdParty
|
|
28
|
+
if [[ ! -d rapidjson ]]
|
|
29
|
+
then
|
|
30
|
+
git clone https://github.com/Tencent/rapidjson
|
|
31
|
+
cd rapidjson
|
|
32
|
+
git checkout 27c3a8dc0e2c9218fe94986d249a12b5ed838f1d
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
cd $START_DIR/3rdParty
|
|
37
|
+
if [[ ! -d bcg729 ]]
|
|
38
|
+
then
|
|
39
|
+
git clone https://github.com/MayamaTakeshi/bcg729
|
|
40
|
+
cd bcg729
|
|
41
|
+
git checkout faaa895862165acde6df8add722ba4f85a25007d
|
|
42
|
+
cmake .
|
|
43
|
+
make
|
|
44
|
+
mkdir -p lib
|
|
45
|
+
cp -f src/libbcg729.a lib
|
|
46
|
+
fi
|
|
47
|
+
|
|
48
|
+
|
|
27
49
|
cd $START_DIR/3rdParty
|
|
28
50
|
if [[ ! -d pjproject ]]
|
|
29
51
|
then
|
|
@@ -40,7 +62,8 @@ then
|
|
|
40
62
|
export LDFLAGS +=
|
|
41
63
|
EOF
|
|
42
64
|
|
|
43
|
-
|
|
65
|
+
sed -i -r 's/BCG729_LIBS="-lbcg729"/BCG729_LIBS=''/' aconfigure
|
|
66
|
+
LIBS=`pwd`/../bcg729/src/libbcg729.a ./configure --with-bcg729=`pwd`/../bcg729
|
|
44
67
|
cat > pjlib/include/pj/config_site.h <<EOF
|
|
45
68
|
#define PJMEDIA_HAS_SRTP 0
|
|
46
69
|
EOF
|
|
@@ -48,25 +71,6 @@ EOF
|
|
|
48
71
|
fi
|
|
49
72
|
|
|
50
73
|
|
|
51
|
-
cd $START_DIR/3rdParty
|
|
52
|
-
if [[ ! -d rapidjson ]]
|
|
53
|
-
then
|
|
54
|
-
git clone https://github.com/Tencent/rapidjson
|
|
55
|
-
cd rapidjson
|
|
56
|
-
git checkout 27c3a8dc0e2c9218fe94986d249a12b5ed838f1d
|
|
57
|
-
fi
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
cd $START_DIR/3rdParty
|
|
61
|
-
if [[ ! -d bcg729 ]]
|
|
62
|
-
then
|
|
63
|
-
git clone https://github.com/MayamaTakeshi/bcg729
|
|
64
|
-
cd bcg729
|
|
65
|
-
git checkout faaa895862165acde6df8add722ba4f85a25007d
|
|
66
|
-
cmake .
|
|
67
|
-
make
|
|
68
|
-
fi
|
|
69
|
-
|
|
70
74
|
|
|
71
75
|
cd $START_DIR
|
|
72
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-lab",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
"gypfile": true,
|
|
19
19
|
"homepage": "https://github.com/MayamaTakeshi/sip-lab",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"-": "^0.0.1",
|
|
22
21
|
"node-addon-api": "^1.7.2",
|
|
23
22
|
"node-gyp": "^8.4.1"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
25
|
+
"@mayama/zeq": "^4.1.14",
|
|
26
26
|
"data-matching": "^1.23.8",
|
|
27
27
|
"sip-matching": "^1.3.13",
|
|
28
|
-
"string-matching": "^1.11.9"
|
|
29
|
-
"zester": "^4.1.1"
|
|
28
|
+
"string-matching": "^1.11.9"
|
|
30
29
|
}
|
|
31
30
|
}
|
|
Binary file
|
package/samples/delayed_media.js
CHANGED
package/samples/g729.js
CHANGED
package/samples/simple.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// This test creates 2 UDP SIP endpoints, makes a call between them and disconeects.
|
|
2
2
|
|
|
3
3
|
const sip = require ('../index.js')
|
|
4
|
-
const
|
|
4
|
+
const Zeq = require('@mayama/zeq')
|
|
5
5
|
const m = require('data-matching')
|
|
6
6
|
const sip_msg = require('sip-matching')
|
|
7
7
|
|
|
8
|
-
// here we create our
|
|
9
|
-
var z = new
|
|
8
|
+
// here we create our Zeq instance
|
|
9
|
+
var z = new Zeq()
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
async function test() {
|
|
13
|
-
// here we set our
|
|
13
|
+
// here we set our Zeq instance to trap events generated by sip-lab event_source
|
|
14
14
|
z.trap_events(sip.event_source, 'event', (evt) => {
|
|
15
15
|
var e = evt.args[0]
|
|
16
16
|
return e
|
|
@@ -57,7 +57,7 @@ async function test() {
|
|
|
57
57
|
}),
|
|
58
58
|
},
|
|
59
59
|
], 1000)
|
|
60
|
-
// Details about
|
|
60
|
+
// Details about zeq wait(list_of_events_to_wait_for, timeout_in_ms):
|
|
61
61
|
// The order of events in the list is irrelevant.
|
|
62
62
|
// What matters is that all events arrive within the specified timeout.
|
|
63
63
|
// When specifying events, you can be as detailed or succinct as you need.
|
package/samples/sip_cancel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var sip = require ('../index.js')
|
|
2
|
-
var
|
|
3
|
-
var z = new
|
|
2
|
+
var Zeq = require('@mayama/zeq')
|
|
3
|
+
var z = new Zeq()
|
|
4
4
|
var m = require('data-matching')
|
|
5
5
|
var sip_msg = require('sip-matching')
|
|
6
6
|
|
|
@@ -280,8 +280,8 @@ async function test() {
|
|
|
280
280
|
},
|
|
281
281
|
], 2000)
|
|
282
282
|
|
|
283
|
-
sip.call.start_playing(oc.id, {file: '/
|
|
284
|
-
sip.call.start_playing(ic.id, {file: '/
|
|
283
|
+
sip.call.start_playing(oc.id, {file: 'samples/artifacts/yosemitesam.wav'})
|
|
284
|
+
sip.call.start_playing(ic.id, {file: 'samples/artifacts/yosemitesam.wav'})
|
|
285
285
|
|
|
286
286
|
await z.sleep(2000)
|
|
287
287
|
|