pombreda / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Error in Looking up Rooms... #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
I found error in looking up rooms.

In the case of libjingle 
<iq type='set' to='conference.bullfan.udreammobile.com' id='9'>
    <query xmlns='jabber:iq:search'>
        <room-name>Talk</room-name>
        <room-domain>bullfan.udreammobile.com</room-domain>
    </query>
</iq>

The error is as following
 - Type should be 'get' not 'set'.
 - the namespace of query should be http://jabber.org/protocol/disco#info but in libjingle query's namesapce is xmlns='jabber:iq:search'

So when i write "ljoin talk" in call.exe "Room lookup failed" error occured.

The resolved stanza is following.
in http://xmpp.org/extensions/xep-0045.html#disco-rooms

<iq from='hag66@shakespeare.lit/pda'
    id='disco1'
    to='chat.shakespeare.lit'
    type='get'>
  <query xmlns='http://jabber.org/protocol/disco#info'/>
</iq>

I expect you answer.
Thank you.

Original issue reported on code.google.com by adam1988...@gmail.com on 15 Jan 2012 at 8:57

GoogleCodeExporter commented 9 years ago
The "ljoin" code is just an example showing how to use libjingle with 
"talk.google.com" server. If you use different server, the code needs to be 
changed accordingly.
Tested with libjingle 0.6.10. The "ljoin" works just fine.

Original comment by jun...@google.com on 9 Feb 2012 at 11:40