@webex/calling 3.12.0-next.26 → 3.12.0-next.27

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.
@@ -92,6 +92,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
92
92
  // Used in WxCC calls
93
93
  (0, _defineProperty2.default)(_this, "serviceIndicator", void 0);
94
94
  (0, _defineProperty2.default)(_this, "mediaNegotiationCompleted", void 0);
95
+ (0, _defineProperty2.default)(_this, "connectPending", void 0);
95
96
  (0, _defineProperty2.default)(_this, "receivedRoapOKSeq", void 0);
96
97
  (0, _defineProperty2.default)(_this, "localAudioStream", void 0);
97
98
  (0, _defineProperty2.default)(_this, "rtcMetrics", void 0);
@@ -485,6 +486,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
485
486
  _this.mobiusUrl = activeUrl;
486
487
  _this.receivedRoapOKSeq = 0;
487
488
  _this.mediaNegotiationCompleted = false;
489
+ _this.connectPending = false;
488
490
  _Logger.default.info("Webex Calling Url:- ".concat(_this.mobiusUrl), {
489
491
  file: _constants.CALL_FILE,
490
492
  method: _constants.METHODS.CONSTRUCTOR
@@ -690,6 +692,13 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
690
692
  }
691
693
  },
692
694
  on: {
695
+ E_SEND_CALL_CONNECT: {
696
+ cond: function cond() {
697
+ return _this.connectPending;
698
+ },
699
+ target: 'S_SEND_CALL_CONNECT',
700
+ actions: ['outgoingCallConnect']
701
+ },
693
702
  E_CALL_ESTABLISHED: {
694
703
  target: 'S_CALL_ESTABLISHED',
695
704
  actions: ['callEstablished']
@@ -1694,6 +1703,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
1694
1703
  return _regenerator.default.wrap(function (_context10) {
1695
1704
  while (1) switch (_context10.prev = _context10.next) {
1696
1705
  case 0:
1706
+ this.connectPending = false;
1697
1707
  _Logger.default.info("".concat(_constants2.METHOD_START_MESSAGE, " with: ").concat(this.getCorrelationId()), {
1698
1708
  file: _constants.CALL_FILE,
1699
1709
  method: _constants.METHODS.HANDLE_OUTGOING_CALL_CONNECT
@@ -1708,6 +1718,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
1708
1718
  file: _constants.CALL_FILE,
1709
1719
  method: _constants.METHODS.HANDLE_OUTGOING_CALL_CONNECT
1710
1720
  });
1721
+ this.connectPending = true;
1711
1722
  return _context10.abrupt("return");
1712
1723
  case 1:
1713
1724
  _context10.prev = 1;
@@ -3154,6 +3165,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
3154
3165
  case 3:
3155
3166
  event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
3156
3167
  _this12.localRoapMessage = event.roapMessage;
3168
+ if (_this12.connectPending) {
3169
+ _this12.sendCallStateMachineEvt({
3170
+ type: 'E_SEND_CALL_CONNECT'
3171
+ });
3172
+ }
3157
3173
  _this12.sendMediaStateMachineEvt({
3158
3174
  type: 'E_SEND_ROAP_ANSWER',
3159
3175
  data: event.roapMessage
@@ -3168,6 +3184,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
3168
3184
  case 5:
3169
3185
  event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
3170
3186
  _this12.localRoapMessage = event.roapMessage;
3187
+ if (_this12.connectPending) {
3188
+ _this12.sendCallStateMachineEvt({
3189
+ type: 'E_SEND_CALL_CONNECT'
3190
+ });
3191
+ }
3171
3192
  _this12.sendMediaStateMachineEvt({
3172
3193
  type: 'E_SEND_ROAP_OFFER',
3173
3194
  data: event.roapMessage