@routr/connect 2.0.8-alpha.16 → 2.0.8-alpha.18

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.
Files changed (2) hide show
  1. package/dist/router.js +3 -3
  2. package/package.json +5 -5
package/dist/router.js CHANGED
@@ -122,7 +122,7 @@ function fromPSTN(location, callee, req) {
122
122
  }
123
123
  // eslint-disable-next-line require-jsdoc
124
124
  function agentToPSTN(req, agent, calleeNumber) {
125
- var _a, _b, _c, _d;
125
+ var _a, _b, _c, _d, _e;
126
126
  return __awaiter(this, void 0, void 0, function* () {
127
127
  if (!((_a = agent.domain) === null || _a === void 0 ? void 0 : _a.egressPolicies)) {
128
128
  // TODO: Create custom error
@@ -143,7 +143,7 @@ function agentToPSTN(req, agent, calleeNumber) {
143
143
  user: uri.user,
144
144
  host: uri.host,
145
145
  port: uri.port,
146
- transport: uri.transport,
146
+ transport: (_d = uri.transport) === null || _d === void 0 ? void 0 : _d.toUpperCase(),
147
147
  edgePortRef: req.edgePortRef,
148
148
  listeningPoints: req.listeningPoints,
149
149
  localnets: req.localnets,
@@ -156,7 +156,7 @@ function agentToPSTN(req, agent, calleeNumber) {
156
156
  },
157
157
  {
158
158
  name: "Privacy",
159
- value: ((_d = agent.privacy) === null || _d === void 0 ? void 0 : _d.toLowerCase()) === common_1.CommonTypes.Privacy.PRIVATE
159
+ value: ((_e = agent.privacy) === null || _e === void 0 ? void 0 : _e.toUpperCase()) === common_1.CommonTypes.Privacy.PRIVATE
160
160
  ? common_1.CommonTypes.Privacy.PRIVATE
161
161
  : common_1.CommonTypes.Privacy.NONE,
162
162
  action: common_1.CommonTypes.HeaderModifierAction.ADD
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/connect",
3
- "version": "2.0.8-alpha.16",
3
+ "version": "2.0.8-alpha.18",
4
4
  "description": "Default processor",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -28,9 +28,9 @@
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.0.8-alpha.16",
32
- "@routr/location": "^2.0.8-alpha.16",
33
- "@routr/processor": "^2.0.8-alpha.16"
31
+ "@routr/common": "^2.0.8-alpha.18",
32
+ "@routr/location": "^2.0.8-alpha.18",
33
+ "@routr/processor": "^2.0.8-alpha.18"
34
34
  },
35
35
  "files": [
36
36
  "dist"
@@ -45,5 +45,5 @@
45
45
  "bugs": {
46
46
  "url": "https://github.com/fonoster/routr/issues"
47
47
  },
48
- "gitHead": "78e8c80cd1c1a5b045d83cce6c4ec58e07618314"
48
+ "gitHead": "66ce6b3ed832bb8c549d344b3367aceed4b6da8f"
49
49
  }