diff libpurple/protocols/jabber/jabber.c @ 26447:1ecbda91458a

Fix merge: Move the Jingle features to jabber.c Maiku: Should these (specifically the voice and video) parts only be advertised if the core indicates the current UI supports each individually?
author Paul Aurich <paul@darkrain42.org>
date Sat, 04 Apr 2009 03:40:43 +0000
parents 882748e27f9d
children d4af753e0e33
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Sat Apr 04 03:15:59 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sat Apr 04 03:40:43 2009 +0000
@@ -3169,7 +3169,16 @@
 	jabber_add_feature("http://jabber.org/protocol/si/profile/file-transfer", 0);
 	jabber_add_feature("http://jabber.org/protocol/xhtml-im", 0);
 	jabber_add_feature("urn:xmpp:ping", 0);
-	
+
+	/* Jingle features! */
+	jabber_add_feature("http://www.google.com/xmpp/protocol/session", 0);
+	jabber_add_feature("http://www.google.com/xmpp/protocol/voice/v1", 0);
+	jabber_add_feature(JINGLE, 0);
+	jabber_add_feature(JINGLE_APP_RTP_SUPPORT_AUDIO, 0);
+	jabber_add_feature(JINGLE_APP_RTP_SUPPORT_VIDEO, 0);
+	jabber_add_feature(JINGLE_TRANSPORT_RAWUDP, 0);
+	jabber_add_feature(JINGLE_TRANSPORT_ICEUDP, 0);
+
 	/* IPC functions */
 	purple_plugin_ipc_register(plugin, "contact_has_feature", PURPLE_CALLBACK(jabber_ipc_contact_has_feature),
 							 purple_marshal_BOOLEAN__POINTER_POINTER_POINTER,