mod_carbons: Explicitly carbon XEP-0353: Jingle Message Initiation
authorKim Alvefur <zash@zash.se>
Sat, 09 May 2020 00:55:18 +0200
changeset 10824 e0a09d3af563
parent 10823 5f4093e80cfa
child 10825 30fc1ed5647a
mod_carbons: Explicitly carbon XEP-0353: Jingle Message Initiation
doc/doap.xml
plugins/mod_carbons.lua
--- a/doc/doap.xml	Sat May 09 00:52:07 2020 +0200
+++ b/doc/doap.xml	Sat May 09 00:55:18 2020 +0200
@@ -512,7 +512,7 @@
         <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0353.html"/>
         <xmpp:version>0.3</xmpp:version>
         <xmpp:since>0.11.6</xmpp:since>
-        <xmpp:note>triggers buffer flush in mod_csi_simple since 0.11.6</xmpp:note>
+        <xmpp:note>triggers buffer flush in mod_csi_simple since 0.11.6; recognised by mod_carbons since 0.12</xmpp:note>
       </xmpp:SupportedXep>
     </implements>
     <implements>
--- a/plugins/mod_carbons.lua	Sat May 09 00:52:07 2020 +0200
+++ b/plugins/mod_carbons.lua	Sat May 09 00:55:18 2020 +0200
@@ -55,6 +55,11 @@
 		return true, "bounce";
 	end
 
+	if stanza:get_child(nil, "urn:xmpp:jingle-message:0") then
+		-- XXX Experimental XEP stuck in Proposed for almost a year at the time of this comment
+		return true, "jingle call";
+	end
+
 	for archived in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do
 		if archived and archived.attr.by == user_bare then
 			return true, "archived";