sip-lab 1.11.0 → 1.11.2
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
CHANGED
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -90,9 +90,11 @@ async function test() {
|
|
|
90
90
|
|
|
91
91
|
var is_sender = true
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
var in_file = 'samples/artifacts/this-is-never-ok.tiff'
|
|
94
|
+
var out_file = "received.tiff"
|
|
95
|
+
|
|
96
|
+
sip.call.start_fax(oc.id, is_sender, in_file)
|
|
97
|
+
sip.call.start_fax(ic.id, !is_sender, out_file)
|
|
96
98
|
|
|
97
99
|
await z.wait([
|
|
98
100
|
{
|
|
@@ -105,7 +107,7 @@ async function test() {
|
|
|
105
107
|
call_id: ic.id,
|
|
106
108
|
result: 0,
|
|
107
109
|
},
|
|
108
|
-
],
|
|
110
|
+
], 180 * 1000)
|
|
109
111
|
|
|
110
112
|
sip.call.terminate(oc.id)
|
|
111
113
|
|
|
@@ -129,7 +131,7 @@ async function test() {
|
|
|
129
131
|
},
|
|
130
132
|
], 1000)
|
|
131
133
|
|
|
132
|
-
console.log(
|
|
134
|
+
console.log(`Success. Fax was transmitted as ${in_file} and received as ${out_file}`)
|
|
133
135
|
|
|
134
136
|
sip.stop()
|
|
135
137
|
}
|