@webex/calling 3.0.0-next.2 → 3.0.0-next.20
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 +59 -32
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +430 -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 +41 -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 +1 -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 +29 -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
|
|
@@ -230,6 +224,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
230
224
|
_this.correlationId = (0, _uuid.v4)();
|
|
231
225
|
_this.deleteCb = deleteCb;
|
|
232
226
|
_this.connected = false;
|
|
227
|
+
_this.mediaInactivity = false;
|
|
233
228
|
_this.held = false;
|
|
234
229
|
_this.earlyMedia = false;
|
|
235
230
|
_this.callerInfo = {};
|
|
@@ -237,7 +232,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
237
232
|
_this.mobiusUrl = activeUrl;
|
|
238
233
|
_this.receivedRoapOKSeq = 0;
|
|
239
234
|
_this.mediaNegotiationCompleted = false;
|
|
240
|
-
_Logger.default.info("
|
|
235
|
+
_Logger.default.info("Webex Calling Url:- ".concat(_this.mobiusUrl), {
|
|
241
236
|
file: _constants.CALL_FILE,
|
|
242
237
|
method: 'constructor'
|
|
243
238
|
});
|
|
@@ -966,7 +961,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
966
961
|
case 10:
|
|
967
962
|
_context2.prev = 10;
|
|
968
963
|
_context2.t0 = _context2["catch"](2);
|
|
969
|
-
_Logger.default.warn('
|
|
964
|
+
_Logger.default.warn('Failed to setup the call', {
|
|
970
965
|
file: _constants.CALL_FILE,
|
|
971
966
|
method: this.handleOutgoingCallSetup.name
|
|
972
967
|
});
|
|
@@ -1057,7 +1052,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1057
1052
|
case 9:
|
|
1058
1053
|
_context4.prev = 9;
|
|
1059
1054
|
_context4.t0 = _context4["catch"](1);
|
|
1060
|
-
_Logger.default.warn('
|
|
1055
|
+
_Logger.default.warn('Failed to put the call on hold', {
|
|
1061
1056
|
file: _constants.CALL_FILE,
|
|
1062
1057
|
method: this.handleCallHold.name
|
|
1063
1058
|
});
|
|
@@ -1148,7 +1143,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1148
1143
|
case 9:
|
|
1149
1144
|
_context6.prev = 9;
|
|
1150
1145
|
_context6.t0 = _context6["catch"](1);
|
|
1151
|
-
_Logger.default.warn('
|
|
1146
|
+
_Logger.default.warn('Failed to resume the call', {
|
|
1152
1147
|
file: _constants.CALL_FILE,
|
|
1153
1148
|
method: this.handleCallResume.name
|
|
1154
1149
|
});
|
|
@@ -1284,7 +1279,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1284
1279
|
case 8:
|
|
1285
1280
|
_context7.prev = 8;
|
|
1286
1281
|
_context7.t0 = _context7["catch"](1);
|
|
1287
|
-
_Logger.default.warn('
|
|
1282
|
+
_Logger.default.warn('Failed to signal call progression', {
|
|
1288
1283
|
file: _constants.CALL_FILE,
|
|
1289
1284
|
method: this.handleOutgoingCallAlerting.name
|
|
1290
1285
|
});
|
|
@@ -1371,22 +1366,24 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1371
1366
|
return _context8.abrupt("return");
|
|
1372
1367
|
case 4:
|
|
1373
1368
|
_context8.prev = 4;
|
|
1374
|
-
|
|
1369
|
+
/* Start Offer/Answer as we might have buffered the offer by now */
|
|
1370
|
+
this.mediaConnection.roapMessageReceived(this.remoteRoapMessage);
|
|
1371
|
+
|
|
1372
|
+
/* send call_connect PATCH */
|
|
1373
|
+
_context8.next = 8;
|
|
1375
1374
|
return this.patch(_types4.MobiusCallState.CONNECTED);
|
|
1376
|
-
case
|
|
1375
|
+
case 8:
|
|
1377
1376
|
res = _context8.sent;
|
|
1378
1377
|
_Logger.default.log("PATCH response: ".concat(res.statusCode), {
|
|
1379
1378
|
file: _constants.CALL_FILE,
|
|
1380
1379
|
method: this.handleOutgoingCallConnect.name
|
|
1381
1380
|
});
|
|
1382
|
-
/* Start Offer/Answer as we might have buffered the offer by now */
|
|
1383
|
-
this.mediaConnection.roapMessageReceived(this.remoteRoapMessage);
|
|
1384
1381
|
_context8.next = 17;
|
|
1385
1382
|
break;
|
|
1386
1383
|
case 12:
|
|
1387
1384
|
_context8.prev = 12;
|
|
1388
1385
|
_context8.t0 = _context8["catch"](4);
|
|
1389
|
-
_Logger.default.warn('
|
|
1386
|
+
_Logger.default.warn('Failed to connect the call', {
|
|
1390
1387
|
file: _constants.CALL_FILE,
|
|
1391
1388
|
method: this.handleOutgoingCallConnect.name
|
|
1392
1389
|
});
|
|
@@ -1448,7 +1445,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1448
1445
|
case 9:
|
|
1449
1446
|
_context9.prev = 9;
|
|
1450
1447
|
_context9.t0 = _context9["catch"](2);
|
|
1451
|
-
_Logger.default.warn('
|
|
1448
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1452
1449
|
file: _constants.CALL_FILE,
|
|
1453
1450
|
method: this.handleIncomingCallDisconnect.name
|
|
1454
1451
|
});
|
|
@@ -1515,7 +1512,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1515
1512
|
case 8:
|
|
1516
1513
|
_context10.prev = 8;
|
|
1517
1514
|
_context10.t0 = _context10["catch"](1);
|
|
1518
|
-
_Logger.default.warn('
|
|
1515
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1519
1516
|
file: _constants.CALL_FILE,
|
|
1520
1517
|
method: this.handleOutgoingCallDisconnect.name
|
|
1521
1518
|
});
|
|
@@ -1678,7 +1675,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1678
1675
|
case 11:
|
|
1679
1676
|
_context12.prev = 11;
|
|
1680
1677
|
_context12.t0 = _context12["catch"](3);
|
|
1681
|
-
_Logger.default.warn('
|
|
1678
|
+
_Logger.default.warn('Failed to delete the call', {
|
|
1682
1679
|
file: _constants.CALL_FILE,
|
|
1683
1680
|
method: this.handleUnknownState.name
|
|
1684
1681
|
});
|
|
@@ -1822,7 +1819,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1822
1819
|
case 15:
|
|
1823
1820
|
_context13.prev = 15;
|
|
1824
1821
|
_context13.t0 = _context13["catch"](5);
|
|
1825
|
-
_Logger.default.warn('
|
|
1822
|
+
_Logger.default.warn('Failed to process MediaOk request', {
|
|
1826
1823
|
file: _constants.CALL_FILE,
|
|
1827
1824
|
method: 'handleRoapEstablished'
|
|
1828
1825
|
});
|
|
@@ -1924,7 +1921,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1924
1921
|
case 10:
|
|
1925
1922
|
_context14.prev = 10;
|
|
1926
1923
|
_context14.t0 = _context14["catch"](3);
|
|
1927
|
-
_Logger.default.warn('Failed to communicate ROAP error
|
|
1924
|
+
_Logger.default.warn('Failed to communicate ROAP error to Webex Calling', {
|
|
1928
1925
|
file: _constants.CALL_FILE,
|
|
1929
1926
|
method: this.handleRoapError.name
|
|
1930
1927
|
});
|
|
@@ -2009,7 +2006,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2009
2006
|
case 13:
|
|
2010
2007
|
_context15.prev = 13;
|
|
2011
2008
|
_context15.t0 = _context15["catch"](6);
|
|
2012
|
-
_Logger.default.warn('
|
|
2009
|
+
_Logger.default.warn('Failed to process MediaOk request', {
|
|
2013
2010
|
file: _constants.CALL_FILE,
|
|
2014
2011
|
method: this.handleOutgoingRoapOffer.name
|
|
2015
2012
|
});
|
|
@@ -2071,7 +2068,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2071
2068
|
case 10:
|
|
2072
2069
|
_context16.prev = 10;
|
|
2073
2070
|
_context16.t0 = _context16["catch"](2);
|
|
2074
|
-
_Logger.default.warn('
|
|
2071
|
+
_Logger.default.warn('Failed to send MediaAnswer request', {
|
|
2075
2072
|
file: _constants.CALL_FILE,
|
|
2076
2073
|
method: this.handleOutgoingRoapAnswer.name
|
|
2077
2074
|
});
|
|
@@ -2224,7 +2221,10 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2224
2221
|
*
|
|
2225
2222
|
*/
|
|
2226
2223
|
function setDisconnectReason() {
|
|
2227
|
-
if (this.
|
|
2224
|
+
if (this.mediaInactivity) {
|
|
2225
|
+
this.disconnectReason.code = _types4.DisconnectCode.MEDIA_INACTIVITY;
|
|
2226
|
+
this.disconnectReason.cause = _types4.DisconnectCause.MEDIA_INACTIVITY;
|
|
2227
|
+
} else if (this.connected || this.direction === _types2.CallDirection.OUTBOUND) {
|
|
2228
2228
|
this.disconnectReason.code = _types4.DisconnectCode.NORMAL;
|
|
2229
2229
|
this.disconnectReason.cause = _types4.DisconnectCause.NORMAL;
|
|
2230
2230
|
} else {
|
|
@@ -2236,8 +2236,9 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2236
2236
|
key: "answer",
|
|
2237
2237
|
value:
|
|
2238
2238
|
/**
|
|
2239
|
-
*
|
|
2240
|
-
*
|
|
2239
|
+
* Answers the call with the provided local audio stream.
|
|
2240
|
+
*
|
|
2241
|
+
* @param localAudioStream - The local audio stream for the call.
|
|
2241
2242
|
*/
|
|
2242
2243
|
function () {
|
|
2243
2244
|
var _answer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(localAudioStream) {
|
|
@@ -2246,6 +2247,20 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2246
2247
|
while (1) switch (_context17.prev = _context17.next) {
|
|
2247
2248
|
case 0:
|
|
2248
2249
|
localAudioTrack = localAudioStream.outputStream.getAudioTracks()[0];
|
|
2250
|
+
if (localAudioTrack) {
|
|
2251
|
+
_context17.next = 6;
|
|
2252
|
+
break;
|
|
2253
|
+
}
|
|
2254
|
+
_Logger.default.warn("Did not find a local track while answering the call ".concat(this.getCorrelationId()), {
|
|
2255
|
+
file: _constants.CALL_FILE,
|
|
2256
|
+
method: 'answer'
|
|
2257
|
+
});
|
|
2258
|
+
this.mediaInactivity = true;
|
|
2259
|
+
this.sendCallStateMachineEvt({
|
|
2260
|
+
type: 'E_SEND_CALL_DISCONNECT'
|
|
2261
|
+
});
|
|
2262
|
+
return _context17.abrupt("return");
|
|
2263
|
+
case 6:
|
|
2249
2264
|
localAudioTrack.enabled = true;
|
|
2250
2265
|
if (!this.mediaConnection) {
|
|
2251
2266
|
this.initMediaConnection(localAudioTrack);
|
|
@@ -2263,7 +2278,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2263
2278
|
method: 'answer'
|
|
2264
2279
|
});
|
|
2265
2280
|
}
|
|
2266
|
-
case
|
|
2281
|
+
case 9:
|
|
2267
2282
|
case "end":
|
|
2268
2283
|
return _context17.stop();
|
|
2269
2284
|
}
|
|
@@ -2287,6 +2302,18 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2287
2302
|
while (1) switch (_context18.prev = _context18.next) {
|
|
2288
2303
|
case 0:
|
|
2289
2304
|
localAudioTrack = localAudioStream.outputStream.getAudioTracks()[0];
|
|
2305
|
+
if (localAudioTrack) {
|
|
2306
|
+
_context18.next = 6;
|
|
2307
|
+
break;
|
|
2308
|
+
}
|
|
2309
|
+
_Logger.default.warn("Did not find a local track while dialling the call ".concat(this.getCorrelationId()), {
|
|
2310
|
+
file: _constants.CALL_FILE,
|
|
2311
|
+
method: 'dial'
|
|
2312
|
+
});
|
|
2313
|
+
this.deleteCb(this.getCorrelationId());
|
|
2314
|
+
this.emit(_types3.CALL_EVENT_KEYS.DISCONNECT, this.getCorrelationId());
|
|
2315
|
+
return _context18.abrupt("return");
|
|
2316
|
+
case 6:
|
|
2290
2317
|
localAudioTrack.enabled = true;
|
|
2291
2318
|
if (!this.mediaConnection) {
|
|
2292
2319
|
this.initMediaConnection(localAudioTrack);
|
|
@@ -2304,7 +2331,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2304
2331
|
method: 'dial'
|
|
2305
2332
|
});
|
|
2306
2333
|
}
|
|
2307
|
-
case
|
|
2334
|
+
case 9:
|
|
2308
2335
|
case "end":
|
|
2309
2336
|
return _context18.stop();
|
|
2310
2337
|
}
|
|
@@ -2329,7 +2356,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2329
2356
|
return _regenerator.default.wrap(function _callee19$(_context19) {
|
|
2330
2357
|
while (1) switch (_context19.prev = _context19.next) {
|
|
2331
2358
|
case 0:
|
|
2332
|
-
_Logger.default.info("Send a PATCH for ".concat(state, " to
|
|
2359
|
+
_Logger.default.info("Send a PATCH for ".concat(state, " to Webex Calling"), {
|
|
2333
2360
|
file: _constants.CALL_FILE,
|
|
2334
2361
|
method: this.patch.name
|
|
2335
2362
|
});
|
|
@@ -2637,7 +2664,7 @@ var Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2637
2664
|
return _regenerator.default.wrap(function _callee24$(_context25) {
|
|
2638
2665
|
while (1) switch (_context25.prev = _context25.next) {
|
|
2639
2666
|
case 0:
|
|
2640
|
-
_Logger.default.log('Posting message to
|
|
2667
|
+
_Logger.default.log('Posting message to Webex Calling', {
|
|
2641
2668
|
file: _constants.CALL_FILE,
|
|
2642
2669
|
method: this.postMedia.name
|
|
2643
2670
|
});
|