# HG changeset patch # User Mike Ruprecht # Date 1212786616 0 # Node ID 48fe9a9e20e24557c01a1c2f14e420aae17ed913 # Parent 157b30b530f48666b5ded280c6ebf0a3da8f9399 Use the right namespaces for broadcasting and discovering Jingle support. diff -r 157b30b530f4 -r 48fe9a9e20e2 libpurple/protocols/jabber/disco.c --- a/libpurple/protocols/jabber/disco.c Fri Jun 06 20:48:13 2008 +0000 +++ b/libpurple/protocols/jabber/disco.c Fri Jun 06 21:10:16 2008 +0000 @@ -148,11 +148,10 @@ SUPPORT_FEATURE("http://www.google.com/transport/p2p"); SUPPORT_FEATURE("http://www.google.com/transport/raw-udp"); SUPPORT_FEATURE("http://www.google.com/session/phone"); - SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0166.html"); - SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0180.html"); - SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0167.html"); - SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0176.html"); - SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0177.html"); + SUPPORT_FEATURE("urn:xmpp:tmp:jingle"); + SUPPORT_FEATURE("urn:xmpp:tmp:jingle:apps:rtp#audio"); + SUPPORT_FEATURE("urn:xmpp:tmp:jingle:apps:rtp#video"); + SUPPORT_FEATURE("urn:xmpp:tmp:jingle:transports:ice-udp"); #endif } else { const char *ext = NULL; diff -r 157b30b530f4 -r 48fe9a9e20e2 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Fri Jun 06 20:48:13 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Fri Jun 06 21:10:16 2008 +0000 @@ -61,8 +61,8 @@ #ifdef USE_VV #include -#define XEP_0167_CAP "http://www.xmpp.org/extensions/xep-0167.html" -#define XEP_0180_CAP "http://www.xmpp.org/extensions/xep-0180.html" +#define XEP_0167_AUDIO_CAP "urn:xmpp:tmp:jingle:apps:rtp#audio" +#define XEP_0167_VIDEO_CAP "urn:xmpp:tmp:jingle:apps:rtp#video" #define GTALK_CAP "http://www.google.com/session/phone" #endif @@ -2395,18 +2395,18 @@ if (type == (PURPLE_MEDIA_AUDIO | PURPLE_MEDIA_VIDEO)) { purple_debug_info("jabber", "Checking audio/video XEP support for %s\n", who); - return (jabber_buddy_has_capability(jb, XEP_0167_CAP) || + return (jabber_buddy_has_capability(jb, XEP_0167_AUDIO_CAP) || jabber_buddy_has_capability(jb, GTALK_CAP)) && - jabber_buddy_has_capability(jb, XEP_0180_CAP); + jabber_buddy_has_capability(jb, XEP_0167_VIDEO_CAP); } else if (type == (PURPLE_MEDIA_AUDIO)) { purple_debug_info("jabber", "Checking audio XEP support for %s\n", who); - return jabber_buddy_has_capability(jb, XEP_0167_CAP) || + return jabber_buddy_has_capability(jb, XEP_0167_AUDIO_CAP) || jabber_buddy_has_capability(jb, GTALK_CAP); } else if (type == (PURPLE_MEDIA_VIDEO)) { purple_debug_info("jabber", "Checking video XEP support for %s\n", who); - return jabber_buddy_has_capability(jb, XEP_0180_CAP); + return jabber_buddy_has_capability(jb, XEP_0167_VIDEO_CAP); } return FALSE;