@subiz/wsclient 4.0.15 → 4.0.17

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/webrtc.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/wsclient",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
4
4
  "main": "realtime.js",
5
5
  "scripts": {
6
6
  "test": "node realtime.test.js"
@@ -14,7 +14,7 @@
14
14
  "homepage": "https://github.com/subiz/wsclient#readme",
15
15
  "description": "",
16
16
  "devDependencies": {
17
- "tape": "^5.6.3"
17
+ "tape": "^5.7.1"
18
18
  },
19
19
  "dependencies": {
20
20
  "@subiz/flow": "^1.1.0",
package/webrtc.js CHANGED
@@ -311,6 +311,7 @@ function WebRTCConn(options) {
311
311
 
312
312
  if (ev.type === 'call_invite_expired') {
313
313
  if (Object.keys(peers).find((cid) => cid == call_info.device_id)) return // this call invitation is expired by us => ignore
314
+ serverCalls[callid] = call_info
314
315
  publish(Object.assign({}, ev, {type: 'call_ended'})) // fake ended call
315
316
  return
316
317
  }
@@ -334,6 +335,7 @@ function WebRTCConn(options) {
334
335
  started: now,
335
336
  status: 'dialing',
336
337
  to_number: number,
338
+ from_number: fromnumber,
337
339
  }
338
340
  dialingRequest[callid] = call
339
341
  publish({type: 'call_ringing', data: {call_info: {call_id: callid}}}) // fake dialing