[jitsi-dev] Service Disco for ICE/Jabber


#1

Hey all,

I am wondering how jitsi determines if other clients support A/V (Jingle) chatting.

As I understand it, Smack's ServiceDiscoveryManager implements XEP-0030, which should be the minimum required (XEP-0115 is an extension, but not required).

However, when I connect with my client, jitsi doesn't acknowledge that it's possible to voice or video chat with my client. In fact, I don't even see any exchange of stanzas that look like XEP-0030 information. My code snipit is below. An I missing an XEP, or doing something dumb?

          XMPPConnection connection = new XMPPConnection( config );
          connection.connect();
          ServiceDiscoveryManager.setIdentityName("Java Bells");
          ServiceDiscoveryManager disco = ServiceDiscoveryManager.getInstanceFor(connection);

          disco.addFeature("http://jabber.org/protocol/disco#info");
          disco.addFeature("urn:xmpp:jingle:1");
          disco.addFeature("urn:xmpp:jingle:transports:ice-udp:1");
          disco.addFeature("urn:xmpp:jingle:apps:rtp:1");
          disco.addFeature("urn:xmpp:jingle:apps:rtp:audio");
          disco.addFeature("urn:xmpp:jingle:apps:rtp:video");

          .....

          connection.login(username, password, RECEIVER);

···

-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
http://blog.bjornroche.com
@xonamiaudio


#2

Hey Bjorn,

Hey all,

I am wondering how jitsi determines if other clients support A/V
(Jingle) chatting.

Using the URNs defined below.

As I understand it, Smack's ServiceDiscoveryManager implements
XEP-0030, which should be the minimum required (XEP-0115 is an
extension, but not required).

Right, it's not.

However, when I connect with my client, jitsi doesn't acknowledge
that it's possible to voice or video chat with my client. In fact, I
don't even see any exchange of stanzas that look like XEP-0030
information.

Jitsi would request discovery information when you click on a contact.

Note that Jitsi will not do this if the contact has support for XEP-0115
and discovery information has been retrieved previously.

Hope this helps,
Emil

···

On 23.05.13, 20:24, Bjorn Roche wrote:

My code snipit is below. An I missing an XEP, or doing
something dumb?

XMPPConnection connection = new XMPPConnection( config );
connection.connect(); ServiceDiscoveryManager.setIdentityName("Java
Bells"); ServiceDiscoveryManager disco =
ServiceDiscoveryManager.getInstanceFor(connection);

disco.addFeature("http://jabber.org/protocol/disco#info");
disco.addFeature("urn:xmpp:jingle:1");
disco.addFeature("urn:xmpp:jingle:transports:ice-udp:1");
disco.addFeature("urn:xmpp:jingle:apps:rtp:1");
disco.addFeature("urn:xmpp:jingle:apps:rtp:audio");
disco.addFeature("urn:xmpp:jingle:apps:rtp:video");

.....

connection.login(username, password, RECEIVER);

----------------------------- Bjorn Roche http://www.xonami.com Audio
Collaboration http://blog.bjornroche.com @xonamiaudio

_______________________________________________ dev mailing list
dev@jitsi.org Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org