From 3b389e52167ec1647ec16cc6bb2e95e53c8217fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20L=C3=BCdtke?= Date: Tue, 14 Apr 2026 15:54:15 +0200 Subject: [PATCH 1/2] removing refer_to uri headers when creating target uri for INVITE - #970 --- src/RTCSession.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/RTCSession.js b/src/RTCSession.js index 47f88489..63fff69e 100644 --- a/src/RTCSession.js +++ b/src/RTCSession.js @@ -2314,7 +2314,9 @@ module.exports = class RTCSession extends EventEmitter { options.extraHeaders.push(`Replaces: ${replaces}`); } - session.connect(request.refer_to.uri, options, initCallback); + let target_uri = request.refer_to.uri.clone(); + target_uri.clearHeaders(); + session.connect(target_uri, options, initCallback); } function reject() { From 4a1f3fe61e0d46b0a94800a3b353970f0d6175d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20L=C3=BCdtke?= Date: Thu, 30 Apr 2026 13:08:44 +0200 Subject: [PATCH 2/2] formatting, var vs. const changes by lint:fix --- src/RTCSession.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RTCSession.js b/src/RTCSession.js index 63fff69e..9aa40ac1 100644 --- a/src/RTCSession.js +++ b/src/RTCSession.js @@ -2314,7 +2314,8 @@ module.exports = class RTCSession extends EventEmitter { options.extraHeaders.push(`Replaces: ${replaces}`); } - let target_uri = request.refer_to.uri.clone(); + const target_uri = request.refer_to.uri.clone(); + target_uri.clearHeaders(); session.connect(target_uri, options, initCallback); }