@webex/calling 3.0.0-next.2 → 3.0.0-next.21
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/CHANGELOG.md +1403 -0
- package/dist/CallHistory/CallHistory.js +1 -3
- package/dist/CallHistory/CallHistory.js.map +1 -1
- package/dist/CallHistory/callHistoryFixtures.js +9 -0
- package/dist/CallHistory/callHistoryFixtures.js.map +1 -1
- package/dist/CallHistory/types.js.map +1 -1
- package/dist/CallSettings/CallSettings.js +0 -2
- package/dist/CallSettings/CallSettings.js.map +1 -1
- package/dist/CallSettings/types.js.map +1 -1
- package/dist/CallingClient/CallingClient.js +119 -62
- package/dist/CallingClient/CallingClient.js.map +1 -1
- package/dist/CallingClient/CallingClient.test.js +161 -102
- package/dist/CallingClient/CallingClient.test.js.map +1 -1
- package/dist/CallingClient/calling/CallerId/index.js +3 -23
- package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
- package/dist/CallingClient/calling/CallerId/types.js.map +1 -1
- package/dist/CallingClient/calling/call.js +78 -33
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +483 -351
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/calling/callManager.js +0 -9
- package/dist/CallingClient/calling/callManager.js.map +1 -1
- package/dist/CallingClient/calling/callManager.test.js +1 -1
- package/dist/CallingClient/calling/callManager.test.js.map +1 -1
- package/dist/CallingClient/calling/types.js.map +1 -1
- package/dist/CallingClient/callingClientFixtures.js +107 -1
- package/dist/CallingClient/callingClientFixtures.js.map +1 -1
- package/dist/CallingClient/constants.js +14 -6
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/CallingClient/line/index.js +12 -12
- package/dist/CallingClient/line/index.js.map +1 -1
- package/dist/CallingClient/line/line.test.js +9 -9
- package/dist/CallingClient/line/line.test.js.map +1 -1
- package/dist/CallingClient/line/types.js +4 -7
- package/dist/CallingClient/line/types.js.map +1 -1
- package/dist/CallingClient/registration/register.js +62 -80
- package/dist/CallingClient/registration/register.js.map +1 -1
- package/dist/CallingClient/registration/register.test.js +28 -28
- package/dist/CallingClient/registration/register.test.js.map +1 -1
- package/dist/CallingClient/registration/types.js.map +1 -1
- package/dist/CallingClient/types.js.map +1 -1
- package/dist/Contacts/ContactsClient.js +8 -2
- package/dist/Contacts/ContactsClient.js.map +1 -1
- package/dist/Contacts/types.js +3 -0
- package/dist/Contacts/types.js.map +1 -1
- package/dist/Errors/catalog/CallingDeviceError.js +1 -1
- package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
- package/dist/Errors/catalog/LineError.js +2 -2
- package/dist/Errors/catalog/LineError.js.map +1 -1
- package/dist/Errors/index.js +7 -0
- package/dist/Errors/index.js.map +1 -1
- package/dist/Errors/types.js.map +1 -1
- package/dist/Events/types.js +0 -1
- package/dist/Events/types.js.map +1 -1
- package/dist/Metrics/index.test.js +1 -1
- package/dist/Metrics/index.test.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/Voicemail/Voicemail.js +18 -21
- package/dist/Voicemail/Voicemail.js.map +1 -1
- package/dist/Voicemail/WxCallBackendConnector.js +1 -1
- package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
- package/dist/Voicemail/types.js.map +1 -1
- package/dist/api.js +43 -20
- package/dist/api.js.map +1 -1
- package/dist/common/Utils.js +13 -18
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +1 -1
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/common/testUtil.js +2 -1
- package/dist/common/testUtil.js.map +1 -1
- package/dist/common/types.js +8 -7
- package/dist/common/types.js.map +1 -1
- package/dist/index.js +233 -0
- package/dist/index.js.map +1 -1
- package/dist/module/CallHistory/callHistoryFixtures.js +9 -0
- package/dist/module/CallingClient/CallingClient.js +59 -42
- package/dist/module/CallingClient/calling/CallerId/index.js +3 -23
- package/dist/module/CallingClient/calling/call.js +54 -17
- package/dist/module/CallingClient/calling/callManager.js +0 -6
- package/dist/module/CallingClient/callingClientFixtures.js +119 -1
- package/dist/module/CallingClient/constants.js +8 -4
- package/dist/module/CallingClient/line/index.js +7 -10
- package/dist/module/CallingClient/line/types.js +0 -5
- package/dist/module/CallingClient/registration/register.js +28 -20
- package/dist/module/Contacts/ContactsClient.js +3 -0
- package/dist/module/Errors/catalog/CallingDeviceError.js +2 -2
- package/dist/module/Errors/catalog/LineError.js +2 -2
- package/dist/module/Errors/index.js +1 -0
- package/dist/module/api.js +6 -5
- package/dist/module/common/Utils.js +14 -19
- package/dist/module/common/testUtil.js +2 -1
- package/dist/module/common/types.js +6 -5
- package/dist/module/index.js +7 -0
- package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
- package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -1
- package/dist/types/CallSettings/CallSettings.d.ts.map +1 -1
- package/dist/types/CallSettings/types.d.ts.map +1 -1
- package/dist/types/CallingClient/CallingClient.d.ts +2 -0
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts +2 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/callManager.d.ts +0 -1
- package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/types.d.ts +30 -30
- package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
- package/dist/types/CallingClient/callingClientFixtures.d.ts +69 -1
- package/dist/types/CallingClient/callingClientFixtures.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +7 -3
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/CallingClient/line/index.d.ts +4 -5
- package/dist/types/CallingClient/line/index.d.ts.map +1 -1
- package/dist/types/CallingClient/line/types.d.ts +8 -13
- package/dist/types/CallingClient/line/types.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/register.d.ts +3 -3
- package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/types.d.ts +14 -14
- package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
- package/dist/types/CallingClient/types.d.ts +6 -4
- package/dist/types/CallingClient/types.d.ts.map +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts +3 -2
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
- package/dist/types/Contacts/types.d.ts +2 -0
- package/dist/types/Contacts/types.d.ts.map +1 -1
- package/dist/types/Errors/catalog/CallingDeviceError.d.ts +4 -4
- package/dist/types/Errors/catalog/CallingDeviceError.d.ts.map +1 -1
- package/dist/types/Errors/catalog/LineError.d.ts +4 -4
- package/dist/types/Errors/catalog/LineError.d.ts.map +1 -1
- package/dist/types/Errors/index.d.ts +1 -0
- package/dist/types/Errors/index.d.ts.map +1 -1
- package/dist/types/Errors/types.d.ts +2 -3
- package/dist/types/Errors/types.d.ts.map +1 -1
- package/dist/types/Events/types.d.ts +11 -0
- package/dist/types/Events/types.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +2 -1
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/Voicemail/UcmBackendConnector.d.ts +1 -1
- package/dist/types/Voicemail/Voicemail.d.ts.map +1 -1
- package/dist/types/Voicemail/WxCallBackendConnector.d.ts +1 -1
- package/dist/types/Voicemail/types.d.ts +10 -10
- package/dist/types/Voicemail/types.d.ts.map +1 -1
- package/dist/types/api.d.ts +10 -10
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/dist/types/common/testUtil.d.ts +1 -0
- package/dist/types/common/testUtil.d.ts.map +1 -1
- package/dist/types/common/types.d.ts +3 -2
- package/dist/types/common/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +6 -5
|
@@ -44,14 +44,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
44
44
|
(0, _inherits2.default)(Call, _Eventing);
|
|
45
45
|
var _super = _createSuper(Call);
|
|
46
46
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* @param webex -.
|
|
49
|
-
* @param destination -.
|
|
50
|
-
* @param direction -.
|
|
51
|
-
* @param deviceId -.
|
|
52
|
-
* @param serverCb
|
|
53
|
-
* @param deleteCb
|
|
54
|
-
* @param indicator - Service Indicator.
|
|
47
|
+
* @ignore
|
|
55
48
|
*/
|
|
56
49
|
function Call(activeUrl, webex, destination, direction, deviceId, lineId, deleteCb, indicator) {
|
|
57
50
|
var _this;
|
|
@@ -75,6 +68,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
75
68
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaConnection", void 0);
|
|
76
69
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "earlyMedia", void 0);
|
|
77
70
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "connected", void 0);
|
|
71
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaInactivity", void 0);
|
|
78
72
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "callerInfo", void 0);
|
|
79
73
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "localRoapMessage", void 0);
|
|
80
74
|
// Use it for new offer
|
|
@@ -199,7 +193,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
199
193
|
}
|
|
200
194
|
});
|
|
201
195
|
/**
|
|
202
|
-
* .
|
|
196
|
+
* Mutes/Unmutes the call.
|
|
203
197
|
*
|
|
204
198
|
* @param localAudioTrack -.
|
|
205
199
|
*/
|
|
@@ -213,6 +207,24 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
213
207
|
_this.muted = true;
|
|
214
208
|
}
|
|
215
209
|
});
|
|
210
|
+
/**
|
|
211
|
+
* Change the audio stream of the call.
|
|
212
|
+
*
|
|
213
|
+
* @param newAudioStream - The new audio stream to be used in the call.
|
|
214
|
+
*/
|
|
215
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateMedia", function (newAudioStream) {
|
|
216
|
+
var localAudioTrack = newAudioStream.outputStream.getAudioTracks()[0];
|
|
217
|
+
if (!localAudioTrack) {
|
|
218
|
+
_Logger.default.warn("Did not find a local track while updating media for call ".concat(_this.getCorrelationId(), ". Will not update media"), {
|
|
219
|
+
file: _constants.CALL_FILE,
|
|
220
|
+
method: 'updateMedia'
|
|
221
|
+
});
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
_this.mediaConnection.updateLocalTracks({
|
|
225
|
+
audio: localAudioTrack
|
|
226
|
+
});
|
|
227
|
+
});
|
|
216
228
|
_this.destination = destination;
|
|
217
229
|
_this.direction = direction;
|
|
218
230
|
_this.sdkConnector = _SDKConnector.default;
|
|
@@ -230,6 +242,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
230
242
|
_this.correlationId = (0, _uuid.v4)();
|
|
231
243
|
_this.deleteCb = deleteCb;
|
|
232
244
|
_this.connected = false;
|
|
245
|
+
_this.mediaInactivity = false;
|
|
233
246
|
_this.held = false;
|
|
234
247
|
_this.earlyMedia = false;
|
|
235
248
|
_this.callerInfo = {};
|
|
@@ -237,7 +250,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
237
250
|
_this.mobiusUrl = activeUrl;
|
|
238
251
|
_this.receivedRoapOKSeq = 0;
|
|
239
252
|
_this.mediaNegotiationCompleted = false;
|
|
240
|
-
_Logger.default.info("
|
|
253
|
+
_Logger.default.info("Webex Calling Url:- ".concat(_this.mobiusUrl), {
|
|
241
254
|
file: _constants.CALL_FILE,
|
|
242
255
|
method: 'constructor'
|
|
243
256
|
});
|
|
@@ -966,7 +979,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
966
979
|
case 10:
|
|
967
980
|
_context2.prev = 10;
|
|
968
981
|
_context2.t0 = _context2["catch"](2);
|
|
969
|
-
_Logger.default.warn('
|
|
982
|
+
_Logger.default.warn('Failed to setup the call', {
|
|
970
983
|
file: _constants.CALL_FILE,
|
|
971
984
|
method: this.handleOutgoingCallSetup.name
|
|
972
985
|
});
|
|
@@ -1057,7 +1070,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1057
1070
|
case 9:
|
|
1058
1071
|
_context4.prev = 9;
|
|
1059
1072
|
_context4.t0 = _context4["catch"](1);
|
|
1060
|
-
_Logger.default.warn('
|
|
1073
|
+
_Logger.default.warn('Failed to put the call on hold', {
|
|
1061
1074
|
file: _constants.CALL_FILE,
|
|
1062
1075
|
method: this.handleCallHold.name
|
|
1063
1076
|
});
|
|
@@ -1148,7 +1161,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1148
1161
|
case 9:
|
|
1149
1162
|
_context6.prev = 9;
|
|
1150
1163
|
_context6.t0 = _context6["catch"](1);
|
|
1151
|
-
_Logger.default.warn('
|
|
1164
|
+
_Logger.default.warn('Failed to resume the call', {
|
|
1152
1165
|
file: _constants.CALL_FILE,
|
|
1153
1166
|
method: this.handleCallResume.name
|
|
1154
1167
|
});
|
|
@@ -1284,7 +1297,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1284
1297
|
case 8:
|
|
1285
1298
|
_context7.prev = 8;
|
|
1286
1299
|
_context7.t0 = _context7["catch"](1);
|
|
1287
|
-
_Logger.default.warn('
|
|
1300
|
+
_Logger.default.warn('Failed to signal call progression', {
|
|
1288
1301
|
file: _constants.CALL_FILE,
|
|
1289
1302
|
method: this.handleOutgoingCallAlerting.name
|
|
1290
1303
|
});
|
|
@@ -1371,22 +1384,24 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1371
1384
|
return _context8.abrupt("return");
|
|
1372
1385
|
case 4:
|
|
1373
1386
|
_context8.prev = 4;
|
|
1374
|
-
|
|
1387
|
+
/* Start Offer/Answer as we might have buffered the offer by now */
|
|
1388
|
+
this.mediaConnection.roapMessageReceived(this.remoteRoapMessage);
|
|
1389
|
+
|
|
1390
|
+
/* send call_connect PATCH */
|
|
1391
|
+
_context8.next = 8;
|
|
1375
1392
|
return this.patch(_types4.MobiusCallState.CONNECTED);
|
|
1376
|
-
case
|
|
1393
|
+
case 8:
|
|
1377
1394
|
res = _context8.sent;
|
|
1378
1395
|
_Logger.default.log("PATCH response: ".concat(res.statusCode), {
|
|
1379
1396
|
file: _constants.CALL_FILE,
|
|
1380
1397
|
method: this.handleOutgoingCallConnect.name
|
|
1381
1398
|
});
|
|
1382
|
-
/* Start Offer/Answer as we might have buffered the offer by now */
|
|
1383
|
-
this.mediaConnection.roapMessageReceived(this.remoteRoapMessage);
|
|
1384
1399
|
_context8.next = 17;
|
|
1385
1400
|
break;
|
|
1386
1401
|
case 12:
|
|
1387
1402
|
_context8.prev = 12;
|
|
1388
1403
|
_context8.t0 = _context8["catch"](4);
|
|
1389
|
-
_Logger.default.warn('
|
|
1404
|
+
_Logger.default.warn('Failed to connect the call', {
|
|
1390
1405
|
file: _constants.CALL_FILE,
|
|
1391
1406
|
method: this.handleOutgoingCallConnect.name
|
|
1392
1407
|
});
|
|
@@ -1448,7 +1463,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1448
1463
|
case 9:
|
|
1449
1464
|
_context9.prev = 9;
|
|
1450
1465
|
_context9.t0 = _context9["catch"](2);
|
|
1451
|
-
_Logger.default.warn('
|
|
1466
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1452
1467
|
file: _constants.CALL_FILE,
|
|
1453
1468
|
method: this.handleIncomingCallDisconnect.name
|
|
1454
1469
|
});
|
|
@@ -1515,7 +1530,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1515
1530
|
case 8:
|
|
1516
1531
|
_context10.prev = 8;
|
|
1517
1532
|
_context10.t0 = _context10["catch"](1);
|
|
1518
|
-
_Logger.default.warn('
|
|
1533
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1519
1534
|
file: _constants.CALL_FILE,
|
|
1520
1535
|
method: this.handleOutgoingCallDisconnect.name
|
|
1521
1536
|
});
|
|
@@ -1678,7 +1693,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1678
1693
|
case 11:
|
|
1679
1694
|
_context12.prev = 11;
|
|
1680
1695
|
_context12.t0 = _context12["catch"](3);
|
|
1681
|
-
_Logger.default.warn('
|
|
1696
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1682
1697
|
file: _constants.CALL_FILE,
|
|
1683
1698
|
method: this.handleUnknownState.name
|
|
1684
1699
|
});
|
|
@@ -1822,7 +1837,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1822
1837
|
case 15:
|
|
1823
1838
|
_context13.prev = 15;
|
|
1824
1839
|
_context13.t0 = _context13["catch"](5);
|
|
1825
|
-
_Logger.default.warn('
|
|
1840
|
+
_Logger.default.warn('Failed to process MediaOk request', {
|
|
1826
1841
|
file: _constants.CALL_FILE,
|
|
1827
1842
|
method: 'handleRoapEstablished'
|
|
1828
1843
|
});
|
|
@@ -1924,7 +1939,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1924
1939
|
case 10:
|
|
1925
1940
|
_context14.prev = 10;
|
|
1926
1941
|
_context14.t0 = _context14["catch"](3);
|
|
1927
|
-
_Logger.default.warn('Failed to communicate ROAP error
|
|
1942
|
+
_Logger.default.warn('Failed to communicate ROAP error to Webex Calling', {
|
|
1928
1943
|
file: _constants.CALL_FILE,
|
|
1929
1944
|
method: this.handleRoapError.name
|
|
1930
1945
|
});
|
|
@@ -2009,7 +2024,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2009
2024
|
case 13:
|
|
2010
2025
|
_context15.prev = 13;
|
|
2011
2026
|
_context15.t0 = _context15["catch"](6);
|
|
2012
|
-
_Logger.default.warn('
|
|
2027
|
+
_Logger.default.warn('Failed to process MediaOk request', {
|
|
2013
2028
|
file: _constants.CALL_FILE,
|
|
2014
2029
|
method: this.handleOutgoingRoapOffer.name
|
|
2015
2030
|
});
|
|
@@ -2071,7 +2086,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2071
2086
|
case 10:
|
|
2072
2087
|
_context16.prev = 10;
|
|
2073
2088
|
_context16.t0 = _context16["catch"](2);
|
|
2074
|
-
_Logger.default.warn('
|
|
2089
|
+
_Logger.default.warn('Failed to send MediaAnswer request', {
|
|
2075
2090
|
file: _constants.CALL_FILE,
|
|
2076
2091
|
method: this.handleOutgoingRoapAnswer.name
|
|
2077
2092
|
});
|
|
@@ -2224,7 +2239,10 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2224
2239
|
*
|
|
2225
2240
|
*/
|
|
2226
2241
|
function setDisconnectReason() {
|
|
2227
|
-
if (this.
|
|
2242
|
+
if (this.mediaInactivity) {
|
|
2243
|
+
this.disconnectReason.code = _types4.DisconnectCode.MEDIA_INACTIVITY;
|
|
2244
|
+
this.disconnectReason.cause = _types4.DisconnectCause.MEDIA_INACTIVITY;
|
|
2245
|
+
} else if (this.connected || this.direction === _types2.CallDirection.OUTBOUND) {
|
|
2228
2246
|
this.disconnectReason.code = _types4.DisconnectCode.NORMAL;
|
|
2229
2247
|
this.disconnectReason.cause = _types4.DisconnectCause.NORMAL;
|
|
2230
2248
|
} else {
|
|
@@ -2236,8 +2254,9 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2236
2254
|
key: "answer",
|
|
2237
2255
|
value:
|
|
2238
2256
|
/**
|
|
2239
|
-
*
|
|
2240
|
-
*
|
|
2257
|
+
* Answers the call with the provided local audio stream.
|
|
2258
|
+
*
|
|
2259
|
+
* @param localAudioStream - The local audio stream for the call.
|
|
2241
2260
|
*/
|
|
2242
2261
|
function () {
|
|
2243
2262
|
var _answer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(localAudioStream) {
|
|
@@ -2246,6 +2265,20 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2246
2265
|
while (1) switch (_context17.prev = _context17.next) {
|
|
2247
2266
|
case 0:
|
|
2248
2267
|
localAudioTrack = localAudioStream.outputStream.getAudioTracks()[0];
|
|
2268
|
+
if (localAudioTrack) {
|
|
2269
|
+
_context17.next = 6;
|
|
2270
|
+
break;
|
|
2271
|
+
}
|
|
2272
|
+
_Logger.default.warn("Did not find a local track while answering the call ".concat(this.getCorrelationId()), {
|
|
2273
|
+
file: _constants.CALL_FILE,
|
|
2274
|
+
method: 'answer'
|
|
2275
|
+
});
|
|
2276
|
+
this.mediaInactivity = true;
|
|
2277
|
+
this.sendCallStateMachineEvt({
|
|
2278
|
+
type: 'E_SEND_CALL_DISCONNECT'
|
|
2279
|
+
});
|
|
2280
|
+
return _context17.abrupt("return");
|
|
2281
|
+
case 6:
|
|
2249
2282
|
localAudioTrack.enabled = true;
|
|
2250
2283
|
if (!this.mediaConnection) {
|
|
2251
2284
|
this.initMediaConnection(localAudioTrack);
|
|
@@ -2263,7 +2296,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2263
2296
|
method: 'answer'
|
|
2264
2297
|
});
|
|
2265
2298
|
}
|
|
2266
|
-
case
|
|
2299
|
+
case 9:
|
|
2267
2300
|
case "end":
|
|
2268
2301
|
return _context17.stop();
|
|
2269
2302
|
}
|
|
@@ -2287,6 +2320,18 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2287
2320
|
while (1) switch (_context18.prev = _context18.next) {
|
|
2288
2321
|
case 0:
|
|
2289
2322
|
localAudioTrack = localAudioStream.outputStream.getAudioTracks()[0];
|
|
2323
|
+
if (localAudioTrack) {
|
|
2324
|
+
_context18.next = 6;
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
_Logger.default.warn("Did not find a local track while dialing the call ".concat(this.getCorrelationId()), {
|
|
2328
|
+
file: _constants.CALL_FILE,
|
|
2329
|
+
method: 'dial'
|
|
2330
|
+
});
|
|
2331
|
+
this.deleteCb(this.getCorrelationId());
|
|
2332
|
+
this.emit(_types3.CALL_EVENT_KEYS.DISCONNECT, this.getCorrelationId());
|
|
2333
|
+
return _context18.abrupt("return");
|
|
2334
|
+
case 6:
|
|
2290
2335
|
localAudioTrack.enabled = true;
|
|
2291
2336
|
if (!this.mediaConnection) {
|
|
2292
2337
|
this.initMediaConnection(localAudioTrack);
|
|
@@ -2304,7 +2349,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2304
2349
|
method: 'dial'
|
|
2305
2350
|
});
|
|
2306
2351
|
}
|
|
2307
|
-
case
|
|
2352
|
+
case 9:
|
|
2308
2353
|
case "end":
|
|
2309
2354
|
return _context18.stop();
|
|
2310
2355
|
}
|
|
@@ -2329,7 +2374,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2329
2374
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
2330
2375
|
while (1) switch (_context19.prev = _context19.next) {
|
|
2331
2376
|
case 0:
|
|
2332
|
-
_Logger.default.info("Send a PATCH for ".concat(state, " to
|
|
2377
|
+
_Logger.default.info("Send a PATCH for ".concat(state, " to Webex Calling"), {
|
|
2333
2378
|
file: _constants.CALL_FILE,
|
|
2334
2379
|
method: this.patch.name
|
|
2335
2380
|
});
|
|
@@ -2637,7 +2682,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2637
2682
|
return _regenerator.default.wrap(function _callee24$(_context25) {
|
|
2638
2683
|
while (1) switch (_context25.prev = _context25.next) {
|
|
2639
2684
|
case 0:
|
|
2640
|
-
_Logger.default.log('Posting message to
|
|
2685
|
+
_Logger.default.log('Posting message to Webex Calling', {
|
|
2641
2686
|
file: _constants.CALL_FILE,
|
|
2642
2687
|
method: this.postMedia.name
|
|
2643
2688
|
});
|