@webex/calling 3.12.0-mobius-socket.21 → 3.12.0-mobius-socket.22
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/dist/CallingClient/CallingClient.js +62 -18
- package/dist/CallingClient/CallingClient.js.map +1 -1
- package/dist/CallingClient/CallingClient.test.js +51 -52
- package/dist/CallingClient/CallingClient.test.js.map +1 -1
- package/dist/CallingClient/calling/call.js +21 -0
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +542 -447
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/constants.js +5 -2
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/common/Utils.js +2 -4
- package/dist/common/Utils.js.map +1 -1
- package/dist/module/CallingClient/CallingClient.js +41 -7
- package/dist/module/CallingClient/calling/call.js +15 -0
- package/dist/module/CallingClient/constants.js +2 -0
- package/dist/module/common/Utils.js +1 -4
- package/dist/types/CallingClient/CallingClient.d.ts +2 -0
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts +1 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +2 -0
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts +1 -0
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/package.json +11 -13
|
@@ -93,6 +93,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
93
93
|
// Used in WxCC calls
|
|
94
94
|
(0, _defineProperty2.default)(_this, "serviceIndicator", void 0);
|
|
95
95
|
(0, _defineProperty2.default)(_this, "mediaNegotiationCompleted", void 0);
|
|
96
|
+
(0, _defineProperty2.default)(_this, "connectPending", void 0);
|
|
96
97
|
(0, _defineProperty2.default)(_this, "receivedRoapOKSeq", void 0);
|
|
97
98
|
(0, _defineProperty2.default)(_this, "localAudioStream", void 0);
|
|
98
99
|
(0, _defineProperty2.default)(_this, "rtcMetrics", void 0);
|
|
@@ -487,6 +488,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
487
488
|
_this.mobiusUrl = activeUrl;
|
|
488
489
|
_this.receivedRoapOKSeq = 0;
|
|
489
490
|
_this.mediaNegotiationCompleted = false;
|
|
491
|
+
_this.connectPending = false;
|
|
490
492
|
_Logger.default.info("Webex Calling Url:- ".concat(_this.mobiusUrl), {
|
|
491
493
|
file: _constants.CALL_FILE,
|
|
492
494
|
method: _constants.METHODS.CONSTRUCTOR
|
|
@@ -695,6 +697,13 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
695
697
|
}
|
|
696
698
|
},
|
|
697
699
|
on: {
|
|
700
|
+
E_SEND_CALL_CONNECT: {
|
|
701
|
+
cond: function cond() {
|
|
702
|
+
return _this.connectPending;
|
|
703
|
+
},
|
|
704
|
+
target: 'S_SEND_CALL_CONNECT',
|
|
705
|
+
actions: ['outgoingCallConnect']
|
|
706
|
+
},
|
|
698
707
|
E_CALL_ESTABLISHED: {
|
|
699
708
|
target: 'S_CALL_ESTABLISHED',
|
|
700
709
|
actions: ['callEstablished']
|
|
@@ -1699,6 +1708,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1699
1708
|
return _regenerator.default.wrap(function (_context10) {
|
|
1700
1709
|
while (1) switch (_context10.prev = _context10.next) {
|
|
1701
1710
|
case 0:
|
|
1711
|
+
this.connectPending = false;
|
|
1702
1712
|
_Logger.default.info("".concat(_constants2.METHOD_START_MESSAGE, " with: ").concat(this.getCorrelationId()), {
|
|
1703
1713
|
file: _constants.CALL_FILE,
|
|
1704
1714
|
method: _constants.METHODS.HANDLE_OUTGOING_CALL_CONNECT
|
|
@@ -1713,6 +1723,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1713
1723
|
file: _constants.CALL_FILE,
|
|
1714
1724
|
method: _constants.METHODS.HANDLE_OUTGOING_CALL_CONNECT
|
|
1715
1725
|
});
|
|
1726
|
+
this.connectPending = true;
|
|
1716
1727
|
return _context10.abrupt("return");
|
|
1717
1728
|
case 1:
|
|
1718
1729
|
_context10.prev = 1;
|
|
@@ -3157,6 +3168,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
3157
3168
|
case 3:
|
|
3158
3169
|
event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
|
|
3159
3170
|
_this12.localRoapMessage = event.roapMessage;
|
|
3171
|
+
if (_this12.connectPending) {
|
|
3172
|
+
_this12.sendCallStateMachineEvt({
|
|
3173
|
+
type: 'E_SEND_CALL_CONNECT'
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3160
3176
|
_this12.sendMediaStateMachineEvt({
|
|
3161
3177
|
type: 'E_SEND_ROAP_ANSWER',
|
|
3162
3178
|
data: event.roapMessage
|
|
@@ -3171,6 +3187,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
3171
3187
|
case 5:
|
|
3172
3188
|
event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
|
|
3173
3189
|
_this12.localRoapMessage = event.roapMessage;
|
|
3190
|
+
if (_this12.connectPending) {
|
|
3191
|
+
_this12.sendCallStateMachineEvt({
|
|
3192
|
+
type: 'E_SEND_CALL_CONNECT'
|
|
3193
|
+
});
|
|
3194
|
+
}
|
|
3174
3195
|
_this12.sendMediaStateMachineEvt({
|
|
3175
3196
|
type: 'E_SEND_ROAP_OFFER',
|
|
3176
3197
|
data: event.roapMessage
|