@routr/rtprelay 2.13.20 → 2.15.0

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/utils.d.ts CHANGED
@@ -8,19 +8,25 @@ export declare function getRTPEParamsByDirection(dir: Direction): {
8
8
  SDES: string[];
9
9
  flags: string[];
10
10
  "transport-protocol"?: undefined;
11
+ DTLS?: undefined;
11
12
  "rtcp-mux"?: undefined;
13
+ replace?: undefined;
12
14
  } | {
13
15
  "transport-protocol": string;
14
- "rtcp-mux": string;
16
+ DTLS: string;
15
17
  ICE: string;
18
+ "rtcp-mux": string[];
19
+ replace: string[];
16
20
  flags: string[];
17
21
  SDES?: undefined;
18
22
  } | {
19
23
  "transport-protocol": string;
20
24
  "rtcp-mux": string;
21
25
  ICE: string;
22
- SDES: string[];
23
26
  flags: string[];
27
+ SDES?: undefined;
28
+ DTLS?: undefined;
29
+ replace?: undefined;
24
30
  };
25
31
  export declare const callInvolvesWebRTC: (direction: Direction) => direction is Direction.WEB_TO_PHONE | Direction.PHONE_TO_WEB;
26
32
  export declare const shouldNotHandleRequest: (req: MessageRequest) => boolean;
package/dist/utils.js CHANGED
@@ -42,22 +42,20 @@ function getRTPEParamsByDirection(dir) {
42
42
  case types_1.Direction.WEB_TO_PHONE:
43
43
  return {
44
44
  "transport-protocol": "RTP/AVP",
45
- "rtcp-mux": "demux",
45
+ DTLS: "off",
46
46
  ICE: "remove",
47
- flags: ["trust-address", "replace-origin", "replace-session-connection"]
47
+ "rtcp-mux": ["demux"],
48
+ replace: ["origin", "session-connection"],
49
+ flags: ["trust-address", "SDES-no"]
48
50
  };
49
51
  case types_1.Direction.PHONE_TO_WEB:
50
52
  return {
51
53
  "transport-protocol": "UDP/TLS/RTP/SAVPF",
52
- "rtcp-mux": "require",
53
54
  ICE: "force",
54
- SDES: ["off"],
55
- flags: [
56
- "trust-address",
57
- "replace-origin",
58
- "replace-session-connection",
59
- "generate-mid"
60
- ]
55
+ DTLS: "passive",
56
+ "rtcp-mux": ["require"],
57
+ replace: ["origin", "session-connection"],
58
+ flags: ["SDES-no", "generate mid", "strip-extmap"]
61
59
  };
62
60
  case types_1.Direction.PHONE_TO_PHONE:
63
61
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/rtprelay",
3
- "version": "2.13.20",
3
+ "version": "2.15.0",
4
4
  "description": "Media Relay for Routr using RTPengine",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -29,8 +29,8 @@
29
29
  "@opentelemetry/sdk-trace-base": "^1.0.4",
30
30
  "@opentelemetry/sdk-trace-node": "^1.0.4",
31
31
  "@opentelemetry/semantic-conventions": "^1.0.4",
32
- "@routr/common": "^2.13.20",
33
- "@routr/processor": "^2.13.20",
32
+ "@routr/common": "^2.15.0",
33
+ "@routr/processor": "^2.15.0",
34
34
  "rtpengine-client": "^0.4.11"
35
35
  },
36
36
  "files": [
@@ -46,5 +46,5 @@
46
46
  "bugs": {
47
47
  "url": "https://github.com/fonoster/routr/issues"
48
48
  },
49
- "gitHead": "642c22cc90bf362768411318c7d2e26ff7651ee3"
49
+ "gitHead": "4cfe8529e9325b7a2f32aff615cf3db65c71cf29"
50
50
  }