@routr/connect 2.13.18 → 2.13.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/router.js +3 -0
- package/package.json +7 -7
package/dist/router.js
CHANGED
|
@@ -217,6 +217,9 @@ function agentToPSTN(req, agent, calleeNumber) {
|
|
|
217
217
|
const regex = new RegExp(policy.rule);
|
|
218
218
|
return regex.test(calleeNumber);
|
|
219
219
|
});
|
|
220
|
+
if (!policy) {
|
|
221
|
+
throw new Error(`no egress policy matching number "${calleeNumber}" in Domain ref: ${agent.domain.ref}`);
|
|
222
|
+
}
|
|
220
223
|
const trunk = (_b = policy.number) === null || _b === void 0 ? void 0 : _b.trunk;
|
|
221
224
|
if (!trunk) {
|
|
222
225
|
// This should never happen
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/connect",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.22",
|
|
4
4
|
"description": "Default processor",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
|
29
29
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
|
30
30
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
31
|
-
"@routr/common": "^2.13.
|
|
32
|
-
"@routr/location": "^2.13.
|
|
33
|
-
"@routr/processor": "^2.13.
|
|
34
|
-
"jsonwebtoken": "^9.0.
|
|
31
|
+
"@routr/common": "^2.13.20",
|
|
32
|
+
"@routr/location": "^2.13.20",
|
|
33
|
+
"@routr/processor": "^2.13.20",
|
|
34
|
+
"jsonwebtoken": "^9.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/jsonwebtoken": "^9.0.
|
|
37
|
+
"@types/jsonwebtoken": "^9.0.10"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"bugs": {
|
|
50
50
|
"url": "https://github.com/fonoster/routr/issues"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "ec76c580084bc47f43935ae8293e60ff27abceee"
|
|
53
53
|
}
|