@routr/edgeport 2.7.0 → 2.7.2

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.
@@ -6,11 +6,11 @@ export declare const isFile: (path: string) => any;
6
6
  * Reads a file and returns a JSON object or throws an error.
7
7
  * The file must be a valid JSON, YAML, or TOML file.
8
8
  *
9
- * @param {string} path - The path to the file.
10
- * @return {object} The JSON object.
11
- * @throws {Error} If the file is not a valid JSON, YAML, or TOML file.
12
- * @throws {Error} If the file does not exist.
13
- * @throws {Error} If the file is not readable.
14
- * @throws {Error} If the file is empty.
9
+ * @param {string} path - The path to the file
10
+ * @return {object} The JSON object
11
+ * @throws {Error} If the file is not a valid JSON, YAML, or TOML file
12
+ * @throws {Error} If the file does not exist
13
+ * @throws {Error} If the file is not readable
14
+ * @throws {Error} If the file is empty
15
15
  */
16
16
  export declare const readConfigFile: (path: string) => JsonObject;
package/dist/config/fs.js CHANGED
@@ -46,12 +46,12 @@ exports.isFile = isFile;
46
46
  * Reads a file and returns a JSON object or throws an error.
47
47
  * The file must be a valid JSON, YAML, or TOML file.
48
48
  *
49
- * @param {string} path - The path to the file.
50
- * @return {object} The JSON object.
51
- * @throws {Error} If the file is not a valid JSON, YAML, or TOML file.
52
- * @throws {Error} If the file does not exist.
53
- * @throws {Error} If the file is not readable.
54
- * @throws {Error} If the file is empty.
49
+ * @param {string} path - The path to the file
50
+ * @return {object} The JSON object
51
+ * @throws {Error} If the file is not a valid JSON, YAML, or TOML file
52
+ * @throws {Error} If the file does not exist
53
+ * @throws {Error} If the file is not readable
54
+ * @throws {Error} If the file is empty
55
55
  */
56
56
  const readConfigFile = (path) => {
57
57
  if (!(0, exports.exists)(path) || !(0, exports.isFile)(path)) {
@@ -23,6 +23,7 @@ function getServerProperties(config) {
23
23
  // Guard against denial of service attack.
24
24
  properties.setProperty("gov.nist.javax.sip.MAX_MESSAGE_SIZE", "1048576");
25
25
  properties.setProperty("gov.nist.javax.sip.LOG_MESSAGE_CONTENT", "true");
26
+ properties.setProperty("gov.nist.javax.sip.DELIVER_UNSOLICITED_NOTIFY", "true");
26
27
  // Default host
27
28
  properties.setProperty("javax.sip.IP_ADDRESS", config.spec.bindAddr);
28
29
  if (config.spec.securityContext) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/edgeport",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
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.7.0",
32
+ "@routr/common": "^2.7.2",
33
33
  "ajv": "^6.12.6",
34
34
  "fp-ts": "^2.11.8",
35
35
  "js-yaml": "^4.1.0",
36
36
  "toml": "^3.0.0"
37
37
  },
38
- "gitHead": "46d067f61a0797fbab905073f70c7ab319979d1d"
38
+ "gitHead": "01dfded02d52434ae789257b069b3bba1949878f"
39
39
  }