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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-lab",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "engines": {
File without changes
@@ -90,9 +90,11 @@ async function test() {
90
90
 
91
91
  var is_sender = true
92
92
 
93
- sip.call.start_fax(oc.id, is_sender, 'samples/fax_doc.tiff')
94
- await z.sleep(100)
95
- sip.call.start_fax(ic.id, !is_sender, 'received.tiff')
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
- ], 60 * 1000)
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("Success")
134
+ console.log(`Success. Fax was transmitted as ${in_file} and received as ${out_file}`)
133
135
 
134
136
  sip.stop()
135
137
  }