comparison libpurple/protocols/jabber/disco.c @ 25664:d0ac3c438b71

Check remote JID's capabilities for audio and video XEP support.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sat, 31 May 2008 20:15:34 +0000
parents 92e71f6e10d4
children 48fe9a9e20e2
comparison
equal deleted inserted replaced
25663:de644f7e3958 25664:d0ac3c438b71
140 JabberFeature *feat = (JabberFeature*)features->data; 140 JabberFeature *feat = (JabberFeature*)features->data;
141 if(feat->is_enabled == NULL || feat->is_enabled(js, feat->shortname, feat->namespace) == TRUE) 141 if(feat->is_enabled == NULL || feat->is_enabled(js, feat->shortname, feat->namespace) == TRUE)
142 SUPPORT_FEATURE(feat->namespace); 142 SUPPORT_FEATURE(feat->namespace);
143 } 143 }
144 } 144 }
145 #ifdef USE_VV
145 } else if (node && !strcmp(node, CAPS0115_NODE "#voice-v1")) { 146 } else if (node && !strcmp(node, CAPS0115_NODE "#voice-v1")) {
146 SUPPORT_FEATURE("http://www.google.com/session"); 147 SUPPORT_FEATURE("http://www.google.com/session");
147 SUPPORT_FEATURE("http://www.google.com/transport/p2p"); 148 SUPPORT_FEATURE("http://www.google.com/transport/p2p");
148 SUPPORT_FEATURE("http://www.google.com/transport/raw-udp"); 149 SUPPORT_FEATURE("http://www.google.com/transport/raw-udp");
149 SUPPORT_FEATURE("http://www.google.com/session/phone"); 150 SUPPORT_FEATURE("http://www.google.com/session/phone");
150 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0166.html"); 151 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0166.html");
151 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0180.html"); 152 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0180.html");
152 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0167.html"); 153 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0167.html");
154 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0176.html");
153 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0177.html"); 155 SUPPORT_FEATURE("http://www.xmpp.org/extensions/xep-0177.html");
156 #endif
154 } else { 157 } else {
155 const char *ext = NULL; 158 const char *ext = NULL;
156 unsigned pos; 159 unsigned pos;
157 unsigned nodelen = strlen(node); 160 unsigned nodelen = strlen(node);
158 unsigned capslen = strlen(CAPS0115_NODE); 161 unsigned capslen = strlen(CAPS0115_NODE);