Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 12162

Re: Unable to get joined chat rooms - android asmack

$
0
0

Thanks for the reply.  yes i have seen XEP-0045

 

in xep 0045 the stanza is like

<iqfrom='hag66@shakespeare.lit/pda'
   
id='gp7w61v3'
   
to='wiccarocks@shakespeare.lit/laptop'
   
type='get'>
 
<queryxmlns='http://jabber.org/protocol/disco#items'
        
node='http://jabber.org/protocol/muc#rooms'/>
</iq>

 

where we query other user's joined rooms . i wonder if it would work for our own or not, beacse in that case the "to" and "from" attributes would be same. and i get four stanza (sent, recieve, sent , recieve) as the sender and the reciever are the same i wonder if it support for quering our own joined rooms or not.

if not is there any other way to get joined rooms ?

 

and yes i did use asmack debug and the stanza i was getting is this :

 

Sent <iq id="xHE80-9" to="hail@192.168.1.4/Smack" type="get"><query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/muc#rooms"></query></iq>

 

recieve  <iq id="xHE80-9" to="hail@192.168.1.4/Smack" type="get" from="hail@192.168.1.4/Smack"><query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/muc#rooms"/></iq>

 

sent <iq id="xHE80-9" to="hail@192.168.1.4/Smack" type="error"><query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/muc#rooms"></query><error code="404" type="CANCEL"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

 

recieve<iq id="xHE80-9" to="hail@192.168.1.4/Smack" type="error" from="hail@192.168.1.4/Smack"><query xmlns="http://jabber.org/protocol/disco#items" node="http://jabber.org/protocol/muc#rooms"/><error code="404" type="CANCEL"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>


Once again thank you for the reply


Viewing all articles
Browse latest Browse all 12162

Trending Articles