From 6660877bcf455e4db8dffc696cb30926a7215f5d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 30 Sep 2023 07:52:51 +0200 Subject: [PATCH] jingle: trim media attribute values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Movim has trailing whitespace around some of their media attributes our WebRTC doesn’t like that. We trim the value even though this seems to be a Movim bug. --- .../conversations/xmpp/jingle/JingleConnectionManager.java | 4 +++- .../siacs/conversations/xmpp/jingle/SessionDescription.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java index 6646d5d7a..fd58fa16a 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnectionManager.java @@ -438,7 +438,9 @@ public class JingleConnectionManager extends AbstractConnectionManager { Log.d( Config.LOGTAG, account.getJid().asBareJid() - + ": no rtp session proposal found for " + + ": no rtp session (" + + sessionId + + ") proposal found for " + from + " to deliver proceed"); if (remoteMsgId == null) { diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/SessionDescription.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/SessionDescription.java index f0f98260b..77b598793 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/SessionDescription.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/SessionDescription.java @@ -291,7 +291,7 @@ public class SessionDescription { throw new IllegalArgumentException( "A source specific media attribute is missing its value"); } - mediaAttributes.put("ssrc", id + " " + parameterName + ":" + parameterValue); + mediaAttributes.put("ssrc", id + " " + parameterName + ":" + parameterValue.trim()); } }