From d5c7662c1d398ddb30be1634904a0ba4fb88e95b Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 23 Oct 2021 20:32:56 +0200 Subject: [PATCH] add yet another workaround in the xmpp-parsers fork for @name in ssma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This seems to be yet another proprietary extension, jicofo sets it to either name='jvb-a0' or name='jvb-v0' depending on whether it is an audio or a video content. I’m tired of these meaningless extensions… --- xmpp-parsers/src/jingle_ssma.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xmpp-parsers/src/jingle_ssma.rs b/xmpp-parsers/src/jingle_ssma.rs index 29cadc5..7f554b1 100644 --- a/xmpp-parsers/src/jingle_ssma.rs +++ b/xmpp-parsers/src/jingle_ssma.rs @@ -10,6 +10,9 @@ generate_element!( attributes: [ /// Maps to the ssrc-id parameter. id: Required = "ssrc", + + /// XXX: wtf is that? It can be either name='jvb-a0' or name='jvb-v0' at avstack’s jicofo. + name: Option = "name", ], children: [ /// List of attributes for this source. @@ -27,6 +30,7 @@ impl Source { id, parameters: Vec::new(), info: None, + name: None, } } }