sip-lab 1.34.4 → 1.36.0
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/package.json +6 -6
- package/samples/g729.js +3 -3
- package/samples/media_fields.js +1 -1
- package/samples/mrcp_and_audio.js +2 -2
- package/samples/mrcp_and_audio.simplified_media.js +2 -2
- package/samples/opus.narrowband.js +3 -3
- package/samples/pcma.js +2 -2
- package/samples/reinvite_and_dtmf.js +1 -1
- package/samples/reinvite_audio_audio.js +1 -1
- package/samples/reinvite_with_hold_unhold.js +9 -9
- package/samples/simple.js +1 -1
- package/samples/start_play_wav_with_end_of_file_event.js +2 -2
- package/samples/start_play_wav_with_no_loop.js +2 -2
- package/samples/tcp.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-lab",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"gypfile": true,
|
|
22
22
|
"homepage": "https://github.com/MayamaTakeshi/sip-lab",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@mayama/zeq": "^4.
|
|
24
|
+
"@mayama/zeq": "^4.21.0",
|
|
25
25
|
"mrcp": "^1.4.0",
|
|
26
|
-
"mrcp-matching": "^1.
|
|
26
|
+
"mrcp-matching": "^1.3.0",
|
|
27
27
|
"node-addon-api": "^5.0.0",
|
|
28
28
|
"node-gyp": "^9.3.0",
|
|
29
29
|
"node-gyp-build": "^4.5.0",
|
|
30
|
-
"sdp-matching": "^1.
|
|
31
|
-
"sip-matching": "^1.
|
|
32
|
-
"sipjs-lab": "^1.
|
|
30
|
+
"sdp-matching": "^1.5.0",
|
|
31
|
+
"sip-matching": "^1.9.0",
|
|
32
|
+
"sipjs-lab": "^1.4.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"prebuildify": "^5.0.1",
|
package/samples/g729.js
CHANGED
|
@@ -72,7 +72,7 @@ async function test() {
|
|
|
72
72
|
$rs: '200',
|
|
73
73
|
$rr: 'OK',
|
|
74
74
|
'hdr_content_type': 'application/sdp',
|
|
75
|
-
$rb: '!{_}a=sendrecv',
|
|
75
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
76
76
|
}),
|
|
77
77
|
},
|
|
78
78
|
], 1000)
|
|
@@ -121,7 +121,7 @@ async function test() {
|
|
|
121
121
|
msg: sip_msg({
|
|
122
122
|
$rs: '200',
|
|
123
123
|
$rr: 'OK',
|
|
124
|
-
$rb: '!{_}a=sendrecv',
|
|
124
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
125
125
|
}),
|
|
126
126
|
},
|
|
127
127
|
{
|
|
@@ -163,7 +163,7 @@ async function test() {
|
|
|
163
163
|
msg: sip_msg({
|
|
164
164
|
$rs: '200',
|
|
165
165
|
$rr: 'OK',
|
|
166
|
-
$rb: '!{_}a=sendrecv',
|
|
166
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
167
167
|
}),
|
|
168
168
|
},
|
|
169
169
|
{
|
package/samples/media_fields.js
CHANGED
|
@@ -249,7 +249,7 @@ async function test() {
|
|
|
249
249
|
msg: sip_msg({
|
|
250
250
|
$rs: '200',
|
|
251
251
|
$rr: 'OK',
|
|
252
|
-
$rb: '!{_}a=sendonly',
|
|
252
|
+
$rb: '!{_}a=sendonly!{_}',
|
|
253
253
|
}),
|
|
254
254
|
},
|
|
255
255
|
{
|
|
@@ -331,7 +331,7 @@ async function test() {
|
|
|
331
331
|
msg: sip_msg({
|
|
332
332
|
$rs: '200',
|
|
333
333
|
$rr: 'OK',
|
|
334
|
-
$rb: '!{_}a=recvonly',
|
|
334
|
+
$rb: '!{_}a=recvonly!{_}',
|
|
335
335
|
}),
|
|
336
336
|
},
|
|
337
337
|
{
|
|
@@ -59,7 +59,7 @@ async function test() {
|
|
|
59
59
|
$rs: '200',
|
|
60
60
|
$rr: 'OK',
|
|
61
61
|
'$hdr(content-type)': 'application/sdp',
|
|
62
|
-
$rb: '!{_}a=sendrecv',
|
|
62
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
63
63
|
}),
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -169,7 +169,7 @@ async function test() {
|
|
|
169
169
|
msg: sip_msg({
|
|
170
170
|
$rs: '200',
|
|
171
171
|
$rr: 'OK',
|
|
172
|
-
$rb: '!{_}a=sendrecv',
|
|
172
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
173
173
|
}),
|
|
174
174
|
},
|
|
175
175
|
{
|
|
@@ -73,7 +73,7 @@ async function test() {
|
|
|
73
73
|
$rs: '200',
|
|
74
74
|
$rr: 'OK',
|
|
75
75
|
'hdr_content_type': 'application/sdp',
|
|
76
|
-
$rb: '!{_}a=sendrecv',
|
|
76
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
77
77
|
}),
|
|
78
78
|
},
|
|
79
79
|
], 1000)
|
|
@@ -122,7 +122,7 @@ async function test() {
|
|
|
122
122
|
msg: sip_msg({
|
|
123
123
|
$rs: '200',
|
|
124
124
|
$rr: 'OK',
|
|
125
|
-
$rb: '!{_}a=sendrecv',
|
|
125
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
126
126
|
}),
|
|
127
127
|
},
|
|
128
128
|
{
|
|
@@ -164,7 +164,7 @@ async function test() {
|
|
|
164
164
|
msg: sip_msg({
|
|
165
165
|
$rs: '200',
|
|
166
166
|
$rr: 'OK',
|
|
167
|
-
$rb: '!{_}a=sendrecv',
|
|
167
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
168
168
|
}),
|
|
169
169
|
},
|
|
170
170
|
{
|
package/samples/pcma.js
CHANGED
|
@@ -103,7 +103,7 @@ async function test() {
|
|
|
103
103
|
msg: sip_msg({
|
|
104
104
|
$rs: '200',
|
|
105
105
|
$rr: 'OK',
|
|
106
|
-
$rb: '!{_}a=sendrecv',
|
|
106
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
107
107
|
}),
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -145,7 +145,7 @@ async function test() {
|
|
|
145
145
|
msg: sip_msg({
|
|
146
146
|
$rs: '200',
|
|
147
147
|
$rr: 'OK',
|
|
148
|
-
$rb: '!{_}a=sendrecv',
|
|
148
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
149
149
|
}),
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -127,9 +127,9 @@ async function test() {
|
|
|
127
127
|
event: 'reinvite',
|
|
128
128
|
call_id: ic.id,
|
|
129
129
|
msg: sip_msg({
|
|
130
|
-
$rb: '!{_}a=sendonly',
|
|
131
|
-
$rb: '!{_}a=fakeattr1:1234',
|
|
132
|
-
$rb: '!{_}a=fakeattr2: a b c',
|
|
130
|
+
$rb: '!{_}a=sendonly!{_}',
|
|
131
|
+
$rb: '!{_}a=fakeattr1:1234!{_}',
|
|
132
|
+
$rb: '!{_}a=fakeattr2: a b c!{_}',
|
|
133
133
|
}),
|
|
134
134
|
},
|
|
135
135
|
], 500)
|
|
@@ -152,7 +152,7 @@ async function test() {
|
|
|
152
152
|
msg: sip_msg({
|
|
153
153
|
$rs: '200',
|
|
154
154
|
$rr: 'OK',
|
|
155
|
-
$rb: '!{_}a=recvonly',
|
|
155
|
+
$rb: '!{_}a=recvonly!{_}',
|
|
156
156
|
}),
|
|
157
157
|
},
|
|
158
158
|
{
|
|
@@ -187,7 +187,7 @@ async function test() {
|
|
|
187
187
|
event: 'reinvite',
|
|
188
188
|
call_id: ic.id,
|
|
189
189
|
msg: sip_msg({
|
|
190
|
-
$rb: '!{_}a=sendrecv',
|
|
190
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
191
191
|
}),
|
|
192
192
|
},
|
|
193
193
|
], 500)
|
|
@@ -210,7 +210,7 @@ async function test() {
|
|
|
210
210
|
msg: sip_msg({
|
|
211
211
|
$rs: '200',
|
|
212
212
|
$rr: 'OK',
|
|
213
|
-
$rb: '!{_}a=sendrecv',
|
|
213
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
214
214
|
}),
|
|
215
215
|
},
|
|
216
216
|
{
|
|
@@ -253,7 +253,7 @@ async function test() {
|
|
|
253
253
|
event: 'reinvite',
|
|
254
254
|
call_id: oc.id,
|
|
255
255
|
msg: sip_msg({
|
|
256
|
-
$rb: '!{_}a=sendonly',
|
|
256
|
+
$rb: '!{_}a=sendonly!{_}',
|
|
257
257
|
}),
|
|
258
258
|
},
|
|
259
259
|
], 500)
|
|
@@ -310,7 +310,7 @@ async function test() {
|
|
|
310
310
|
event: 'reinvite',
|
|
311
311
|
call_id: oc.id,
|
|
312
312
|
msg: sip_msg({
|
|
313
|
-
$rb: '!{_}a=sendrecv',
|
|
313
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
314
314
|
}),
|
|
315
315
|
},
|
|
316
316
|
], 500)
|
|
@@ -333,7 +333,7 @@ async function test() {
|
|
|
333
333
|
msg: sip_msg({
|
|
334
334
|
$rs: '200',
|
|
335
335
|
$rr: 'OK',
|
|
336
|
-
$rb: '!{_}a=sendrecv',
|
|
336
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
337
337
|
}),
|
|
338
338
|
},
|
|
339
339
|
{
|
package/samples/simple.js
CHANGED
|
@@ -119,7 +119,7 @@ async function test() {
|
|
|
119
119
|
msg: sip_msg({
|
|
120
120
|
$rs: '200',
|
|
121
121
|
$rr: 'OK',
|
|
122
|
-
$rb: '!{_}a=sendrecv',
|
|
122
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
123
123
|
}),
|
|
124
124
|
},
|
|
125
125
|
{
|
|
@@ -173,7 +173,7 @@ async function test() {
|
|
|
173
173
|
msg: sip_msg({
|
|
174
174
|
$rs: '200',
|
|
175
175
|
$rr: 'OK',
|
|
176
|
-
$rb: '!{_}a=sendrecv',
|
|
176
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
177
177
|
}),
|
|
178
178
|
},
|
|
179
179
|
{
|
|
@@ -117,7 +117,7 @@ async function test() {
|
|
|
117
117
|
msg: sip_msg({
|
|
118
118
|
$rs: '200',
|
|
119
119
|
$rr: 'OK',
|
|
120
|
-
$rb: '!{_}a=sendrecv',
|
|
120
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
121
121
|
}),
|
|
122
122
|
},
|
|
123
123
|
{
|
|
@@ -159,7 +159,7 @@ async function test() {
|
|
|
159
159
|
msg: sip_msg({
|
|
160
160
|
$rs: '200',
|
|
161
161
|
$rr: 'OK',
|
|
162
|
-
$rb: '!{_}a=sendrecv',
|
|
162
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
163
163
|
}),
|
|
164
164
|
},
|
|
165
165
|
{
|
package/samples/tcp.js
CHANGED
|
@@ -132,7 +132,7 @@ async function test() {
|
|
|
132
132
|
msg: sip_msg({
|
|
133
133
|
$rs: '200',
|
|
134
134
|
$rr: 'OK',
|
|
135
|
-
$rb: '!{_}a=sendrecv',
|
|
135
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
136
136
|
}),
|
|
137
137
|
},
|
|
138
138
|
{
|
|
@@ -193,7 +193,7 @@ async function test() {
|
|
|
193
193
|
msg: sip_msg({
|
|
194
194
|
$rs: '200',
|
|
195
195
|
$rr: 'OK',
|
|
196
|
-
$rb: '!{_}a=sendrecv',
|
|
196
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
197
197
|
}),
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -279,7 +279,7 @@ async function test() {
|
|
|
279
279
|
msg: sip_msg({
|
|
280
280
|
$rs: '200',
|
|
281
281
|
$rr: 'OK',
|
|
282
|
-
$rb: '!{_}a=sendrecv',
|
|
282
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
283
283
|
}),
|
|
284
284
|
},
|
|
285
285
|
{
|
|
@@ -344,7 +344,7 @@ async function test() {
|
|
|
344
344
|
msg: sip_msg({
|
|
345
345
|
$rs: '200',
|
|
346
346
|
$rr: 'OK',
|
|
347
|
-
$rb: '!{_}a=sendrecv',
|
|
347
|
+
$rb: '!{_}a=sendrecv!{_}',
|
|
348
348
|
}),
|
|
349
349
|
},
|
|
350
350
|
{
|