@webex/calling 3.10.0-next.8 → 3.10.0-next.9

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.
@@ -1671,33 +1671,34 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
1671
1671
  case 0:
1672
1672
  _Logger.default.info("".concat(_constants2.METHOD_START_MESSAGE, " with: ").concat(this.getCorrelationId()), {
1673
1673
  file: _constants.CALL_FILE,
1674
- method: _constants.METHODS.HANDLE_OUTGOING_CALL_DISCONNECT
1674
+ method: _constants.METHODS.HANDLE_INCOMING_CALL_DISCONNECT
1675
1675
  });
1676
+ this.emit(_types3.CALL_EVENT_KEYS.DISCONNECT, this.correlationId);
1676
1677
  this.setDisconnectReason();
1677
- _context0.prev = 2;
1678
- _context0.next = 5;
1678
+ _context0.prev = 3;
1679
+ _context0.next = 6;
1679
1680
  return this.delete();
1680
- case 5:
1681
+ case 6:
1681
1682
  response = _context0.sent;
1682
1683
  _Logger.default.log("Response code: ".concat(response.statusCode), {
1683
1684
  file: _constants.CALL_FILE,
1684
- method: _constants.METHODS.HANDLE_OUTGOING_CALL_DISCONNECT
1685
+ method: _constants.METHODS.HANDLE_INCOMING_CALL_DISCONNECT
1685
1686
  });
1686
- _context0.next = 13;
1687
+ _context0.next = 14;
1687
1688
  break;
1688
- case 9:
1689
- _context0.prev = 9;
1690
- _context0.t0 = _context0["catch"](2);
1689
+ case 10:
1690
+ _context0.prev = 10;
1691
+ _context0.t0 = _context0["catch"](3);
1691
1692
  _Logger.default.warn("Failed to delete the call: ".concat((0, _stringify.default)(_context0.t0)), {
1692
1693
  file: _constants.CALL_FILE,
1693
- method: _constants.METHODS.HANDLE_OUTGOING_CALL_DISCONNECT
1694
+ method: _constants.METHODS.HANDLE_INCOMING_CALL_DISCONNECT
1694
1695
  });
1695
1696
  (0, _Utils.uploadLogs)({
1696
1697
  correlationId: this.correlationId,
1697
1698
  callId: this.callId,
1698
1699
  broadworksCorrelationInfo: this.broadworksCorrelationInfo
1699
1700
  });
1700
- case 13:
1701
+ case 14:
1701
1702
  this.deleteCb(this.correlationId);
1702
1703
 
1703
1704
  /* Clear the stream listeners */
@@ -1722,12 +1723,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
1722
1723
  this.sendCallStateMachineEvt({
1723
1724
  type: 'E_CALL_CLEARED'
1724
1725
  });
1725
- this.emit(_types3.CALL_EVENT_KEYS.DISCONNECT, this.correlationId);
1726
1726
  case 20:
1727
1727
  case "end":
1728
1728
  return _context0.stop();
1729
1729
  }
1730
- }, _callee0, this, [[2, 9]]);
1730
+ }, _callee0, this, [[3, 10]]);
1731
1731
  }));
1732
1732
  function handleIncomingCallDisconnect(_x8) {
1733
1733
  return _handleIncomingCallDisconnect.apply(this, arguments);