summary refs log tree commit diff
path: root/contrib/jitsimeetbridge/unjingle/unjingle.js
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-05-30 10:47:40 +0100
committerGitHub <noreply@github.com>2022-05-30 10:47:40 +0100
commit563ef172ae92a6085f115263375f6238cb35f698 (patch)
treefc8e98968a8adb6fe89c7db138d8229eece652b8 /contrib/jitsimeetbridge/unjingle/unjingle.js
parentRemove contrib/scripts/kick_users.py (#12908) (diff)
downloadsynapse-563ef172ae92a6085f115263375f6238cb35f698.tar.xz
Remove contrib/jitsimeetbridge (#12909)
Diffstat (limited to 'contrib/jitsimeetbridge/unjingle/unjingle.js')
-rw-r--r--contrib/jitsimeetbridge/unjingle/unjingle.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/contrib/jitsimeetbridge/unjingle/unjingle.js b/contrib/jitsimeetbridge/unjingle/unjingle.js
deleted file mode 100644
index 3dfe759914..0000000000
--- a/contrib/jitsimeetbridge/unjingle/unjingle.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var strophe = require("./strophe/strophe.js").Strophe;
-
-var Strophe = strophe.Strophe;
-var $iq     = strophe.$iq;
-var $msg    = strophe.$msg;
-var $build  = strophe.$build;
-var $pres   = strophe.$pres;
-
-var jsdom = require("jsdom");
-var window = jsdom.jsdom().parentWindow;
-var $ = require('jquery')(window);
-
-var stropheJingle = require("./strophe.jingle.sdp.js");
-
-
-var input = '';
-
-process.stdin.on('readable', function() {
-  var chunk = process.stdin.read();
-  if (chunk !== null) {
-    input += chunk;
-  }
-});
-
-process.stdin.on('end', function() {
-	if (process.argv[2] == '--jingle') {
-		var elem = $(input);
-		// app does:
-		// sess.setRemoteDescription($(iq).find('>jingle'), 'offer');
-		//console.log(elem.find('>content'));
-		var sdp = new stropheJingle.SDP('');
-		sdp.fromJingle(elem);
-		console.log(sdp.raw);
-	} else if (process.argv[2] == '--sdp') {
-		var sdp = new stropheJingle.SDP(input);
-		var accept = $iq({to: '%(tojid)s',
-			type: 'set'})
-			.c('jingle', {xmlns: 'urn:xmpp:jingle:1',
-			    //action: 'session-accept',
-			    action: '%(action)s',
-			    initiator: '%(initiator)s',
-			    responder: '%(responder)s',
-			    sid: '%(sid)s' });
-		sdp.toJingle(accept, 'responder');
-		console.log(Strophe.serialize(accept));
-	}
-});
-