From f0f535b88564736ed057fad5bd9c82f739813307 Mon Sep 17 00:00:00 2001 From: SemiConscious Date: Thu, 20 Jun 2024 10:48:44 +0100 Subject: [PATCH] Update utils.ts with correct SDES parameter SDES parameters are supplied in an array, not a single string. See here: https://github.com/sipwise/rtpengine/issues/433 This cures `Failed to set remote offer sdp: SDES and DTLS-SRTP cannot be enabled at the same time.` error in SIP.js Signed-off-by: SemiConscious --- mods/rtprelay/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/rtprelay/src/utils.ts b/mods/rtprelay/src/utils.ts index de749978e..2244ef225 100644 --- a/mods/rtprelay/src/utils.ts +++ b/mods/rtprelay/src/utils.ts @@ -59,7 +59,7 @@ export function getRTPEParamsByDirection(dir: Direction) { case Direction.WEB_TO_WEB: return { ICE: "force", - SDES: "off", + SDES: ["off"], flags: ["trust-address", "replace-origin", "replace-session-connection"] } case Direction.WEB_TO_PHONE: @@ -74,7 +74,7 @@ export function getRTPEParamsByDirection(dir: Direction) { "transport-protocol": "UDP/TLS/RTP/SAVPF", "rtcp-mux": "require", ICE: "force", - SDES: "off", + SDES: ["off"], flags: [ "trust-address", "replace-origin",