@webex/calling 3.7.0-next.2 → 3.7.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/dist/CallingClient/CallingClient.js +49 -9
- package/dist/CallingClient/CallingClient.js.map +1 -1
- package/dist/CallingClient/calling/call.js +121 -57
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +21 -8
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/Contacts/ContactsClient.js +37 -16
- package/dist/Contacts/ContactsClient.js.map +1 -1
- package/dist/Contacts/ContactsClient.test.js +34 -0
- package/dist/Contacts/ContactsClient.test.js.map +1 -1
- package/dist/Logger/index.js +22 -14
- package/dist/Logger/index.js.map +1 -1
- package/dist/Logger/index.test.js +30 -5
- package/dist/Logger/index.test.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/common/Utils.js +96 -0
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +98 -0
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/module/CallingClient/CallingClient.js +8 -1
- package/dist/module/CallingClient/calling/call.js +64 -1
- package/dist/module/Contacts/ContactsClient.js +16 -5
- package/dist/module/Logger/index.js +20 -11
- package/dist/module/common/Utils.js +48 -0
- package/dist/types/CallingClient/CallingClient.d.ts +3 -0
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
- package/dist/types/Logger/index.d.ts +2 -0
- package/dist/types/Logger/index.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +12 -9
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts +2 -0
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1127,15 +1127,19 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1127
1127
|
return this.post(message);
|
|
1128
1128
|
case 5:
|
|
1129
1129
|
response = _context3.sent;
|
|
1130
|
+
_Logger.default.log("handleOutgoingCallSetup: Response: ".concat((0, _stringify.default)(response)), {
|
|
1131
|
+
file: _constants.CALL_FILE,
|
|
1132
|
+
method: this.handleOutgoingCallSetup.name
|
|
1133
|
+
});
|
|
1130
1134
|
_Logger.default.log("handleOutgoingCallSetup: Response code: ".concat(response.statusCode), {
|
|
1131
1135
|
file: _constants.CALL_FILE,
|
|
1132
1136
|
method: this.handleOutgoingCallSetup.name
|
|
1133
1137
|
});
|
|
1134
1138
|
this.setCallId(response.body.callId);
|
|
1135
|
-
_context3.next =
|
|
1139
|
+
_context3.next = 17;
|
|
1136
1140
|
break;
|
|
1137
|
-
case
|
|
1138
|
-
_context3.prev =
|
|
1141
|
+
case 11:
|
|
1142
|
+
_context3.prev = 11;
|
|
1139
1143
|
_context3.t0 = _context3["catch"](2);
|
|
1140
1144
|
_Logger.default.warn('Failed to setup the call', {
|
|
1141
1145
|
file: _constants.CALL_FILE,
|
|
@@ -1155,11 +1159,15 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1155
1159
|
function (interval) {
|
|
1156
1160
|
return undefined;
|
|
1157
1161
|
}, this.getCorrelationId(), errData, this.handleOutgoingCallSetup.name, _constants.CALL_FILE);
|
|
1158
|
-
|
|
1162
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
1163
|
+
correlationId: this.correlationId,
|
|
1164
|
+
callId: this.callId
|
|
1165
|
+
});
|
|
1166
|
+
case 17:
|
|
1159
1167
|
case "end":
|
|
1160
1168
|
return _context3.stop();
|
|
1161
1169
|
}
|
|
1162
|
-
}, _callee3, this, [[2,
|
|
1170
|
+
}, _callee3, this, [[2, 11]]);
|
|
1163
1171
|
}));
|
|
1164
1172
|
function handleOutgoingCallSetup(_x3) {
|
|
1165
1173
|
return _handleOutgoingCallSetup.apply(this, arguments);
|
|
@@ -1224,7 +1232,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1224
1232
|
}, _callee4);
|
|
1225
1233
|
})), _constants.SUPPLEMENTARY_SERVICES_TIMEOUT);
|
|
1226
1234
|
}
|
|
1227
|
-
_context5.next =
|
|
1235
|
+
_context5.next = 15;
|
|
1228
1236
|
break;
|
|
1229
1237
|
case 9:
|
|
1230
1238
|
_context5.prev = 9;
|
|
@@ -1247,7 +1255,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1247
1255
|
function (interval) {
|
|
1248
1256
|
return undefined;
|
|
1249
1257
|
}, this.getCorrelationId(), errData, this.handleOutgoingCallSetup.name, _constants.CALL_FILE);
|
|
1250
|
-
|
|
1258
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
1259
|
+
correlationId: this.correlationId,
|
|
1260
|
+
callId: this.callId
|
|
1261
|
+
});
|
|
1262
|
+
case 15:
|
|
1251
1263
|
case "end":
|
|
1252
1264
|
return _context5.stop();
|
|
1253
1265
|
}
|
|
@@ -1316,7 +1328,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1316
1328
|
}, _callee6);
|
|
1317
1329
|
})), _constants.SUPPLEMENTARY_SERVICES_TIMEOUT);
|
|
1318
1330
|
}
|
|
1319
|
-
_context7.next =
|
|
1331
|
+
_context7.next = 15;
|
|
1320
1332
|
break;
|
|
1321
1333
|
case 9:
|
|
1322
1334
|
_context7.prev = 9;
|
|
@@ -1339,7 +1351,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1339
1351
|
function (interval) {
|
|
1340
1352
|
return undefined;
|
|
1341
1353
|
}, this.getCorrelationId(), errData, this.handleOutgoingCallSetup.name, _constants.CALL_FILE);
|
|
1342
|
-
|
|
1354
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
1355
|
+
correlationId: this.correlationId,
|
|
1356
|
+
callId: this.callId
|
|
1357
|
+
});
|
|
1358
|
+
case 15:
|
|
1343
1359
|
case "end":
|
|
1344
1360
|
return _context7.stop();
|
|
1345
1361
|
}
|
|
@@ -1453,7 +1469,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1453
1469
|
file: _constants.CALL_FILE,
|
|
1454
1470
|
method: this.handleOutgoingCallAlerting.name
|
|
1455
1471
|
});
|
|
1456
|
-
_context8.next =
|
|
1472
|
+
_context8.next = 14;
|
|
1457
1473
|
break;
|
|
1458
1474
|
case 8:
|
|
1459
1475
|
_context8.prev = 8;
|
|
@@ -1476,7 +1492,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1476
1492
|
function (interval) {
|
|
1477
1493
|
return undefined;
|
|
1478
1494
|
}, this.getCorrelationId(), errData, this.handleOutgoingCallAlerting.name, _constants.CALL_FILE);
|
|
1479
|
-
|
|
1495
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
1496
|
+
correlationId: this.correlationId,
|
|
1497
|
+
callId: this.callId
|
|
1498
|
+
});
|
|
1499
|
+
case 14:
|
|
1480
1500
|
case "end":
|
|
1481
1501
|
return _context8.stop();
|
|
1482
1502
|
}
|
|
@@ -1558,7 +1578,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1558
1578
|
file: _constants.CALL_FILE,
|
|
1559
1579
|
method: this.handleOutgoingCallConnect.name
|
|
1560
1580
|
});
|
|
1561
|
-
_context9.next =
|
|
1581
|
+
_context9.next = 18;
|
|
1562
1582
|
break;
|
|
1563
1583
|
case 12:
|
|
1564
1584
|
_context9.prev = 12;
|
|
@@ -1581,7 +1601,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1581
1601
|
function (interval) {
|
|
1582
1602
|
return undefined;
|
|
1583
1603
|
}, this.getCorrelationId(), errData, this.handleOutgoingCallConnect.name, _constants.CALL_FILE);
|
|
1584
|
-
|
|
1604
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
1605
|
+
correlationId: this.correlationId,
|
|
1606
|
+
callId: this.callId
|
|
1607
|
+
});
|
|
1608
|
+
case 18:
|
|
1585
1609
|
case "end":
|
|
1586
1610
|
return _context9.stop();
|
|
1587
1611
|
}
|
|
@@ -1780,7 +1804,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1780
1804
|
file: _constants.CALL_FILE,
|
|
1781
1805
|
method: 'handleCallEstablished'
|
|
1782
1806
|
});
|
|
1783
|
-
_context12.next =
|
|
1807
|
+
_context12.next = 13;
|
|
1784
1808
|
break;
|
|
1785
1809
|
case 7:
|
|
1786
1810
|
_context12.prev = 7;
|
|
@@ -1809,7 +1833,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1809
1833
|
});
|
|
1810
1834
|
}, interval * 1000);
|
|
1811
1835
|
}, _this7.getCorrelationId(), error, _this7.handleCallEstablished.name, _constants.CALL_FILE);
|
|
1812
|
-
|
|
1836
|
+
(0, _Utils.uploadLogs)(_this7.webex, {
|
|
1837
|
+
correlationId: _this7.correlationId,
|
|
1838
|
+
callId: _this7.callId
|
|
1839
|
+
});
|
|
1840
|
+
case 13:
|
|
1813
1841
|
case "end":
|
|
1814
1842
|
return _context12.stop();
|
|
1815
1843
|
}
|
|
@@ -1974,7 +2002,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
1974
2002
|
_ref7 = event.data, received = _ref7.received, message = _ref7.message;
|
|
1975
2003
|
this.receivedRoapOKSeq = message.seq;
|
|
1976
2004
|
if (received) {
|
|
1977
|
-
_context14.next =
|
|
2005
|
+
_context14.next = 23;
|
|
1978
2006
|
break;
|
|
1979
2007
|
}
|
|
1980
2008
|
_Logger.default.info('Sending Media Ok to the remote End', {
|
|
@@ -2004,7 +2032,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2004
2032
|
type: 'E_CALL_ESTABLISHED'
|
|
2005
2033
|
});
|
|
2006
2034
|
}
|
|
2007
|
-
_context14.next =
|
|
2035
|
+
_context14.next = 21;
|
|
2008
2036
|
break;
|
|
2009
2037
|
case 15:
|
|
2010
2038
|
_context14.prev = 15;
|
|
@@ -2026,10 +2054,14 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2026
2054
|
}, interval * 1000);
|
|
2027
2055
|
}
|
|
2028
2056
|
}, this.getCorrelationId(), errData, this.handleRoapEstablished.name, _constants.CALL_FILE);
|
|
2029
|
-
|
|
2030
|
-
|
|
2057
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2058
|
+
correlationId: this.correlationId,
|
|
2059
|
+
callId: this.callId
|
|
2060
|
+
});
|
|
2061
|
+
case 21:
|
|
2062
|
+
_context14.next = 28;
|
|
2031
2063
|
break;
|
|
2032
|
-
case
|
|
2064
|
+
case 23:
|
|
2033
2065
|
_Logger.default.info('Notifying internal-media-core about ROAP OK message', {
|
|
2034
2066
|
file: _constants.CALL_FILE,
|
|
2035
2067
|
method: 'handleRoapEstablished'
|
|
@@ -2059,7 +2091,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2059
2091
|
});
|
|
2060
2092
|
}
|
|
2061
2093
|
}
|
|
2062
|
-
case
|
|
2094
|
+
case 28:
|
|
2063
2095
|
case "end":
|
|
2064
2096
|
return _context14.stop();
|
|
2065
2097
|
}
|
|
@@ -2095,7 +2127,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2095
2127
|
message = event.data;
|
|
2096
2128
|
/* istanbul ignore else */
|
|
2097
2129
|
if (!message) {
|
|
2098
|
-
_context15.next =
|
|
2130
|
+
_context15.next = 16;
|
|
2099
2131
|
break;
|
|
2100
2132
|
}
|
|
2101
2133
|
_context15.prev = 3;
|
|
@@ -2107,7 +2139,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2107
2139
|
file: _constants.CALL_FILE,
|
|
2108
2140
|
method: this.handleRoapError.name
|
|
2109
2141
|
});
|
|
2110
|
-
_context15.next =
|
|
2142
|
+
_context15.next = 16;
|
|
2111
2143
|
break;
|
|
2112
2144
|
case 10:
|
|
2113
2145
|
_context15.prev = 10;
|
|
@@ -2126,7 +2158,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2126
2158
|
function (interval) {
|
|
2127
2159
|
return undefined;
|
|
2128
2160
|
}, this.getCorrelationId(), errData, this.handleRoapError.name, _constants.CALL_FILE);
|
|
2129
|
-
|
|
2161
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2162
|
+
correlationId: this.correlationId,
|
|
2163
|
+
callId: this.callId
|
|
2164
|
+
});
|
|
2165
|
+
case 16:
|
|
2130
2166
|
/* Only disconnect calls that are not yet connected yet */
|
|
2131
2167
|
|
|
2132
2168
|
if (!this.connected) {
|
|
@@ -2141,7 +2177,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2141
2177
|
}
|
|
2142
2178
|
});
|
|
2143
2179
|
}
|
|
2144
|
-
case
|
|
2180
|
+
case 17:
|
|
2145
2181
|
case "end":
|
|
2146
2182
|
return _context15.stop();
|
|
2147
2183
|
}
|
|
@@ -2193,7 +2229,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2193
2229
|
file: _constants.CALL_FILE,
|
|
2194
2230
|
method: this.handleOutgoingRoapOffer.name
|
|
2195
2231
|
});
|
|
2196
|
-
_context16.next =
|
|
2232
|
+
_context16.next = 19;
|
|
2197
2233
|
break;
|
|
2198
2234
|
case 13:
|
|
2199
2235
|
_context16.prev = 13;
|
|
@@ -2214,7 +2250,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2214
2250
|
}, interval * 1000);
|
|
2215
2251
|
}
|
|
2216
2252
|
}, this.getCorrelationId(), errData, this.handleOutgoingRoapOffer.name, _constants.CALL_FILE);
|
|
2217
|
-
|
|
2253
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2254
|
+
correlationId: this.correlationId,
|
|
2255
|
+
callId: this.callId
|
|
2256
|
+
});
|
|
2257
|
+
case 19:
|
|
2218
2258
|
case "end":
|
|
2219
2259
|
return _context16.stop();
|
|
2220
2260
|
}
|
|
@@ -2256,7 +2296,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2256
2296
|
file: _constants.CALL_FILE,
|
|
2257
2297
|
method: this.handleOutgoingRoapAnswer.name
|
|
2258
2298
|
});
|
|
2259
|
-
_context17.next =
|
|
2299
|
+
_context17.next = 16;
|
|
2260
2300
|
break;
|
|
2261
2301
|
case 10:
|
|
2262
2302
|
_context17.prev = 10;
|
|
@@ -2277,7 +2317,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2277
2317
|
}, interval * 1000);
|
|
2278
2318
|
}
|
|
2279
2319
|
}, this.getCorrelationId(), errData, this.handleOutgoingRoapAnswer.name, _constants.CALL_FILE);
|
|
2280
|
-
|
|
2320
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2321
|
+
correlationId: this.correlationId,
|
|
2322
|
+
callId: this.callId
|
|
2323
|
+
});
|
|
2324
|
+
case 16:
|
|
2281
2325
|
case "end":
|
|
2282
2326
|
return _context17.stop();
|
|
2283
2327
|
}
|
|
@@ -2720,7 +2764,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2720
2764
|
while (1) switch (_context24.prev = _context24.next) {
|
|
2721
2765
|
case 0:
|
|
2722
2766
|
if (!(transferType === _types4.TransferType.BLIND && transferTarget)) {
|
|
2723
|
-
_context24.next =
|
|
2767
|
+
_context24.next = 17;
|
|
2724
2768
|
break;
|
|
2725
2769
|
}
|
|
2726
2770
|
/* blind transfer */
|
|
@@ -2738,7 +2782,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2738
2782
|
return this.postSSRequest(context, _types3.SUPPLEMENTARY_SERVICES.TRANSFER);
|
|
2739
2783
|
case 6:
|
|
2740
2784
|
this.metricManager.submitCallMetric(_types5.METRIC_EVENT.CALL, _types5.TRANSFER_ACTION.BLIND, _types5.METRIC_TYPE.BEHAVIORAL, this.getCallId(), this.getCorrelationId(), undefined);
|
|
2741
|
-
_context24.next =
|
|
2785
|
+
_context24.next = 15;
|
|
2742
2786
|
break;
|
|
2743
2787
|
case 9:
|
|
2744
2788
|
_context24.prev = 9;
|
|
@@ -2757,12 +2801,16 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2757
2801
|
function (interval) {
|
|
2758
2802
|
return undefined;
|
|
2759
2803
|
}, this.getCorrelationId(), errData, this.completeTransfer.name, _constants.CALL_FILE);
|
|
2760
|
-
|
|
2761
|
-
|
|
2804
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2805
|
+
correlationId: this.correlationId,
|
|
2806
|
+
callId: this.callId
|
|
2807
|
+
});
|
|
2808
|
+
case 15:
|
|
2809
|
+
_context24.next = 35;
|
|
2762
2810
|
break;
|
|
2763
|
-
case
|
|
2811
|
+
case 17:
|
|
2764
2812
|
if (!(transferType === _types4.TransferType.CONSULT && transferCallId)) {
|
|
2765
|
-
_context24.next =
|
|
2813
|
+
_context24.next = 34;
|
|
2766
2814
|
break;
|
|
2767
2815
|
}
|
|
2768
2816
|
/* Consult transfer */
|
|
@@ -2775,16 +2823,16 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2775
2823
|
transferorCallId: this.getCallId(),
|
|
2776
2824
|
transferToCallId: transferCallId
|
|
2777
2825
|
};
|
|
2778
|
-
_context24.prev =
|
|
2779
|
-
_context24.next =
|
|
2826
|
+
_context24.prev = 20;
|
|
2827
|
+
_context24.next = 23;
|
|
2780
2828
|
return this.postSSRequest(_context23, _types3.SUPPLEMENTARY_SERVICES.TRANSFER);
|
|
2781
|
-
case
|
|
2829
|
+
case 23:
|
|
2782
2830
|
this.metricManager.submitCallMetric(_types5.METRIC_EVENT.CALL, _types5.TRANSFER_ACTION.CONSULT, _types5.METRIC_TYPE.BEHAVIORAL, this.getCallId(), this.getCorrelationId(), undefined);
|
|
2783
|
-
_context24.next =
|
|
2831
|
+
_context24.next = 32;
|
|
2784
2832
|
break;
|
|
2785
|
-
case
|
|
2786
|
-
_context24.prev =
|
|
2787
|
-
_context24.t1 = _context24["catch"](
|
|
2833
|
+
case 26:
|
|
2834
|
+
_context24.prev = 26;
|
|
2835
|
+
_context24.t1 = _context24["catch"](20);
|
|
2788
2836
|
_Logger.default.warn("Consult Transfer failed for correlationId ".concat(this.getCorrelationId()), {
|
|
2789
2837
|
file: _constants.CALL_FILE,
|
|
2790
2838
|
method: this.completeTransfer.name
|
|
@@ -2799,19 +2847,23 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2799
2847
|
function (interval) {
|
|
2800
2848
|
return undefined;
|
|
2801
2849
|
}, this.getCorrelationId(), _errData, this.completeTransfer.name, _constants.CALL_FILE);
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2850
|
+
(0, _Utils.uploadLogs)(this.webex, {
|
|
2851
|
+
correlationId: this.correlationId,
|
|
2852
|
+
callId: this.callId
|
|
2853
|
+
});
|
|
2805
2854
|
case 32:
|
|
2855
|
+
_context24.next = 35;
|
|
2856
|
+
break;
|
|
2857
|
+
case 34:
|
|
2806
2858
|
_Logger.default.warn("Invalid information received, transfer failed for correlationId: ".concat(this.getCorrelationId()), {
|
|
2807
2859
|
file: _constants.CALL_FILE,
|
|
2808
2860
|
method: this.completeTransfer.name
|
|
2809
2861
|
});
|
|
2810
|
-
case
|
|
2862
|
+
case 35:
|
|
2811
2863
|
case "end":
|
|
2812
2864
|
return _context24.stop();
|
|
2813
2865
|
}
|
|
2814
|
-
}, _callee23, this, [[3, 9], [
|
|
2866
|
+
}, _callee23, this, [[3, 9], [20, 26]]);
|
|
2815
2867
|
}));
|
|
2816
2868
|
function completeTransfer(_x24, _x25, _x26) {
|
|
2817
2869
|
return _completeTransfer.apply(this, arguments);
|
|
@@ -2927,7 +2979,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2927
2979
|
method: _this15.mediaRoapEventsListener.name
|
|
2928
2980
|
});
|
|
2929
2981
|
_context27.t0 = event.roapMessage.messageType;
|
|
2930
|
-
_context27.next = _context27.t0 === _types4.RoapScenario.OK ? 5 : _context27.t0 === _types4.RoapScenario.OFFER ? 8 : _context27.t0 === _types4.RoapScenario.ANSWER ?
|
|
2982
|
+
_context27.next = _context27.t0 === _types4.RoapScenario.OK ? 5 : _context27.t0 === _types4.RoapScenario.OFFER ? 8 : _context27.t0 === _types4.RoapScenario.ANSWER ? 16 : _context27.t0 === _types4.RoapScenario.ERROR ? 20 : _context27.t0 === _types4.RoapScenario.OFFER_RESPONSE ? 22 : 26;
|
|
2931
2983
|
break;
|
|
2932
2984
|
case 5:
|
|
2933
2985
|
mediaOk = {
|
|
@@ -2938,38 +2990,50 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2938
2990
|
type: 'E_ROAP_OK',
|
|
2939
2991
|
data: mediaOk
|
|
2940
2992
|
});
|
|
2941
|
-
return _context27.abrupt("break",
|
|
2993
|
+
return _context27.abrupt("break", 26);
|
|
2942
2994
|
case 8:
|
|
2943
2995
|
// TODO: Remove these after the Media-Core adds the fix
|
|
2996
|
+
// Check if at least one IPv6 "c=" line is present
|
|
2997
|
+
_Logger.default.info("before modifying sdp: ".concat(event.roapMessage.sdp), {
|
|
2998
|
+
file: _constants.CALL_FILE,
|
|
2999
|
+
method: _this15.mediaRoapEventsListener.name
|
|
3000
|
+
});
|
|
3001
|
+
event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
|
|
2944
3002
|
sdpVideoPortZero = event.roapMessage.sdp.replace(/^m=(video) (?:\d+) /gim, 'm=$1 0 ');
|
|
3003
|
+
_Logger.default.info("after modification sdp: ".concat(sdpVideoPortZero), {
|
|
3004
|
+
file: _constants.CALL_FILE,
|
|
3005
|
+
method: _this15.mediaRoapEventsListener.name
|
|
3006
|
+
});
|
|
2945
3007
|
event.roapMessage.sdp = sdpVideoPortZero;
|
|
2946
3008
|
_this15.localRoapMessage = event.roapMessage;
|
|
2947
3009
|
_this15.sendCallStateMachineEvt({
|
|
2948
3010
|
type: 'E_SEND_CALL_SETUP',
|
|
2949
3011
|
data: event.roapMessage
|
|
2950
3012
|
});
|
|
2951
|
-
return _context27.abrupt("break",
|
|
2952
|
-
case
|
|
3013
|
+
return _context27.abrupt("break", 26);
|
|
3014
|
+
case 16:
|
|
3015
|
+
event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
|
|
2953
3016
|
_this15.localRoapMessage = event.roapMessage;
|
|
2954
3017
|
_this15.sendMediaStateMachineEvt({
|
|
2955
3018
|
type: 'E_SEND_ROAP_ANSWER',
|
|
2956
3019
|
data: event.roapMessage
|
|
2957
3020
|
});
|
|
2958
|
-
return _context27.abrupt("break",
|
|
2959
|
-
case
|
|
3021
|
+
return _context27.abrupt("break", 26);
|
|
3022
|
+
case 20:
|
|
2960
3023
|
_this15.sendMediaStateMachineEvt({
|
|
2961
3024
|
type: 'E_ROAP_ERROR',
|
|
2962
3025
|
data: event.roapMessage
|
|
2963
3026
|
});
|
|
2964
|
-
return _context27.abrupt("break",
|
|
2965
|
-
case
|
|
3027
|
+
return _context27.abrupt("break", 26);
|
|
3028
|
+
case 22:
|
|
3029
|
+
event.roapMessage.sdp = (0, _Utils.modifySdpForIPv4)(event.roapMessage.sdp);
|
|
2966
3030
|
_this15.localRoapMessage = event.roapMessage;
|
|
2967
3031
|
_this15.sendMediaStateMachineEvt({
|
|
2968
3032
|
type: 'E_SEND_ROAP_OFFER',
|
|
2969
3033
|
data: event.roapMessage
|
|
2970
3034
|
});
|
|
2971
|
-
return _context27.abrupt("break",
|
|
2972
|
-
case
|
|
3035
|
+
return _context27.abrupt("break", 26);
|
|
3036
|
+
case 26:
|
|
2973
3037
|
case "end":
|
|
2974
3038
|
return _context27.stop();
|
|
2975
3039
|
}
|