@routr/edgeport 2.13.17 → 2.13.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/dist/edgeport.js +12 -0
- package/package.json +4 -4
package/dist/edgeport.js
CHANGED
|
@@ -12,6 +12,16 @@ const create_sip_stack_1 = __importDefault(require("./create_sip_stack"));
|
|
|
12
12
|
const server_properties_1 = __importDefault(require("./server_properties"));
|
|
13
13
|
const GRPCSipListener = Java.type("io.routr.GRPCSipListener");
|
|
14
14
|
const ArrayList = Java.type("java.util.ArrayList");
|
|
15
|
+
const Thread = Java.type("java.lang.Thread");
|
|
16
|
+
const ThreadExceptionHandler = Java.type("io.routr.utils.ThreadExceptionHandler");
|
|
17
|
+
/**
|
|
18
|
+
* Sets up a default uncaught exception handler to catch StackOverflowError
|
|
19
|
+
* in JAIN-SIP internal threads (like EventScannerThread) that can occur
|
|
20
|
+
* during WSS connection establishment.
|
|
21
|
+
*/
|
|
22
|
+
function setupThreadExceptionHandler() {
|
|
23
|
+
Thread.setDefaultUncaughtExceptionHandler(new ThreadExceptionHandler());
|
|
24
|
+
}
|
|
15
25
|
/**
|
|
16
26
|
* Starts a new Edgeport service.
|
|
17
27
|
*
|
|
@@ -22,6 +32,8 @@ function edgePort(config) {
|
|
|
22
32
|
(0, assertions_1.assertNoDuplicatedProto)(config.spec.transport);
|
|
23
33
|
(0, assertions_1.assertNoDuplicatedPort)(config.spec.transport);
|
|
24
34
|
(0, assertions_1.assertHasSecurityContext)(config);
|
|
35
|
+
// Set up exception handler for JAIN-SIP internal threads before creating the stack
|
|
36
|
+
setupThreadExceptionHandler();
|
|
25
37
|
const sipStack = (0, create_sip_stack_1.default)((0, server_properties_1.default)(config));
|
|
26
38
|
const sipProvider = (0, create_sip_provider_1.default)(sipStack, (0, create_listening_points_1.default)(sipStack, config));
|
|
27
39
|
const externalAddrs = new ArrayList();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/edgeport",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.20",
|
|
4
4
|
"description": "SIP endpoint at the edge of the network",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"url": "https://github.com/fonoster/routr/issues"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@routr/common": "^2.13.
|
|
32
|
+
"@routr/common": "^2.13.20",
|
|
33
33
|
"ajv": "^6.12.6",
|
|
34
34
|
"fp-ts": "^2.11.8",
|
|
35
|
-
"js-yaml": "^4.1.
|
|
35
|
+
"js-yaml": "^4.1.1",
|
|
36
36
|
"toml": "^3.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "642c22cc90bf362768411318c7d2e26ff7651ee3"
|
|
39
39
|
}
|